Skip to content

Commit 0a3121b

Browse files
committed
Merge remote-tracking branch 'origin/robot_status' into robot_status
2 parents 44a9db2 + 19c41e6 commit 0a3121b

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 =
@@ -679,7 +679,7 @@ void HardwareInterface::extractRobotStatus()
679679
// I found no way to reliably get information if the robot is moving
680680
robot_status_resource_.in_motion = TriState::UNKNOWN;
681681

682-
if ((safety_status_bits_ | in_error_bitset_).any())
682+
if ((safety_status_bits_ & in_error_bitset_).any())
683683
{
684684
robot_status_resource_.in_error = TriState::TRUE;
685685
}
@@ -701,7 +701,7 @@ void HardwareInterface::extractRobotStatus()
701701
}
702702

703703
// the error code, if any, is not transmitted by this protocol
704-
// it can and should be fetched seperately
704+
// it can and should be fetched separately
705705
robot_status_resource_.error_code = 0;
706706
}
707707

0 commit comments

Comments
 (0)