mirror of
https://github.com/bjoernellens1/cps_rmp220_support.git
synced 2025-01-18 15:46: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")
|
||||
|
||||
# Robot parameters (update these according to your robot)
|
||||
self.wheel_radius = 0.05 # Wheel radius in meters
|
||||
self.wheel_base = 0.3 # Distance between wheels (m)
|
||||
self.ticks_per_revolution = 1000 # Encoder ticks per wheel revolution
|
||||
self.wheel_radius = 0.202 # Wheel radius in meters
|
||||
self.wheel_base = 0.392 # Distance between wheels (m)
|
||||
self.ticks_per_revolution = 4096 # Encoder ticks per wheel revolution
|
||||
|
||||
# State variables
|
||||
self.x = 0.0
|
||||
|
Loading…
Reference in New Issue
Block a user