You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!g_messages_RobotStatus.msgRobotStatus->motion_possible.val)
{
if (Ros_MotionControl_IsMotionMode_PointQueue())
{
//If we are in a point-queue-mode and the motion_possible flag drops,
//then we need to abort the motion mode and force them to initialize the
//mode again. This allows the system to detect if the robot is not starting back up
//from the expected location. (System could have been estopped during the trajectory,
//or the user could have switched to TEACH and moved the arm around.)
Ros_Debug_BroadcastMsg("Stopping point-queue motion mode. Please call '%s' to start a new queue.", SERVICE_NAME_START_POINT_QUEUE_MODE);
Ros_MotionControl_StopTrajMode();
}
//TODO: Determine if this should be done for Trajecotry-Mode too
}
}
Either the name of the function should be changed to reflect the fact it actually changes system state (as in: exits the current motion mode if something is wrong), or it should only implement the actual check and leave acting based on the results to the caller.
The text was updated successfully, but these errors were encountered:
Context: #213.
Current implementation:
motoros2/src/MotionControl.c
Lines 1591 to 1608 in 10d8f00
Either the name of the function should be changed to reflect the fact it actually changes system state (as in: exits the current motion mode if something is wrong), or it should only implement the actual check and leave acting based on the results to the caller.
The text was updated successfully, but these errors were encountered: