Skip to content

Commit

Permalink
add covariance for odom.pose
Browse files Browse the repository at this point in the history
  • Loading branch information
knorth55 committed Oct 18, 2019
1 parent 6a8accb commit 0b10dcb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions jsk_fetch_robot/jsk_fetch_startup/scripts/odom_corrector.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ def __init__(self):
'~output', Odometry, queue_size=1)
self.covariance = [1e-3, 0, 0, 0, 0, 0,
0, 1e-3, 0, 0, 0, 0,
0, 0, 1e-6, 0, 0, 0,
0, 0, 0, 1e-6, 0, 0,
0, 0, 0, 0, 1e-6, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 1e-3]

def _cb(self, msg):
msg.pose.covariance = self.covariance
msg.twist.covariance = self.covariance
self.pub.publish(msg)

Expand Down

0 comments on commit 0b10dcb

Please sign in to comment.