We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60ae845 commit 350b85fCopy full SHA for 350b85f
1 file changed
nodes/noisify_odom
@@ -93,12 +93,12 @@ class PoseNoisifier(object):
93
return
94
95
# Translate our clean odom into a noisy odom
96
- noisy_odom = np.matmul(sp.pose_msg_to_SE3(odom_msg.pose),
97
- self._accumulated_error)
+ noisy_odom = np.matmul(self._accumulated_error,
+ sp.pose_msg_to_SE3(odom_msg.pose))
98
99
# Figure out "localisation" transform from map to odom frame
100
- localisation = np.matmul(np.linalg.inv(self._accumulated_error),
101
- self._start_pose)
+ localisation = np.matmul(self._start_pose,
+ np.linalg.inv(self._accumulated_error))
102
103
# Publish our messages
104
o = Odometry()
0 commit comments