Skip to content

Commit 2d2e923

Browse files
committed
Use SE3s instead of SO3s
1 parent 77e50ba commit 2d2e923

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
*.sw*
2+
__pycache__

src/spatialmath_ros.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def pose_msg_to_se3(pose_msg):
1717
pose_msg.position.z) * UnitQuaternion(pose_msg.orientation.w, [
1818
pose_msg.orientation.x, pose_msg.orientation.y,
1919
pose_msg.orientation.z
20-
]).SO3()
20+
]).SE3()
2121

2222

2323
def se2_to_pose_msg(se2):
@@ -74,4 +74,4 @@ def tf_msg_to_se3(tf_msg):
7474
return SE3(tf_msg.translation.x, tf_msg.translation.y,
7575
tf_msg.translation.z) * UnitQuaternion(tf_msg.rotation.w, [
7676
tf_msg.rotation.x, tf_msg.rotation.y, tf_msg.rotation.z
77-
]).SO3()
77+
]).SE3()

0 commit comments

Comments
 (0)