From a53b72192c900aa1bcfc6e60f78839bab4c3f60f Mon Sep 17 00:00:00 2001 From: Olivier Stasse <olivier.stasse@laas.fr> Date: Sat, 2 Dec 2023 03:30:55 +0100 Subject: [PATCH] Add debug RCLCPP info. --- src/ros_python_interpreter_server.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/ros_python_interpreter_server.cpp b/src/ros_python_interpreter_server.cpp index ca96144..9f93ada 100644 --- a/src/ros_python_interpreter_server.cpp +++ b/src/ros_python_interpreter_server.cpp @@ -31,12 +31,18 @@ void RosPythonInterpreterServer::start_ros_service() { std::placeholders::_1, std::placeholders::_2); run_python_command_srv_ = ros_node_->create_service<RunPythonCommandSrvType>( "/dynamic_graph_bridge/run_python_command", runCommandCb); + RCLCPP_INFO(rclcpp::get_logger("dynamic_graph_bridge"), + "RosPythonInterpreterServer::start_ros_service - run_python_command..."); run_python_file_callback_t runPythonFileCb = std::bind(&RosPythonInterpreterServer::runPythonFileCallback, this, std::placeholders::_1, std::placeholders::_2); run_python_file_srv_ = ros_node_->create_service<RunPythonFileSrvType>( "/dynamic_graph_bridge/run_python_file", runPythonFileCb); + + RCLCPP_INFO(rclcpp::get_logger("dynamic_graph_bridge"), + "RosPythonInterpreterServer::start_ros_service - run_python_file..."); + } void RosPythonInterpreterServer::runCommandCallback( @@ -61,7 +67,11 @@ void RosPythonInterpreterServer::runCommandCallback( void RosPythonInterpreterServer::runPythonFileCallback( RunPythonFileRequestPtr req, RunPythonFileResponsePtr res) { + RCLCPP_INFO(rclcpp::get_logger("dynamic_graph_bridge"), + "RosPythonInterpreterServer::runPythonFileCallback- begin"); run_python_file(req->input, res->result); + RCLCPP_INFO(rclcpp::get_logger("dynamic_graph_bridge"), + "RosPythonInterpreterServer::runPythonFileCallback- end"); } void RosPythonInterpreterServer::run_python_command(const std::string& command, -- GitLab