Skip to content

Verify the robot type on startup - #1771

Merged
urfeex merged 8 commits into
UniversalRobots:mainfrom
urfeex:verify_robot_type
May 6, 2026
Merged

Verify the robot type on startup#1771
urfeex merged 8 commits into
UniversalRobots:mainfrom
urfeex:verify_robot_type

Conversation

@urfeex

@urfeex urfeex commented Apr 20, 2026

Copy link
Copy Markdown
Member

Check the ur_type parameter given from ROS with the type that the driver is actually connected to. If they don't match, hardware configuration fails.

This fixes #842.

At the current state this is just a PoC. I think, I would like to move the helper functions to the client_library. What do you think @urrsk?

Also, the series deduction seems a bit janky, but to my knowledge the series isn't directly available. And since e.g. a ur5 and a ur5e both report "UR5" (or 1) as robot type, we need to know which one it is.

ToDo

  • Add migration notes (It is a behavior-changing change that the hw interface won't configure)
  • Test on all models

urfeex added 5 commits April 27, 2026 09:32
Check the ur_type parameter given from ROS with the type that the driver
is actually connected to. If they don't match, hardware configuration
fails.
More importantly, this will allow backporting this feature to older
distributions as an opt-in parameter in order to not break behavior
there.
@urfeex
urfeex force-pushed the verify_robot_type branch from 1cfe3ab to 7bda8e0 Compare April 27, 2026 08:02
@urfeex
urfeex marked this pull request as ready for review April 28, 2026 14:36
@urfeex
urfeex requested a review from a team April 28, 2026 14:36
Comment on lines +15 to +19
option(
UR_ROBOT_DRIVER_RUN_ROBOT_MODELS_TEST
"Run the integration test that runs the driver against URSim for every supported robot model"
OFF
)

@urrsk urrsk Apr 29, 2026

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.

I think it is great that this check is behind a flag. Though where do we actually us this flag and thereby enabling this test in the CI?

  • Enable the test in CI

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I enabled the test in release PRs

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I enabled the test in release PRs

@urfeex
urfeex requested a review from urrsk May 6, 2026 05:54

@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.

Doing CI than only runs when we do a release, is always exciting see running when we do the release!

@urfeex
urfeex merged commit 23c6261 into UniversalRobots:main May 6, 2026
6 of 10 checks passed
@urfeex
urfeex deleted the verify_robot_type branch May 6, 2026 07:36
@urfeex urfeex mentioned this pull request May 6, 2026
urfeex added a commit that referenced this pull request May 7, 2026
* Verify the robot type on startup (#1771)

Check the ur_type parameter given from ROS with the type that the driver
is actually connected to. If they don't match, hardware configuration
fails.

* By default, disable robot verification

To not break the behavior, this feature gets disabled by default and is opt-in.
I enabled it in the integration tests to always run.
@urfeex urfeex mentioned this pull request Jun 22, 2026
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Avoiding mismatches in robot model between drivers and actual robot

2 participants