Skip to content
Snippets Groups Projects
Commit 8e76a124 authored by Olivier Stasse's avatar Olivier Stasse
Browse files

[impl_test_sot_external_interface]

Set again 1 KHz
Use the callback group from the node python_interpreter.
parent 84de1b7c
No related branches found
No related tags found
No related merge requests found
...@@ -53,12 +53,16 @@ void ImplTestSotExternalInterface::init() { ...@@ -53,12 +53,16 @@ void ImplTestSotExternalInterface::init() {
RosNodePtr py_inter_ptr = get_ros_node("python_interpreter"); RosNodePtr py_inter_ptr = get_ros_node("python_interpreter");
// Set the control time step parameter to 0.001 // Set the control time step parameter to 0.001
double ts = 0.01; double ts = 0.001;
// Publish parameters related to the control interface // Publish parameters related to the control interface
py_inter_ptr->declare_parameter<double>("/sot_controller/dt", ts); py_inter_ptr->declare_parameter<double>("/sot_controller/dt", ts);
// Create services to interact with the embedded python interpreter. // Create services to interact with the embedded python interpreter.
py_interpreter_srv_->start_ros_service();
rclcpp::CallbackGroup::SharedPtr reentrant_cb_group;
reentrant_cb_group = get_callback_group("python_interpreter");
py_interpreter_srv_->start_ros_service(rclcpp::ServicesQoS(),
reentrant_cb_group);
// Non blocking spinner to deal with ros. // Non blocking spinner to deal with ros.
// Be careful: here with tests we do not care about real time issue. // Be careful: here with tests we do not care about real time issue.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment