Explicitly send MODE_STOPPED when returning control to the robot#767
Open
urfeex wants to merge 1 commit into
Open
Explicitly send MODE_STOPPED when returning control to the robot#767urfeex wants to merge 1 commit into
urfeex wants to merge 1 commit into
Conversation
This way, we can distinguish between an intentional hand-back and a communication loss
urrsk
pushed a commit
to UniversalRobots/Universal_Robots_Client_Library
that referenced
this pull request
Mar 19, 2026
Currently, we only exit the main loop when no new command is received anymore (already taking any configured receive timeout into account). However, if we don't receive a new command anymore, that should always be considered an unintentional interruption of the control flow. In that case, we should stop program execution, as interrupting the communication was an unexpected error event. If interrupting the communication in order to continue with the rest of the program was intentional, users will send a stop command. This will end the main control loop at another code branch leading to a clean shutdown of the external_control part in order to be able to continue with the rest of the program. This should be closing #438 but in order to make sense with the ROS drivers, we would need UniversalRobots/Universal_Robots_ROS2_Driver#1678 and potentially UniversalRobots/Universal_Robots_ROS_Driver#767 before merging this.
urrsk
requested changes
Mar 23, 2026
urrsk
left a comment
Member
There was a problem hiding this comment.
Looks good. But please add a test covering this
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This way, we can distinguish between an intentional hand-back and a communication loss
This is connected to UniversalRobots/Universal_Robots_Client_Library#438