Hi Nicolas, I don't think gazebo can read pgm files. Try opening your map file in gimp, save it as a grayscale .png file. Place the file in a package that exports its prefix to gazebo_media_path (for example take a look at manifest.xml for gazebo_worlds), under a subdirectory [package_name]/Media/materials/texture/walls.png. Then try your spawn again. Note that if the map is complicated, it might take gazebo's recursive rectangle wall builder more than 30 sec. to construct the model. John 2010/11/9 Nicolás Alvarez Picco > Hi Everybody!!! > > I have made a map with gmapping, it is a file 'map.pgm'. Now I want to > spawn its walls, for that I am using this launch file: > > > > > > > > > > > > > > > > > > args="-gazebo -param walls -model walls" respawn="false" output="screen" /> > > > > > > Where the file walls.model is > > > xmlns:model="http://playerstage.sourceforge.net/gazebo/xmlschema/#model" > > xmlns:body="http://playerstage.sourceforge.net/gazebo/xmlschema/#body" > xmlns:geom="http://playerstage.sourceforge.net/gazebo/xmlschema/#geom" > > > true > > -8 -8 0 > > map.pgm > 2 > 200 > 1 > false > 0.04 > 0 0 0 > Gazebo/Rocky > > > > > The thing is that nothing happens in gazebo. > Any clue?? Does exist any documentation about how to spawn walls of a map?? > > Many thanks > > Nicolas > > _______________________________________________ > ros-users mailing list > ros-users@code.ros.org > https://code.ros.org/mailman/listinfo/ros-users > >