Skip to content

Commit 9fea655

Browse files
committed
Fix ordered indexing of trajectories
1 parent 98d2703 commit 9fea655

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/robot_callbacks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ def move_next(data, publisher, controller):
303303
# Servo to the goal pose
304304
t = controller.state['trajectory_poses'][
305305
controller.state['trajectory_pose_next']]
306-
_move_to_pose(__xyzwXYZ_to_SE3(*t[[1, 2, 3, 0, 4, 5, 6]]), publisher,
307-
controller)
306+
_move_to_pose(__xyzwXYZ_to_SE3(*np.array(t)[[1, 2, 3, 0, 4, 5, 6]]),
307+
publisher, controller)
308308

309309
# Register that we completed this goal
310310
controller.state['trajectory_pose_next'] += 1

0 commit comments

Comments
 (0)