init
This commit is contained in:
14
textured_shapes/materials/scripts/textures.material
Normal file
14
textured_shapes/materials/scripts/textures.material
Normal file
@@ -0,0 +1,14 @@
|
||||
material TexturedShape/Squares
|
||||
{
|
||||
technique
|
||||
{
|
||||
pass
|
||||
{
|
||||
texture_unit
|
||||
{
|
||||
texture squares.png
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
BIN
textured_shapes/materials/textures/squares.png
Normal file
BIN
textured_shapes/materials/textures/squares.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.3 KiB |
16
textured_shapes/model.config
Normal file
16
textured_shapes/model.config
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<model>
|
||||
<name>Textured Shapes</name>
|
||||
<version>1.0</version>
|
||||
<sdf version='1.6'>model.sdf</sdf>
|
||||
|
||||
<author>
|
||||
<name>Louise</name>
|
||||
<email>louise@osrfoundation.org</email>
|
||||
</author>
|
||||
|
||||
<description>
|
||||
Model with links of simple shapes and texture applied.
|
||||
</description>
|
||||
</model>
|
79
textured_shapes/model.sdf
Normal file
79
textured_shapes/model.sdf
Normal file
@@ -0,0 +1,79 @@
|
||||
<?xml version="1.0" ?>
|
||||
<sdf version="1.6">
|
||||
<model name="textured_shapes">
|
||||
<pose>0 0 0.5 0 0 0</pose>
|
||||
<link name="box">
|
||||
<pose>0 -1.5 0 0 0 0</pose>
|
||||
<collision name="collision">
|
||||
<geometry>
|
||||
<box>
|
||||
<size>1 1 1</size>
|
||||
</box>
|
||||
</geometry>
|
||||
</collision>
|
||||
<visual name="visual">
|
||||
<geometry>
|
||||
<box>
|
||||
<size>1 1 1</size>
|
||||
</box>
|
||||
</geometry>
|
||||
<material>
|
||||
<script>
|
||||
<uri>model://textured_shapes/materials/scripts</uri>
|
||||
<uri>model://textured_shapes/materials/textures</uri>
|
||||
<name>TexturedShape/Squares</name>
|
||||
</script>
|
||||
</material>
|
||||
</visual>
|
||||
</link>
|
||||
<link name="sphere">
|
||||
<collision name="collision">
|
||||
<geometry>
|
||||
<sphere>
|
||||
<radius>0.5</radius>
|
||||
</sphere>
|
||||
</geometry>
|
||||
</collision>
|
||||
<visual name="visual">
|
||||
<geometry>
|
||||
<sphere>
|
||||
<radius>0.5</radius>
|
||||
</sphere>
|
||||
</geometry>
|
||||
<material>
|
||||
<script>
|
||||
<uri>model://textured_shapes/materials/scripts</uri>
|
||||
<uri>model://textured_shapes/materials/textures</uri>
|
||||
<name>TexturedShape/Squares</name>
|
||||
</script>
|
||||
</material>
|
||||
</visual>
|
||||
</link>
|
||||
<link name="cylinder">
|
||||
<pose>0 1.5 0 0 0 0</pose>
|
||||
<collision name="collision">
|
||||
<geometry>
|
||||
<cylinder>
|
||||
<radius>0.5</radius>
|
||||
<length>1</length>
|
||||
</cylinder>
|
||||
</geometry>
|
||||
</collision>
|
||||
<visual name="visual">
|
||||
<geometry>
|
||||
<cylinder>
|
||||
<radius>0.5</radius>
|
||||
<length>1</length>
|
||||
</cylinder>
|
||||
</geometry>
|
||||
<material>
|
||||
<script>
|
||||
<uri>model://textured_shapes/materials/scripts</uri>
|
||||
<uri>model://textured_shapes/materials/textures</uri>
|
||||
<name>TexturedShape/Squares</name>
|
||||
</script>
|
||||
</material>
|
||||
</visual>
|
||||
</link>
|
||||
</model>
|
||||
</sdf>
|
Reference in New Issue
Block a user