diff --git a/nodes/encoder_odom_publisher.py b/nodes/encoder_odom_publisher.py index 4d9e88b..414d9c2 100644 --- a/nodes/encoder_odom_publisher.py +++ b/nodes/encoder_odom_publisher.py @@ -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