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
Copy file name to clipboardExpand all lines: doc/architecture/script_command_interface.rst
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,8 @@ 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
+
- ``setPDControllerGains()``: Set PD gains for the PD control loop running in the external control script.
29
+
- ``setMaxJointTorques()``: Set Max joint torques for the PD control loop running in the external control script.
28
30
29
31
Communication protocol
30
32
----------------------
@@ -58,6 +60,8 @@ The robot reads from the "script_command_socket" expecting a 32 bit integer repr
58
60
- 9: setGravity
59
61
- 10: setTcpOffset
60
62
- 11: setFrictionScales
63
+
- 12: setPDControllerGains
64
+
- 13: setMaxJointTorques
61
65
1-27 data fields specific to the command
62
66
===== =====
63
67
@@ -150,6 +154,24 @@ The robot reads from the "script_command_socket" expecting a 32 bit integer repr
150
154
2 sensor_mass in kg (floating point)
151
155
3-5 sensor_mesurement_offset in m, displacement from the tool flange (3d floating point)
152
156
6-9 sensor_cog in m, displacement from the tool flange (3d floating point)
157
+
158
+
.. table:: With setPDControllerGains command
159
+
:widths: auto
160
+
161
+
===== =====
162
+
index meaning
163
+
===== =====
164
+
1-6 Kp gains for each joint, used in the PD control loop running in the external control script (floating point)
165
+
7-12 Kd gains for each joint, used in the PD control loop running in the external control script (floating point)
166
+
===== =====
167
+
168
+
.. table:: With setMaxJointTorques command
169
+
:widths: auto
170
+
171
+
===== =====
172
+
index meaning
173
+
===== =====
174
+
1-6 max_joint_torques for each joint, used to clamp the torques between +-max_joint_torques before applying them to the robot in the PD control loop running in the external control script (floating point)
0 commit comments