Skip to content

Commit a53b721

Browse files
Add debug RCLCPP info.
1 parent a6981b9 commit a53b721

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/ros_python_interpreter_server.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,18 @@ void RosPythonInterpreterServer::start_ros_service() {
3131
std::placeholders::_1, std::placeholders::_2);
3232
run_python_command_srv_ = ros_node_->create_service<RunPythonCommandSrvType>(
3333
"/dynamic_graph_bridge/run_python_command", runCommandCb);
34+
RCLCPP_INFO(rclcpp::get_logger("dynamic_graph_bridge"),
35+
"RosPythonInterpreterServer::start_ros_service - run_python_command...");
3436

3537
run_python_file_callback_t runPythonFileCb =
3638
std::bind(&RosPythonInterpreterServer::runPythonFileCallback, this,
3739
std::placeholders::_1, std::placeholders::_2);
3840
run_python_file_srv_ = ros_node_->create_service<RunPythonFileSrvType>(
3941
"/dynamic_graph_bridge/run_python_file", runPythonFileCb);
42+
43+
RCLCPP_INFO(rclcpp::get_logger("dynamic_graph_bridge"),
44+
"RosPythonInterpreterServer::start_ros_service - run_python_file...");
45+
4046
}
4147

4248
void RosPythonInterpreterServer::runCommandCallback(
@@ -61,7 +67,11 @@ void RosPythonInterpreterServer::runCommandCallback(
6167

6268
void RosPythonInterpreterServer::runPythonFileCallback(
6369
RunPythonFileRequestPtr req, RunPythonFileResponsePtr res) {
70+
RCLCPP_INFO(rclcpp::get_logger("dynamic_graph_bridge"),
71+
"RosPythonInterpreterServer::runPythonFileCallback- begin");
6472
run_python_file(req->input, res->result);
73+
RCLCPP_INFO(rclcpp::get_logger("dynamic_graph_bridge"),
74+
"RosPythonInterpreterServer::runPythonFileCallback- end");
6575
}
6676

6777
void RosPythonInterpreterServer::run_python_command(const std::string& command,

0 commit comments

Comments
 (0)