Skip to content

Commit de535e1

Browse files
author
Felix Exner
committed
set motion_possible to true only of robot can be actually moved
1 parent 0a3121b commit de535e1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ur_robot_driver/src/ros/hardware_interface.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,10 +695,14 @@ void HardwareInterface::extractRobotStatus()
695695
{
696696
robot_status_resource_.motion_possible = TriState::FALSE;
697697
}
698-
else
698+
else if (robot_mode_ == ur_dashboard_msgs::RobotMode::RUNNING || robot_mode_ == ur_dashboard_msgs::RobotMode::BACKDRIVE)
699699
{
700700
robot_status_resource_.motion_possible = TriState::TRUE;
701701
}
702+
else
703+
{
704+
robot_status_resource_.motion_possible = TriState::FALSE;
705+
}
702706

703707
// the error code, if any, is not transmitted by this protocol
704708
// it can and should be fetched separately

0 commit comments

Comments
 (0)