Home | Tutorials | Wiki | Issues
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

using custom material for an object

I recently migrated to ROS fuerte from electric. I have an object (floor) in ROS electric for which I used the material Gazebo/LightWood. Now that Gazebo/LightWood material is no longer supported in ROS fuerte, how do I use LightWood texture for my object. I do not want my object to look plain in one colour (brown or sienna). I tried the following code but I got errors.

<visual name='floor_3_geom_visual' cast_shadows='1' laser_retro='0.000000' transparency='0.000000'>
          <origin pose='0.000000 0.000000 0.000000 0.000000 -0.000000 0.000000'/>
            <box size='4.465000 4.000000 0.050000'/>

            <material> <texture filename="/home/angenuser/Desktop/hardwood_floor.jpg"/>



And also, in general could someone give me the code snippet on how to add custom image to an object using a .jpg file. Eg situation: I have a tele-conferencing robot and I would like to put up a static jpg image on its screen.