Skip to content

Commit 843cdf2

Browse files
committed
Add comment to arm_joint_cmd
1 parent f2d64ef commit 843cdf2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

spot_wrapper/wrapper.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,6 +1327,21 @@ def velocity_cmd(
13271327
def arm_joint_cmd(
13281328
self, *, sh0: float, sh1: float, el0: float, el1: float, wr0: float, wr1: float
13291329
) -> typing.Tuple[bool, str]:
1330+
"""
1331+
Send a single point arm joint command to the robot.
1332+
1333+
Args:
1334+
sh0: shoulder joint angle
1335+
sh1: shoulder joint angle
1336+
el0: elbow joint angle
1337+
el1: elbow joint angle
1338+
wr0: wrist joint angle
1339+
wr1: wrist joint angle
1340+
1341+
Returns:
1342+
Tuple of bool success and a string message
1343+
1344+
"""
13301345
robot_command = RobotCommandBuilder.arm_joint_command(sh0, sh1, el0, el1, wr0, wr1)
13311346
response = self._robot_command(robot_command)
13321347
return response[0], response[1]

0 commit comments

Comments
 (0)