Gazebo | Ignition | Community
Ask Your Question
0

Query the dimensions of a model

asked 2023-05-30 13:34:46 -0600

azazdeaz gravatar image

updated 2023-06-01 07:37:13 -0600

Is there a way to get the dimensions of an object in (Ignition) Gazebo? I guess it's solvable by implementing a custom plugin, but are there any simpler ways? Maybe a service i'm missing?

Update: To clarify, i want to know is the width/height/depth of a model's bounding box downloaded from fuel. I think this is what the ModelPhotoShoot plugin does internally: https://github.com/gazebosim/gz-sim/b...

edit retag flag offensive close merge delete

Comments

Can you explain a little more what you want? An "object" is too vague because it's not clear if you want the dimension of the whole model, just a link, or a single visual/collision in the link.

azeey gravatar imageazeey ( 2023-05-30 13:59:53 -0600 )edit

Thanks! I updated the question. I was thinking the size of a model, but if there is a solution for querying the bounding box of a link, or a part of a link, i'm also very interested.

azazdeaz gravatar imageazazdeaz ( 2023-05-31 06:14:00 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-06-01 11:10:29 -0600

azeey gravatar image

Gazebo has a bounding box camera sensor. I can't find a tutorial that covers how to use it, but there's an example in gz-sim that you can look at. The camera publishes a vector of AnnotatedOriented[2,3]DBox types, which you can learn about here

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2023-05-30 13:34:46 -0600

Seen: 319 times

Last updated: Jun 01 '23