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
@@ -22,6 +22,8 @@ At the time of writing the ``ScriptCommandInterface`` provides the following fun
22
22
for more information.
23
23
- ``setFrictionCompensation()``: Set friction compensation for torque command.
24
24
- ``ftRtdeInputEnable()``: Enable/disable FT RTDE input processing.
25
+
- ``setPDControllerGains()``: Set PD gains for the PD control loop running in the external control script.
26
+
- ``setMaxJointTorques()``: Set Max joint torques for the PD control loop running in the external control script.
25
27
26
28
Communication protocol
27
29
----------------------
@@ -52,6 +54,8 @@ The robot reads from the "script_command_socket" expecting a 32 bit integer repr
52
54
- 6: endToolContact
53
55
- 7: setFrictionCompensation
54
56
- 8: ftRtdeInputEnable
57
+
- 9: setPDControllerGains
58
+
- 10: setMaxJointTorques
55
59
1-27 data fields specific to the command
56
60
===== =====
57
61
@@ -144,6 +148,24 @@ The robot reads from the "script_command_socket" expecting a 32 bit integer repr
144
148
2 sensor_mass in kg (floating point)
145
149
3-5 sensor_mesurement_offset in m, displacement from the tool flange (3d floating point)
146
150
6-9 sensor_cog in m, displacement from the tool flange (3d floating point)
151
+
152
+
.. table:: With setPDControllerGains command
153
+
:widths: auto
154
+
155
+
===== =====
156
+
index meaning
157
+
===== =====
158
+
1-6 Kp gains for each joint, used in the PD control loop running in the external control script (floating point)
159
+
7-12 Kd gains for each joint, used in the PD control loop running in the external control script (floating point)
160
+
===== =====
161
+
162
+
.. table:: With setMaxJointTorques command
163
+
:widths: auto
164
+
165
+
===== =====
166
+
index meaning
167
+
===== =====
168
+
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