Home | Tutorials | Wiki | Issues
Ask Your Question
3

Increase Ground Plane Grid Size

asked 2014-07-22 12:24:45 -0600

K. Zeng gravatar image

Hello everyone, I know that you can adjust the size of the ground plane itself, but is there a way to change the size of the gridded area so it's bigger than 20x20? Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2014-07-22 19:38:18 -0600

scpeters gravatar image

I know that the plane geometry tag has a size parameter (see ground_plane model), but it's actually ignored for physics purposes in ODE and is actually an infinite ground plane. The size is used for the visual, which can be seen when you zoom out.

Regarding the grid, that is not a property of the ground plane, but actually a rendering property of the scene. The following tag can be used to disable the grid: <grid>false</grid> (see blank.world) or it can be toggled from the View -> Grid menu.

The size of the grid is currently hard-coded in gazebo::rendering::Scene::SetGrid.

edit flag offensive delete link more

Comments

Thank you very much for the answer! Is there a way to access SetGrid.cc so I can change the grid size?? I tried to find a copy of that code on my harddrive, but all I found was SetGrid.hh, which appears to only list the functions, not the functions themselves?

K. Zeng gravatar imageK. Zeng ( 2014-07-23 13:01:33 -0600 )edit

In my application I replaced planes with boxes, with their width = 0.01. I don't know if that's appropriate but seems to be working fine for my purpose (I just needed stairs).

IsaacS gravatar imageIsaacS ( 2015-06-22 05:15:11 -0600 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-07-22 12:24:45 -0600

Seen: 5,086 times

Last updated: Jul 22 '14