You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add set_target_payload support to ScriptCommandInterface (UniversalRobots#515)
Adds support for the URScript `set_target_payload()` command through the
`ScriptCommandInterface`, allowing users to set the payload mass, center
of gravity, inertia matrix, and transition time.
Copy file name to clipboardExpand all lines: doc/architecture/script_command_interface.rst
+18-4Lines changed: 18 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ At the time of writing the ``ScriptCommandInterface`` provides the following fun
25
25
- ``setGravity()``: Set the gravity vector for the robot.
26
26
- ``setTcpOffset()``: Set the TCP offset of the robot.
27
27
- ``setFrictionScales()``: Set viscous and Coulomb friction scale factors for direct torque control.
28
+
- ``setTargetPayload()``: Set the active payload mass, center of gravity, inertia matrix and transition time.
28
29
29
30
Communication protocol
30
31
----------------------
@@ -58,6 +59,7 @@ The robot reads from the "script_command_socket" expecting a 32 bit integer repr
58
59
- 9: setGravity
59
60
- 10: setTcpOffset
60
61
- 11: setFrictionScales
62
+
- 12: setTargetPayload
61
63
1-27 data fields specific to the command
62
64
===== =====
63
65
@@ -77,7 +79,7 @@ The robot reads from the "script_command_socket" expecting a 32 bit integer repr
77
79
index meaning
78
80
===== =====
79
81
1 Payload mass in kg (floating point)
80
-
2-4 Payload center of gravity in m, displacement from the toolmpount (floating point)
82
+
2-4 Payload center of gravity in m, displacement from the tool mount (floating point)
81
83
===== =====
82
84
83
85
.. table:: With setToolVoltage command
@@ -180,6 +182,18 @@ The robot reads from the "script_command_socket" expecting a 32 bit integer repr
180
182
7-12 Coulomb friction scale factors. One number per joint, range [0-1]. 0 means no compensation for that joint. 1 means full compensation. Default is [0.8, 0.8, 0.7, 0.8, 0.8, 0.8]. (floating point)
181
183
===== =====
182
184
185
+
.. table:: With setTargetPayload command
186
+
:widths: auto
187
+
188
+
===== =====
189
+
index meaning
190
+
===== =====
191
+
1 Payload mass in kg (floating point)
192
+
2-4 Payload center of gravity in m, displacement from the tool mount (floating point)
0 commit comments