Skip to content

Commit 350b85f

Browse files
committed
Correct error application to transforms
Addresses qcr/benchbot#55.
1 parent 60ae845 commit 350b85f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

nodes/noisify_odom

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ class PoseNoisifier(object):
9393
return
9494

9595
# 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)
96+
noisy_odom = np.matmul(self._accumulated_error,
97+
sp.pose_msg_to_SE3(odom_msg.pose))
9898

9999
# Figure out "localisation" transform from map to odom frame
100-
localisation = np.matmul(np.linalg.inv(self._accumulated_error),
101-
self._start_pose)
100+
localisation = np.matmul(self._start_pose,
101+
np.linalg.inv(self._accumulated_error))
102102

103103
# Publish our messages
104104
o = Odometry()

0 commit comments

Comments
 (0)