Update encoder_odom_publisher.py

This commit is contained in:
bjoernellens1 2025-01-16 11:16:02 +01:00 committed by GitHub
parent 12d8dedee0
commit 662dd2130c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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