I want to get a ground plane with a dimension of 11.03x5.66m. For this I have a texture image with the size of 1103x566px (same size but 1px = 1cm)
I followed the instructions posted in here: http://answers.gazebosim.org/question/4761/how-to-build-a-world-with-real-image-as-ground/
So I have the following files:
./materials/scripts/floor_walls_1.material
./materials/textures/floor.png
./model.config
./model.sdf
model.sdf
<?xml version="1.0"?>
<sdf version="1.4">
<model name="floor_walls_1">
<static>true</static>
<link name="link">
<collision name="collision">
<geometry>
<plane>
<normal>0 0 1</normal>
<size>11.03 5.66</size>
</plane>
</geometry>
<surface>
<friction>
<ode>
<mu>100</mu>
<mu2>50</mu2>
</ode>
</friction>
</surface>
</collision>
<visual name="visual">
<cast_shadows>false</cast_shadows>
<geometry>
<plane>
<normal>0 0 1</normal>
<size>11.03 5.66</size>
</plane>
</geometry>
<material>
<script>
<uri>model://floor_walls_1/materials/scripts/floor_walls_1.material</uri>
<name>FloorWalls1/Image</name>
</script>
</material>
</visual>
</link>
</model>
</sdf>
model.config
<model>
<name>Floor Walls 1</name>
<version>1.0</version>
<sdf version="1.5">model.sdf</sdf>
<description>
A simple ground plane with texture.
</description>
</model>
floor_walls_1.material
material FloorWalls1/Image
{
technique
{
pass
{
ambient 1 1 1 1.000000
diffuse 1 1 1 1.000000
specular 0.03 0.03 0.03 1.000000
emissive 0.900000 0.900000 0.900000 1.000000
texture_unit
{
texture floor.png
scale 0.01 0.01
}
}
}
}
floor.png
THE PROBLEM:
Unfortunately this only produces a very weird image (yellow with some anti-aliasing black stripes).
How can I fix the ground plane so that it shows the image at full size?
Originally posted by SailAvid on Gazebo Answers with karma: 3 on 2015-02-02
Post score: 0