Added ScriptCommandInterface command setTcpOffset#444
Merged
urfeex merged 6 commits intoUniversalRobots:masterfrom Feb 25, 2026
Merged
Added ScriptCommandInterface command setTcpOffset#444urfeex merged 6 commits intoUniversalRobots:masterfrom
urfeex merged 6 commits intoUniversalRobots:masterfrom
Conversation
urfeex
reviewed
Feb 20, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #444 +/- ##
==========================================
+ Coverage 76.22% 76.27% +0.04%
==========================================
Files 104 104
Lines 5509 5529 +20
Branches 590 593 +3
==========================================
+ Hits 4199 4217 +18
- Misses 1012 1014 +2
Partials 298 298
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Co-authored-by: Felix Exner <feex@universal-robots.com>
2d27df9 to
8dd225c
Compare
8dd225c to
88c0a13
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
urfeex
approved these changes
Feb 25, 2026
Member
urfeex
left a comment
There was a problem hiding this comment.
Thank you for implementing this. I took the liberty of adding a UrDriver test, as well.
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.
simply calls the urscript command set_tcp()
Note
Medium Risk
Adds a new control-plane command that changes the robot TCP configuration at runtime; incorrect offsets or misuse could impact motion accuracy. Changes are otherwise small and covered by new unit/integration tests.
Overview
Adds a new
ScriptCommandInterfacecommand (SET_TCP_OFFSET) and URScript handling to callset_tcp()with a provided[x, y, z, rx, ry, rz]offset.Exposes this as
UrDriver::setTcpOffset(), updates the command enum/protocol constant, makesclient_connected_atomic, and adds new tests covering message encoding and an end-to-end RTDE validation oftcp_offset(including failure when the external control program is not running).Written by Cursor Bugbot for commit 88c0a13. This will update automatically on new commits. Configure here.