Mapping
< Kinect
< Robot Operating System
< Robotics
< cyborg_x1
Get flash to fully experience Pearltrees
Hi everyone, Thanks for you kind and prompt replies.
pretty much, here's a code that compiles #include #include void odomCB(const nav_msgs::Odometry::ConstPtr& msg) { double xPos=msg->pose.pose.position.x; double yPos=msg->pose.pose.position.y; //get Quaternion anglular information double x=msg->pose.pose.orientation.x; double y=msg->pose.pose.orientation.y; double z=msg->pose.pose.orientation.z; double w=msg->pose.pose.orientation.w; //convert to pitch double angle=atan2(2*(y*x+w*z),w*w+x*x-y*y-z*z); ROS_ERROR("%f %f %f",xPos,yPos,angle); }; On Wed, Mar 31, 2010 at 5:40 PM, Sebastian Castro < [hidden email] > wrote: Is there any way to subscribe to the pose of the base of a simulated PR2 robot?
Description: This tutorial describes how to use the TurtleBot with a previously known map.
Documentation Status