From 662dd2130c2ac4e459791c20126ee386341b74aa Mon Sep 17 00:00:00 2001 From: bjoernellens1 <64093272+bjoernellens1@users.noreply.github.com> Date: Thu, 16 Jan 2025 11:16:02 +0100 Subject: [PATCH] Update encoder_odom_publisher.py --- nodes/encoder_odom_publisher.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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