Skip to content

Commit 52a1273

Browse files
committed
fix tree_simple model and updated worlds/forest.world
1 parent 2c77443 commit 52a1273

File tree

8 files changed

+3026
-29142
lines changed

8 files changed

+3026
-29142
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ This package contains common gazebo files (worlds, models and plugins) for the [
1414
## Models
1515

1616
- [grass_plane](models/grass_plane)
17+
- [tree_simple](models/tree_simple)
1718

1819
## Plugins
1920

20-
- [sensor_and_model_plugins](src/sensor_and_model_plugins) - Detail descriptions in [README](src/sensor_and_model_plugins/README.md)
21+
- [sensor_plugins](src/sensor_plugins) - Detail descriptions in [README](src/sensor_plugins/README.md)
-335 KB
Binary file not shown.
-408 KB
Binary file not shown.

models/tree_simple/model.config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0"?>
2-
32
<model>
43
<name>Tree (simple)</name>
54
<version>1.0</version>

models/tree_simple/model.sdf

Lines changed: 14 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
11
<?xml version="1.0" ?>
2-
<sdf version="1.5">
2+
<sdf version="1.7">
33
<model name="tree_simple">
4-
<static>1</static>
5-
<link name="link">
4+
<static>true</static>
5+
<link name="link">
66
<pose>0 0 0.1 0 0 0</pose>
7-
<inertial>
8-
<mass>666</mass>
9-
<inertia>
10-
<ixx>0.08611666666666669</ixx>
11-
<ixy>0</ixy>
12-
<ixz>0</ixz>
13-
<iyy>0.08611666666666669</iyy>
14-
<iyz>0</iyz>
15-
<izz>0.08611666666666669</izz>
16-
</inertia>
17-
</inertial>
187

198
<collision name="collision_trunk">
209
<pose>0 0 2.0 0 0 0</pose>
@@ -24,55 +13,17 @@
2413
<length>4</length>
2514
</cylinder>
2615
</geometry>
27-
<surface>
28-
<contact>
29-
<poissons_ratio>0.347</poissons_ratio>
30-
<elastic_modulus>8.8e+09</elastic_modulus>
31-
<ode>
32-
<kp>100000</kp>
33-
<kd>100</kd>
34-
<max_vel>100.0</max_vel>
35-
<min_depth>0.001</min_depth>
36-
</ode>
37-
</contact>
38-
<friction>
39-
<torsional>
40-
<coefficient>1.0</coefficient>
41-
<use_patch_radius>0</use_patch_radius>
42-
<surface_radius>0.01</surface_radius>
43-
</torsional>
44-
</friction>
45-
</surface>
4616
</collision>
47-
17+
4818
<collision name="collision_treetop">
4919
<pose>0 0 5.2 0 0 0</pose>
5020
<geometry>
5121
<sphere>
5222
<radius>1.5</radius>
5323
</sphere>
5424
</geometry>
55-
<surface>
56-
<contact>
57-
<poissons_ratio>0.347</poissons_ratio>
58-
<elastic_modulus>8.8e+09</elastic_modulus>
59-
<ode>
60-
<kp>100000</kp>
61-
<kd>100</kd>
62-
<max_vel>100.0</max_vel>
63-
<min_depth>0.001</min_depth>
64-
</ode>
65-
</contact>
66-
<friction>
67-
<torsional>
68-
<coefficient>1.0</coefficient>
69-
<use_patch_radius>0</use_patch_radius>
70-
<surface_radius>0.01</surface_radius>
71-
</torsional>
72-
</friction>
73-
</surface>
7425
</collision>
75-
26+
7627
<visual name="trunk">
7728
<pose>0 0 2.0 0 0 0</pose>
7829
<geometry>
@@ -82,14 +33,13 @@
8233
</cylinder>
8334
</geometry>
8435
<material>
85-
<script>
86-
<uri>model://tree_simple/scripts</uri>
87-
<uri>model://tree_simple/materials/textures</uri>
88-
<name>TreeSimple/Trunk</name>
89-
</script>
36+
<ambient>0.4 0.2 0.0 1.0</ambient>
37+
<diffuse>0.6 0.4 0.2 1.0</diffuse>
38+
<specular>0 0 0 1</specular>
39+
<emissive>0 0 0 1</emissive>
9040
</material>
9141
</visual>
92-
42+
9343
<visual name="treetop">
9444
<pose>0 0 5.2 0 0 0</pose>
9545
<geometry>
@@ -98,16 +48,13 @@
9848
</sphere>
9949
</geometry>
10050
<material>
101-
<script>
102-
<uri>model://tree_simple/scripts</uri>
103-
<uri>model://tree_simple/materials/textures</uri>
104-
<name>TreeSimple/Treetop</name>
105-
</script>
51+
<ambient>0.0 0.5 0.1 1.0</ambient>
52+
<diffuse>0.1 0.9 0.2 1.0</diffuse>
53+
<specular>0 0 0 1</specular>
54+
<emissive>0 0 0 1</emissive>
10655
</material>
10756
</visual>
10857

10958
</link>
11059
</model>
11160
</sdf>
112-
113-

models/tree_simple/scripts/tree_simple.material

Lines changed: 0 additions & 39 deletions
This file was deleted.

package.xml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
<version>2.0.0</version>
77
<description>This package contains common gazebo files (worlds, models and plugins) for the MRS system.</description>
88

9-
<author email="[email protected]">Vojtech Spurny</author>
109
<maintainer email="[email protected]">Vojtech Spurny</maintainer>
1110
<maintainer email="[email protected]">Tomas Baca</maintainer>
11+
<maintainer email="[email protected]">Tomas Baca</maintainer>
1212

1313
<license>BSD 3-Clause</license>
1414

@@ -25,15 +25,7 @@
2525
<depend>eigen</depend>
2626

2727
<export>
28-
2928
<build_type>ament_cmake</build_type>
30-
<!-- gazebo_ros_paths_plugin automatically adds these to
31-
GAZEBO_PLUGIN_PATH and GAZEBO_MODEL_PATH when you do this export inside
32-
the package.xml file. You can than use URIs of type model://my_package/stuff. -->
33-
<gazebo_ros gazebo_model_path="${prefix}/models"/>
34-
<gazebo_ros gazebo_media_path="${prefix}"/>
35-
<gazebo_ros plugin_path="${prefix}/lib"/>
36-
3729
</export>
3830

3931
</package>

0 commit comments

Comments
 (0)