> I am using gzbuilder and DEMs (got them from internet) to create an outdoor
> map. Everything works fine, now I need to be able to pre-load this map into
> the robot so i need a clear ascii file that will hold (x,y,z) coordinates
> for each point on the map.
To get this kind of information, try ou GDAL (http://www.gdal.org). This is 
what gzbuilder uses internally.

> My question is what these Vertex, Index and ODE Index counts represent?? (I
> read some documentation but I still fully dont understand it)  And how (if
> possible) from them I can construct (X,Y,Z) coordinates for each point on
> the map?
OpenGL and ODE use trimeshes (meshes based on set of triangles). To reduce the 
memory taken by the structure, you can specify them as a set of vertices and 
a set of indexes. Then, in the index set, each consecutive 3-index tuple is 
the index of each corner of one triangle.

> Also, I am using SDTS format of DEM so if anyone knows any other way of
> converting this format to something that would be easy to represent as
> (X,Y,Z) please let me know.
There are ASCII-based DEM formats (sorry, don't know them), so you can even 
try gdal_translate to convert your SDTS dem into a readable format.

Note that gzbuilder modifies the DEM to fit gazebo's needs. So, it may not be 
a good idea to base yourself on it to do what you're doing.
-- 
Sylvain Joyeux                          http://www.laas.fr/~sjoyeux

==========================================================
  PhD student, Robotics and Interactions group, LAAS/CNRS
  7 Av. du Colonel Roche
  31077 Toulouse Cedex 4
  Tel: +33 (0)5 61 33 64 51
==========================================================


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Playerstage-gazebo mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo

Reply via email to