Skip to content

Commit

Permalink
[Iris] update colours for quadcopter model
Browse files Browse the repository at this point in the history
- Replace Gazebo material scripts with equivalent ambient, diffuse, specular elements compatible with Ignition.

Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
  • Loading branch information
srmainwaring committed Apr 14, 2022
1 parent 05fa5a0 commit 2b89c78
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions models/iris_with_standoffs/model.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@
<!--script>
<name>Gazebo/DarkGrey</name>
</script-->
<ambient>.175 .175 .175 1.0</ambient>
<diffuse>.175 .175 .175 1.0</diffuse>
<specular>.175 .175 .175 1.000000</specular>
</material>
</visual>

Expand All @@ -67,6 +70,9 @@
<name>Gazebo/FlatBlack</name>
<uri>file://media/materials/scripts/gazebo.material</uri>
</script-->
<ambient>0.1 0.1 0.1</ambient>
<diffuse>0.1 0.1 0.1</diffuse>
<specular>0.01 0.01 0.01 1.0</specular>
</material>
</visual>
<visual name='front_right_leg_visual'>
Expand All @@ -82,6 +88,9 @@
<name>Gazebo/FlatBlack</name>
<uri>file://media/materials/scripts/gazebo.material</uri>
</script-->
<ambient>0.1 0.1 0.1</ambient>
<diffuse>0.1 0.1 0.1</diffuse>
<specular>0.01 0.01 0.01 1.0</specular>
</material>
</visual>
<visual name='rear_left_leg_visual'>
Expand All @@ -97,6 +106,9 @@
<name>Gazebo/FlatBlack</name>
<uri>file://media/materials/scripts/gazebo.material</uri>
</script-->
<ambient>0.1 0.1 0.1</ambient>
<diffuse>0.1 0.1 0.1</diffuse>
<specular>0.01 0.01 0.01 1.0</specular>
</material>
</visual>
<visual name='rear_right_leg_visual'>
Expand All @@ -112,6 +124,9 @@
<name>Gazebo/FlatBlack</name>
<uri>file://media/materials/scripts/gazebo.material</uri>
</script-->
<ambient>0.1 0.1 0.1</ambient>
<diffuse>0.1 0.1 0.1</diffuse>
<specular>0.01 0.01 0.01 1.0</specular>
</material>
</visual>
</link>
Expand Down Expand Up @@ -272,6 +287,9 @@
<name>Gazebo/Blue</name>
<uri>__default__</uri>
</script-->
<ambient>0 0 1</ambient>
<diffuse>0 0 1</diffuse>
<specular>0.1 0.1 0.1 1</specular>
</material>
</visual>
<gravity>1</gravity>
Expand Down Expand Up @@ -339,9 +357,12 @@
</geometry>
<material>
<!--script>
<name>Gazebo/DarkGrey</name>
<name>Gazebo/White</name>
<uri>__default__</uri>
</script-->
<ambient>1 1 1 1</ambient>
<diffuse>1 1 1 1</diffuse>
<specular>.1 .1 .1 1</specular>
</material>
</visual>
<gravity>1</gravity>
Expand Down Expand Up @@ -412,6 +433,9 @@
<name>Gazebo/Blue</name>
<uri>__default__</uri>
</script-->
<ambient>0 0 1</ambient>
<diffuse>0 0 1</diffuse>
<specular>0.1 0.1 0.1 1</specular>
</material>
</visual>
<gravity>1</gravity>
Expand Down Expand Up @@ -479,9 +503,12 @@
</geometry>
<material>
<!--script>
<name>Gazebo/DarkGrey</name>
<name>Gazebo/White</name>
<uri>__default__</uri>
</script-->
<ambient>1 1 1 1</ambient>
<diffuse>1 1 1 1</diffuse>
<specular>.1 .1 .1 1</specular>
</material>
</visual>
<gravity>1</gravity>
Expand Down

0 comments on commit 2b89c78

Please sign in to comment.