Skip to content

Commit 19c41e6

Browse files
axelschrothfmauch
andauthored
Robot status: fixed in_error state
Co-Authored-By: Felix Exner <[email protected]>
1 parent f6596c2 commit 19c41e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ur_robot_driver/src/ros/hardware_interface.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ void HardwareInterface::extractRobotStatus()
670670
TriState::FALSE;
671671

672672
// Note that this is true as soon as the drives are powered,
673-
// even if the breakes are still closed
673+
// even if the brakes are still closed
674674
// which is in slight contrast to the comments in the
675675
// message definition
676676
robot_status_resource_.drives_powered =
@@ -682,7 +682,7 @@ void HardwareInterface::extractRobotStatus()
682682
// I found no way to reliably get information if the robot is moving
683683
robot_status_resource_.in_motion = TriState::UNKNOWN;
684684

685-
if ((safety_status_bits_ | in_error_bitset_).any())
685+
if ((safety_status_bits_ & in_error_bitset_).any())
686686
{
687687
robot_status_resource_.in_error = TriState::TRUE;
688688
}
@@ -692,7 +692,7 @@ void HardwareInterface::extractRobotStatus()
692692
}
693693

694694
// the error code, if any, is not transmitted by this protocol
695-
// it can and should be fetched seperately
695+
// it can and should be fetched separately
696696
robot_status_resource_.error_code = 0;
697697
}
698698

0 commit comments

Comments
 (0)