File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -53,12 +53,16 @@ void ImplTestSotExternalInterface::init() {
53
53
54
54
RosNodePtr py_inter_ptr = get_ros_node (" python_interpreter" );
55
55
// Set the control time step parameter to 0.001
56
- double ts = 0.01 ;
56
+ double ts = 0.001 ;
57
57
58
58
// Publish parameters related to the control interface
59
59
py_inter_ptr->declare_parameter <double >(" /sot_controller/dt" , ts);
60
60
// Create services to interact with the embedded python interpreter.
61
- py_interpreter_srv_->start_ros_service ();
61
+
62
+ rclcpp::CallbackGroup::SharedPtr reentrant_cb_group;
63
+ reentrant_cb_group = get_callback_group (" python_interpreter" );
64
+ py_interpreter_srv_->start_ros_service (rclcpp::ServicesQoS (),
65
+ reentrant_cb_group);
62
66
63
67
// Non blocking spinner to deal with ros.
64
68
// Be careful: here with tests we do not care about real time issue.
You can’t perform that action at this time.
0 commit comments