mirror of
https://github.com/bjoernellens1/cps_rmp220_support.git
synced 2025-02-22 14:06:47 +00:00
update odometry. Changed measurements
This commit is contained in:
parent
5499af6c4e
commit
baaca785b1
@ -1,5 +1,9 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
"""
|
||||
Node for pusblishing segway rmp 220 lite Odometry calculated from encoder ticks_fb
|
||||
"""
|
||||
|
||||
import rospy
|
||||
import tf
|
||||
from nav_msgs.msg import Odometry
|
||||
@ -12,9 +16,9 @@ class EncoderOdometry:
|
||||
rospy.init_node("encoder_odom_publisher")
|
||||
|
||||
# Robot parameters (update these according to your robot)
|
||||
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
|
||||
self.wheel_radius = 0.125 #0.202 # Wheel radius in meters
|
||||
self.wheel_base = 0.415 #0.392 # Distance between wheels (m)
|
||||
self.ticks_per_revolution = 4096 # Encoder ticks per wheel revolution --> checked fine
|
||||
|
||||
# State variables
|
||||
self.x = 0.0
|
||||
|
Loading…
Reference in New Issue
Block a user