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
12d8dedee0
commit
662dd2130c
@ -12,9 +12,9 @@ class EncoderOdometry:
|
|||||||
rospy.init_node("encoder_odom_publisher")
|
rospy.init_node("encoder_odom_publisher")
|
||||||
|
|
||||||
# Robot parameters (update these according to your robot)
|
# Robot parameters (update these according to your robot)
|
||||||
self.wheel_radius = 0.05 # Wheel radius in meters
|
self.wheel_radius = 0.202 # Wheel radius in meters
|
||||||
self.wheel_base = 0.3 # Distance between wheels (m)
|
self.wheel_base = 0.392 # Distance between wheels (m)
|
||||||
self.ticks_per_revolution = 1000 # Encoder ticks per wheel revolution
|
self.ticks_per_revolution = 4096 # Encoder ticks per wheel revolution
|
||||||
|
|
||||||
# State variables
|
# State variables
|
||||||
self.x = 0.0
|
self.x = 0.0
|
||||||
|
Loading…
Reference in New Issue
Block a user