Ask Your Question

squigglylines's profile - activity

2015-10-20 10:27:30 -0600 commented question turtlebot simulation: controller via client-node

data.pose[robotid].orientation gives the orientation as a quaternion.

2015-10-20 10:27:10 -0600 commented question turtlebot simulation: controller via client-node

if you to subscribe to '/gazebo/link_states' there will be a link 'mobile_base::base_footprint'. This gives the position of the turtlebot. If the linkState==data and 'mobile_base::base_footprint'==robotid, then data.pose[robotid].position gives the x,y,z position

2015-10-20 10:26:31 -0600 commented question i want to get the initial pose in x,y,theta coordinates of turtlebot in gazebo

data.pose[robotid].orientation gives the orientation as a quaternion.

2015-10-20 10:26:00 -0600 commented question i want to get the initial pose in x,y,theta coordinates of turtlebot in gazebo

if you to subscribe to '/gazebo/link_states' there will be a link 'mobile_base::base_footprint'. This gives the position of the turtlebot. If the linkState==data and 'mobile_base::base_footprint'==robotid, then data.pose[robotid].position gives the x,y,z position

2015-10-15 11:28:45 -0600 commented question i want to get the initial pose in x,y,theta coordinates of turtlebot in gazebo

The question this was a duplicate of was not answered. This is a valid question. I'm trying to figure out the same issue.