Skip to content

Commit

Permalink
Update duration to be optinally None
Browse files Browse the repository at this point in the history
  • Loading branch information
llee-bdai committed Oct 16, 2024
1 parent 15d9549 commit 356867c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spot_wrapper/spot_arm.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ def hand_pose(
qy: float,
qz: float,
qw: float,
duration: float = 0.0,
duration: float | None = None,
ref_frame: str = "body",
ensure_power_on_and_stand: bool = True,
blocking: bool = True,
Expand Down Expand Up @@ -487,7 +487,7 @@ def hand_pose(
# Build the SE(3) pose of the desired hand position in the moving body frame.
hand_pose = geometry_pb2.SE3Pose(position=position, rotation=rotation)
hand_pose_traj_point = trajectory_pb2.SE3TrajectoryPoint(pose=hand_pose)
if duration != 0.0:
if duration is not None:
traj_duration = seconds_to_duration(duration)
hand_pose_traj_point = trajectory_pb2.SE3TrajectoryPoint(
pose=hand_pose, time_since_reference=traj_duration
Expand Down

0 comments on commit 356867c

Please sign in to comment.