Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong Linear Twist Values of /car_1/base/odom #20

Open
mariusrodi opened this issue Feb 8, 2021 · 0 comments
Open

Wrong Linear Twist Values of /car_1/base/odom #20

mariusrodi opened this issue Feb 8, 2021 · 0 comments

Comments

@mariusrodi
Copy link

I've notices the linear twist values I get from /car_1/base/odom are relative to the coordinate system of the world.

Output from rostopic echo /car_1/base/odom:

header: 
  seq: 874
  stamp: 
    secs: 355
    nsecs: 466000000
  frame_id: "odom"
child_frame_id: "car_1_base_link"
pose: 
  pose: 
    position: 
      x: 18.2361963383
      y: -1.55624733145
      z: 0.0499878947759
    orientation: 
      x: 5.48518367307e-05
      y: -1.22558539276e-05
      z: 0.434110485011
      w: 0.900859635928
  covariance: [0.0001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0001]
twist: 
  twist: 
    linear: 
      x: 0.623634978341
      y: 0.775241090904
      z: -0.0144921130247
    angular: 
      x: 0.139162996584
      y: 0.0442186870722
      z: 0.0903942005565
  covariance: [0.0001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0001, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0001]

That part is the important one:

twist: 
  twist: 
    linear: 
      x: 0.623634978341
      y: 0.775241090904
      z: -0.0144921130247

But as in ROS Docs nav_msgs/Odometry Message specified, the twist should be specified in the coordinate frame given by the child_frame_id, which is car_1_base_link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant