Ask Your Question
0

subscribe for orientation

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

anonymous user

Anonymous

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

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 imageDavid Lu ( 2012-03-25 12:38:58 -0500 )edit

1 Answer

Sort by » oldest newest most voted
1

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 179 times

Last updated: Mar 25 '12