From: gdfreezer <gdf...@we...> - 2008-05-10 11:56:35
|
How can i use other textures? I tried <material>BeachStones.jpg</material>, <material>BeachStones</material>, <material>textures/BeachStones.jpg</material> and <material>/usr/local/share/gazebo/Media/materials/textures/BeachStones.jpg</material> nothing worked... any ideas? regards gd gdfreezer wrote: > > Thanks! > > Ok, i built a simple room with a ramp. But the robot can't uses the ramp > to drives into the room. Maybe i forgot something or calculated some > values wrong. > > Here is my model: > > <?xml version="1.0"?> > <model:physical name="room_model" > xmlns:model="http://playerstage.sourceforge.net/gazebo/xmlschema/#model" > > xmlns:sensor="http://playerstage.sourceforge.net/gazebo/xmlschema/#sensor" > xmlns:body="http://playerstage.sourceforge.net/gazebo/xmlschema/#body" > xmlns:geom="http://playerstage.sourceforge.net/gazebo/xmlschema/#geom" > xmlns:joint="http://playerstage.sourceforge.net/gazebo/xmlschema/#joint" > > xmlns:visual="http://playerstage.sourceforge.net/gazebo/xmlschema/#visual" > > > <static>true</static> > <body:box name="floor_body"> > <xyz>0 0 0.2</xyz> > <rpy>0.0 0.0 0</rpy> > <geom:box name="floor_geom"> > <size>5 5 0.4</size> > <mass>10000.0</mass> > <visual> > <size>5 5 0.4</size> > <mass>10000.0</mass> > <mesh>unit_box</mesh> > <material>Gazebo/Rockwall</material> > </visual> > </geom:box> > </body:box> > > > <body:box name="wall1_body"> > <xyz>2.43 0 1.4</xyz> > <geom:box name="wand1_geom"> > <size>0.14 5 2</size> > <mass>10000.0</mass> > <visual> > <size>0.14 5 2</size> > <mass>10000.0</mass> > <mesh>unit_box</mesh> > <material>Gazebo/Rockwall</material> > </visual> > </geom:box> > </body:box> > > <body:box name="wall2_body"> > <xyz>-2.43 0 1.4</xyz> > <geom:box name="wand2_geom"> > <size>0.14 5 2</size> > <mass>10000.0</mass> > <visual> > <size>0.14 5 2</size> > <mass>10000.0</mass> > <mesh>unit_box</mesh> > <material>Gazebo/Rockwall</material> > </visual> > </geom:box> > </body:box> > > <body:box name="wall3_body"> > <xyz>0 2.43 1.4</xyz> > <geom:box name="wand3_geom"> > <size>5 0.14 2</size> > <mass>10000.0</mass> > <visual> > <size>5 0.14 2</size> > <mass>10000.0</mass> > <mesh>unit_box</mesh> > <material>Gazebo/Rockwall</material> > </visual> > </geom:box> > </body:box> > <body:box name="ramp_body"> > <xyz>0 -3.45 0.21</xyz> > <rpy>11 0 0</rpy> > <geom:box name="ramp_geom"> > <size>0.8 2 0.001</size> > <mass>10000.0</mass> > <visual> > <size>0.8 2 0.01</size> > <mass>10000.0</mass> > <mesh>unit_box</mesh> > <material>Gazebo/Rockwall</material> > </visual> > </geom:box> > </body:box> > > </model:physical> > > > David Olsen-3 wrote: >> >> You need to set the solids to be static, like this: >> <model:physical name="wall1_model"> >> <static>true</static> >> ...the usual... >> >> David >> >> 2008/5/10 gdfreezer <gdf...@we...>: >> >>> >>> Today i tried to built a room out of simplesolids but it doesn't work >>> well. >>> The solids just flying through the world. >>> >>> Is there a .world file with a simple room? >>> >>> e.g.: >>> 5x5m floor >>> 40cm floors height >>> 14cm thick walls >>> 2m roomheight >>> >>> i hope, that anybody is able to help me. >>> >>> regards >>> >>> gd >>> >>> >>> David Olsen-3 wrote: >>> > >>> > I happen to be working on the same thing right now! A custom mesh >>> seems >>> to >>> > be the way to go, i.e. a trimesh geometry with a custom mesh visual. >>> I've >>> > got the visual working, but I'm lacking the collision as yet. Just >>> from >>> > playing around, it looks like the proportions issue is that gazebo >>> scales >>> > the mesh such that it's bounding box comes out the size specified in >>> the >>> > world file (or [1, 1, 1] by default I suppose). So you just have to >>> > calculate/measure the width/height/depth of your mesh and set that as >>> the >>> > size in the world file. >>> > >>> > The issue I came across was to do with some ode mass calculation. It >>> > doesn't >>> > seem to like inside out meshes. I'm trying to solve that by giving my >>> > walls >>> > some thickness, I'll let you know how that goes. >>> > >>> > David >>> > >>> > 2008/5/10 Olaf Neugebauer <gdf...@we...>: >>> > >>> >> Hi, >>> >> >>> >> i want to construct an indoor environment for gazebo 0.8. What is the >>> >> best >>> >> way to do that? >>> >> I tried a few ideas with different results: >>> >> >>> >> 1. I tried to use a heightmap but if i reduce the size of the terrain >>> to >>> >> 25, 25, 2 gazebo slows down dramatically to 0 fps. The size of my >>> room's >>> >> heightmap is 257x257px and it's just a simple room. >>> >> >>> >> 2. I built up the room with blender as a custom mesh. Works but i >>> think >>> >> that the proportions of the mesh doesn't fit with my map... >>> >> >>> >> I think the best way is to build a room out of my map so that my map >>> fits >>> >> with the simulated map. >>> >> >>> >> Is anybody able to help me? Is there a tutorial or something like >>> that? >>> >> >>> >> Regards >>> >> >>> >> gd >>> >> _____________________________________________________________________ >>> >> Unbegrenzter Speicherplatz für Ihr E-Mail Postfach? Jetzt aktivieren! >>> >> http://freemail.web.de/club/landingpage.htm/?mc=025555 >>> >> >>> >> >>> >> >>> ------------------------------------------------------------------------- >>> >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >>> >> Don't miss this year's exciting event. There's still time to save >>> $100. >>> >> Use priority code J8TL2D2. >>> >> >>> >> >>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >>> >> _______________________________________________ >>> >> Playerstage-gazebo mailing list >>> >> Pla...@li... >>> >> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo >>> >> >>> > >>> > >>> ------------------------------------------------------------------------- >>> > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >>> > Don't miss this year's exciting event. There's still time to save >>> $100. >>> > Use priority code J8TL2D2. >>> > >>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >>> > _______________________________________________ >>> > Playerstage-gazebo mailing list >>> > Pla...@li... >>> > https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo >>> > >>> > >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/How-to-construct-an-indoor-environment-tp17156725p17160992.html >>> Sent from the playerstage-gazebo mailing list archive at Nabble.com. >>> >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >>> Don't miss this year's exciting event. There's still time to save $100. >>> Use priority code J8TL2D2. >>> >>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >>> _______________________________________________ >>> Playerstage-gazebo mailing list >>> Pla...@li... >>> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo >>> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> Don't miss this year's exciting event. There's still time to save $100. >> Use priority code J8TL2D2. >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >> _______________________________________________ >> Playerstage-gazebo mailing list >> Pla...@li... >> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo >> >> > > -- View this message in context: http://www.nabble.com/How-to-construct-an-indoor-environment-tp17156725p17162556.html Sent from the playerstage-gazebo mailing list archive at Nabble.com. |