Quantcast

Get size/bounding box of the ground / reachable map

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Get size/bounding box of the ground / reachable map

Adrian Böckenkamp
Hi all,

I need to get the size of the ground / reachable map using the Stage API.
Is there an easy and generic way to retrieve this information (in meters)?

The yellow area on this screenshot shows what I would like to get:
http://fs5.directupload.net/images/170205/uveqo9qp.png

I successfully retrieved the data using
world_object->GetModel("name_of_correct_model")->GetGeom().Print("");
but has requires to know the name of the appropriate model. Also, this
returns (e.g.) "geom pose: (0.00,0.00,0.00) size: [50.00,25.00]" but the
"geom pose" seems to be alwyays zero. Is it possible to compute the
"bounding box" (xmin, xmax, ymin, ymax) in *global* coordinates?

Thanks you very much! :-)

Kind regards,
   Adrian


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Playerstage-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/playerstage-users
Loading...