Turtlebot odom info does not match where it is on the map.

asked 2022-02-10 15:18:00 -0500

distro gravatar image

Thee odom of my Turtlebot2 is no where close to the same as where it actually is on the map. For instance, the robot is here on the map(and I checked by using PublishPoints icon in rviz to click on where thee robot is on the map):

  header: 
  seq: 2
  stamp: 
    secs: 1644527422
    nsecs: 848595735
  frame_id: "map"
point: 
  x: -2.70286393166
  y: 5.42418050766
  z: 0.403900146484
---

instead of the points I got from publishpoints as seen above. I get this when rostopic echo /odom

header: 
  seq: 14592
  stamp: 
    secs: 1644527485
    nsecs: 267036030
  frame_id: "odom"
child_frame_id: "base_footprint"
pose: 
  pose: 
    position: 
      x: 0.50441511566
      y: -1.47117321649
      z: 0.0
    orientation: 
      x: 0.0
      y: 0.0
      z: -0.833548507385
      w: 0.552446274162

my rostopic echo /odom/pose/pose is:

position: 
  x: 0.50441511566
  y: -1.47117321649
  z: 0.0
orientation: 
  x: 0.0
  y: 0.0
  z: -0.833548507385
  w: 0.552446274162

my rostopic echo /tf is:

 header: 
      seq: 0
      stamp: 
        secs: 1644527640
        nsecs: 446013570
      frame_id: "odom"
    child_frame_id: "base_footprint"
    transform: 
      translation: 
        x: 0.50441511566
        y: -1.47117321649
        z: 0.0
      rotation: 
        x: 0.0
        y: 0.0
        z: -0.833548507385
        w: 0.552446274162

As seen, none of these poistions match. I have no clue whats going on. Aren't they supposed to all match?

edit retag flag offensive close merge delete