Skip to content

Commit e03bb3f

Browse files
authored
Merge pull request #2 from fmauch/robot_status
set motion_possible to true only of robot can be actually moved
2 parents 0a3121b + b593c18 commit e03bb3f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ur_robot_driver/src/ros/hardware_interface.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,10 +695,15 @@ 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)
699+
699700
{
700701
robot_status_resource_.motion_possible = TriState::TRUE;
701702
}
703+
else
704+
{
705+
robot_status_resource_.motion_possible = TriState::FALSE;
706+
}
702707

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

0 commit comments

Comments
 (0)