Gazebo | Ignition | Community
Ask Your Question

How to get model bounding box

asked 2017-08-30 05:27:44 -0500

federico.nardi gravatar image

Hi all,

I'm using gazebo for robotic experiments in combination with ROS.

My problem is the following: given the name of a certain model in the scene (published on a topic) I need to write a ROS node that is capable of determining the bounding box of the model.

I'm searching among the various services that gazebo exposes to ROS and I came across this. But I don't know how to extract the required information from this message.

Please, can someone tell me how this can be done?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-08-31 11:03:52 -0500

chapulina gravatar image

Not sure if this can be easily done through ROS without a Gazebo plugin.

With a Gazebo plugin, you could write a model plugin and use the physics::Model::BoundingBox() function.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-08-30 05:27:44 -0500

Seen: 1,390 times

Last updated: Aug 31 '17