Skip to content

Explicitly send MODE_STOPPED when returning control to the robot#767

Open
urfeex wants to merge 1 commit into
UniversalRobots:masterfrom
urfeex:send_stop_on_handback
Open

Explicitly send MODE_STOPPED when returning control to the robot#767
urfeex wants to merge 1 commit into
UniversalRobots:masterfrom
urfeex:send_stop_on_handback

Conversation

@urfeex

@urfeex urfeex commented Feb 17, 2026

Copy link
Copy Markdown
Member

This way, we can distinguish between an intentional hand-back and a communication loss

This is connected to UniversalRobots/Universal_Robots_Client_Library#438

This way, we can distinguish between an intentional hand-back and a communication loss
@urfeex urfeex requested a review from a team February 17, 2026 14:58
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 urrsk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. But please add a test covering this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants