[ros-users] Programmatically get ModelState from Gazebo

John Hsu johnhsu at willowgarage.com
Sun Apr 24 01:06:40 UTC 2011


Hi Ian,
gazebo expects a
ModelStates<http://www.ros.org/doc/api/gazebo/html/msg/ModelStates.html>
topic,
not Pose, try changing your callback to accept ModelStates and see if it
fixes the issue.
Thanks,
John


On Sat, Apr 23, 2011 at 5:20 PM, Ian Jones <ianaldenjones at gmail.com> wrote:

> Hello, I am trying to programmatically get information about the pose of a
> PR2 in Gazebo. The examples on the wiki seem to be based upon command line
> using rosservice. Based upon the Publisher/Subscriber example on the ROS
> wiki I would imagine it would be something like:
>
> rospy.Subscriber("gazebo/model_states", Pose, callback)
>
> but when I try something similar to this Gazebo sends and error msg and
> breaks the connection. I would think it is just finding the right
> combination of topic and msg but I am having troubles figuring that out. Any
> help would be appreciate.
>
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20110423/5b392bce/attachment-0002.html>


More information about the ros-users mailing list