We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 176c64e commit d0de317Copy full SHA for d0de317
robotis_controller/src/robotis_controller/robotis_controller.cpp
@@ -660,11 +660,9 @@ void RobotisController::msgQueueThread()
660
ros::ServiceServer joint_module_server = ros_node.advertiseService("/robotis/get_present_joint_ctrl_modules",
661
&RobotisController::getCtrlModuleCallback, this);
662
663
- while (ros_node.ok())
664
- {
665
- callback_queue.callAvailable();
666
- usleep(1000);
667
- }
+ ros::WallDuration duration(CONTROL_CYCLE_MSEC / 1000.0);
+ while(ros_node.ok())
+ callback_queue.callAvailable(duration);
668
}
669
670
void *RobotisController::timerThread(void *param)
0 commit comments