ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

subscribe for orientation

asked 2012-03-25 11:54:31 -0600

anonymous user

Anonymous

updated 2012-03-26 10:21:29 -0600

joq gravatar image

Hello!I'm new to ros and i'm trying to get the orientation of a robot simulated in stage,so i've to subscribe to /odom,right?but i see that it has a lot of fields and i think that i only need the quaternion for the orientation,so how can i get this?and how can transform this into a theta?i've read the transform tf::getYaw,i must use this one?and in this case what should include in the code?thanks

edit retag flag offensive close merge delete

Comments

1

What programming language are you using?

David Lu gravatar image David Lu  ( 2012-03-25 12:38:58 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-03-30 10:05:10 -0600

Mac gravatar image

In answer to all of the little sub-questions you asked: Yes. To all of them. /odom isn't necessarily the globally-correct pose, though; see the REP about coordinate frames for details on that. Otherwise, you're spot on.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-03-25 11:54:31 -0600

Seen: 287 times

Last updated: Mar 25 '12