mirror of
https://github.com/bjoernellens1/cps_rmp220_support.git
synced 2025-01-18 23:56:59 +00:00
Update encoder_odom_publisher.py
This commit is contained in:
parent
da1e43f7b9
commit
3eb3410094
@ -98,6 +98,15 @@ class EncoderOdometry:
|
|||||||
odom.twist.twist.linear.x = v
|
odom.twist.twist.linear.x = v
|
||||||
odom.twist.twist.angular.z = omega
|
odom.twist.twist.angular.z = omega
|
||||||
|
|
||||||
|
# Include Covariance Matrix
|
||||||
|
# Include covariance
|
||||||
|
odom_normalized.pose.covariance = [0.01, 0, 0, 0, 0, 0,
|
||||||
|
0, 0.01, 0, 0, 0, 0,
|
||||||
|
0, 0, 0.01, 0, 0, 0,
|
||||||
|
0, 0, 0, 0.01, 0, 0,
|
||||||
|
0, 0, 0, 0, 0.01, 0,
|
||||||
|
0, 0, 0, 0, 0, 0.01]
|
||||||
|
|
||||||
# Publish odometry to /odom_new
|
# Publish odometry to /odom_new
|
||||||
rospy.logdebug("Publishing Odometry message.")
|
rospy.logdebug("Publishing Odometry message.")
|
||||||
self.odom_pub.publish(odom)
|
self.odom_pub.publish(odom)
|
||||||
|
Loading…
Reference in New Issue
Block a user