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
- ``setFrictionCompensation()``: Set friction compensation for torque command.
24
+
- ``setPDControllerGains()``: Set PD gains for the PD control loop running in the external control script.
25
+
- ``setMaxJointTorques()``: Set Max joint torques for the PD control loop running in the external control script.
24
26
25
27
Communication protocol
26
28
----------------------
@@ -50,6 +52,8 @@ The robot reads from the "script_command_socket" expecting a 32 bit integer repr
50
52
- 5: startToolContact
51
53
- 6: endToolContact
52
54
- 7: setFrictionCompensation
55
+
- 8: setPDControllerGains
56
+
- 9: setMaxJointTorques
53
57
1-27 data fields specific to the command
54
58
===== =====
55
59
@@ -132,6 +136,25 @@ The robot reads from the "script_command_socket" expecting a 32 bit integer repr
132
136
1 friction_compensation_enabled enable/disable friction compensation for torque command.
133
137
===== =====
134
138
139
+
.. table:: With setPDControllerGains command
140
+
:widths: auto
141
+
142
+
===== =====
143
+
index meaning
144
+
===== =====
145
+
1-6 Kp gains for each joint, used in the PD control loop running in the external control script (floating point)
146
+
7-12 Kd gains for each joint, used in the PD control loop running in the external control script (floating point)
147
+
===== =====
148
+
149
+
.. table:: With setMaxJointTorques command
150
+
:widths: auto
151
+
152
+
===== =====
153
+
index meaning
154
+
===== =====
155
+
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)
156
+
===== =====
157
+
135
158
.. note::
136
159
In URScript the ``socket_read_binary_integer()`` function is used to read the data from the
137
160
script command socket. The first index in that function's return value is the number of integers read,
0 commit comments