Explicitly send MODE_STOPPED when returning control to the robot#1678
Open
urfeex wants to merge 2 commits intoUniversalRobots:mainfrom
Open
Explicitly send MODE_STOPPED when returning control to the robot#1678urfeex wants to merge 2 commits intoUniversalRobots:mainfrom
urfeex wants to merge 2 commits intoUniversalRobots:mainfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1678 +/- ##
========================================
+ Coverage 3.59% 4.80% +1.21%
========================================
Files 13 34 +21
Lines 947 4076 +3129
Branches 152 473 +321
========================================
+ Hits 34 196 +162
- Misses 843 3878 +3035
+ Partials 70 2 -68
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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
Member
urrsk
left a comment
There was a problem hiding this comment.
Looks good. But please add a test covering this
4811dc8 to
588dda1
Compare
Member
Author
|
Unfortunately, CI currently doesn't work for Rolling. There is work in progress to get it running again (see #1719), but for now all I can say is that the added test ran successfully on my local setup. |
This way, we can distinguish between an intentional hand-back and a communication loss.
588dda1 to
1f94fcf
Compare
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