-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathonly_canonical_link_moves.sdf
139 lines (134 loc) · 4.06 KB
/
only_canonical_link_moves.sdf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?xml version="1.0" encoding="UTF-8"?>
<sdf version="1.7">
<world name="default">
<plugin
filename="ignition-gazebo-physics-system"
name="ignition::gazebo::systems::Physics">
</plugin>
<plugin
filename="ignition-gazebo-scene-broadcaster-system"
name="ignition::gazebo::systems::SceneBroadcaster">
</plugin>
<light type="directional" name="sun">
<pose>0 0 10 0 0 0</pose>
<direction>-0.5 0.1 -0.9</direction>
</light>
<model name="ground_plane">
<static>true</static>
<link name="surface">
<collision name="surface">
<geometry>
<plane>
<normal>0 0 1</normal>
<size>2 2</size>
</plane>
</geometry>
</collision>
</link>
</model>
<!--
base_link is the canonical link of cylinder1 and does not have a
collision shape, so it will fall indefinitely. However, link0_outer
has a collision shape, so it should fall until it hits the ground plane
and then stop.
-->
<model name="cylinder1">
<link name="base_link">
<visual name="visual1">
<geometry>
<cylinder>
<radius>0.2</radius>
<length>0.1</length>
</cylinder>
</geometry>
<material>
<ambient>0.0 0.6 0.9 0.4</ambient>
<diffuse>0.0 0.6 0.9 0.4</diffuse>
</material>
</visual>
</link>
<!--
link0_outer is already resting on the ground plane, so it shouldn't
move at all
-->
<link name="link0_outer">
<pose>1 0 0 0 0 0</pose>
<collision name="collision_disk">
<geometry>
<cylinder>
<radius>0.2</radius>
<length>0.2</length>
</cylinder>
</geometry>
</collision>
<visual name="visual1">
<geometry>
<cylinder>
<radius>0.2</radius>
<length>0.2</length>
</cylinder>
</geometry>
<material>
<ambient>0.6 0.6 0.9 1</ambient>
<diffuse>0.6 0.6 0.9 1</diffuse>
<specular>1.0 1.0 1.0 1</specular>
</material>
</visual>
</link>
</model>
<!--
Same as the model above, but mark the second link of this model as the
canonical link. This is to test whether all links of a model are updated
after a canonical link update is registered. By default, unless a
canonical link is specified, then the first link of a model is the
canonical link. We want to make sure that model/link poses update
correctly regardless of the order of link updates that are
received/processed.
-->
<model name="cylinder1_custom" canonical_link="base_link_custom">
<pose>0 2 0 0 0 0</pose>
<link name="link0_outer_custom">
<pose>1 0 0 0 0 0</pose>
<collision name="collision_disk">
<geometry>
<cylinder>
<radius>0.2</radius>
<length>0.2</length>
</cylinder>
</geometry>
</collision>
<visual name="visual1">
<geometry>
<cylinder>
<radius>0.2</radius>
<length>0.2</length>
</cylinder>
</geometry>
<material>
<ambient>0.6 0.6 0.9 1</ambient>
<diffuse>0.6 0.6 0.9 1</diffuse>
<specular>1.0 1.0 1.0 1</specular>
</material>
</visual>
</link>
<link name="base_link_custom">
<visual name="visual1">
<geometry>
<cylinder>
<radius>0.2</radius>
<length>0.1</length>
</cylinder>
</geometry>
<material>
<ambient>0.0 0.6 0.9 0.4</ambient>
<diffuse>0.0 0.6 0.9 0.4</diffuse>
</material>
</visual>
</link>
</model>
<!--
TODO(adlarkin) add a similar test with nested models in Edifice, since
nested model support is limited in Dome.
-->
</world>
</sdf>