Skip to content

Commit

Permalink
fixed quaternion ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
TescaF committed Nov 25, 2020
1 parent 19a2042 commit 6a526f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/exec_traj_from_file.py
Expand Up @@ -41,10 +41,10 @@ def read_file(filename):
target_pose.position.x = float(pose_str[0])
target_pose.position.y = float(pose_str[1])
target_pose.position.z = float(pose_str[2])
target_pose.orientation.w = float(pose_str[3])
target_pose.orientation.x = float(pose_str[4])
target_pose.orientation.y = float(pose_str[5])
target_pose.orientation.z = float(pose_str[6])
target_pose.orientation.x = float(pose_str[3])
target_pose.orientation.y = float(pose_str[4])
target_pose.orientation.z = float(pose_str[5])
target_pose.orientation.w = float(pose_str[6])
else:
rospy.logerr("Formatting error in pose file: " % (pose_str))
return []
Expand Down

0 comments on commit 6a526f6

Please sign in to comment.