Skip to content

Commit 00d9235

Browse files
author
John
authored
Merge branch 'chapulina/resource_path' into jshep1/local_models
2 parents 0719ee1 + d66efe2 commit 00d9235

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+2515
-416
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.5.1 FATAL_ERROR)
33
#============================================================================
44
# Initialize the project
55
#============================================================================
6-
project(ignition-gazebo2 VERSION 2.20.0)
6+
project(ignition-gazebo2 VERSION 2.20.1)
77

88
#============================================================================
99
# Find ignition-cmake

Changelog.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
## Ignition Gazebo 2.x
22

3+
### Ignition Gazebo 2.x.x (2020-xx-xx)
4+
5+
1. Added support for controlling which joints are published by the
6+
JointStatePublisher.
7+
* [Pull Request 222](https://github.com/ignitionrobotics/ign-gazebo/pull/222)
8+
9+
### Ignition Gazebo 2.20.1 (2020-06-18)
10+
11+
1. Properly add new models into the scenegraph. With this fix, when a model is spawned it will be added into the graph and resulting calls to the `scene/info` service will return a correct `msgs::Scene`.
12+
* [Pull Request 212](https://github.com/ignitionrobotics/ign-gazebo/pull/212)
313

414
### Ignition Gazebo 2.20.0 (2020-06-09)
515

examples/worlds/breadcrumbs.sdf

+1-1
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@
472472
<pose>-2 0 0 0 0 0</pose>
473473
<include>
474474
<uri>
475-
https://fuel.ignitionrobotics.org/1.0/openrobotics/models/X2 Config 1
475+
https://fuel.ignitionrobotics.org/1.0/OpenRobotics/models/X2 Config 1
476476
</uri>
477477
</include>
478478
</model>

examples/worlds/camera_sensor.sdf

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@
258258
<include>
259259
<pose>0 1 3 0.0 0.0 1.57</pose>
260260
<uri>
261-
https://fuel.ignitionrobotics.org/1.0/openrobotics/models/Construction Cone
261+
https://fuel.ignitionrobotics.org/1.0/OpenRobotics/models/Construction Cone
262262
</uri>
263263
</include>
264264

examples/worlds/depth_camera_sensor.sdf

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@
227227
<include>
228228
<pose>0 1 3 0.0 0.0 1.57</pose>
229229
<uri>
230-
https://fuel.ignitionrobotics.org/1.0/openrobotics/models/Construction Barrel
230+
https://fuel.ignitionrobotics.org/1.0/OpenRobotics/models/Construction Barrel
231231
</uri>
232232
</include>
233233

examples/worlds/fuel.sdf

+3-3
Original file line numberDiff line numberDiff line change
@@ -121,17 +121,17 @@
121121
</model>
122122

123123
<include>
124-
<uri>https://fuel.ignitionrobotics.org/1.0/nate/models/double_pendulum_with_base/2</uri>
124+
<uri>https://fuel.ignitionrobotics.org/1.0/OpenRobotics/models/Double pendulum with base</uri>
125125
</include>
126126

127127
<include>
128128
<pose>1 0 0 0 0 0</pose>
129-
<uri>https://fuel.ignitionrobotics.org/1.0/nate/models/my_Backpack</uri>
129+
<uri>https://fuel.ignitionrobotics.org/1.0/OpenRobotics/models/Backpack</uri>
130130
</include>
131131

132132
<include>
133133
<pose>2 5 0 0 0 0</pose>
134-
<uri>https://fuel.ignitionrobotics.org/1.0/chapulina/models/Gazebo - relative paths</uri>
134+
<uri>https://fuel.ignitionrobotics.org/1.0/OpenRobotics/models/Gazebo - relative paths</uri>
135135
</include>
136136

137137
</world>

examples/worlds/fuel_textured_mesh.sdf

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
<static>true</static>
170170
<name>Rescue Randy</name>
171171
<pose>0 0 0 0 0 1.57</pose>
172-
<uri>https://fuel.ignitionrobotics.org/1.0/openrobotics/models/Rescue Randy</uri>
172+
<uri>https://fuel.ignitionrobotics.org/1.0/OpenRobotics/models/Rescue Randy</uri>
173173
</include>
174174

175175
<model name="ground_plane">

examples/worlds/gpu_lidar_sensor.sdf

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
<include>
236236
<pose>0 0 0 0 0 1.57</pose>
237237
<uri>
238-
https://fuel.ignitionrobotics.org/1.0/openrobotics/models/Playground
238+
https://fuel.ignitionrobotics.org/1.0/OpenRobotics/models/Playground
239239
</uri>
240240
</include>
241241

examples/worlds/joint_controller.sdf

+97-1
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22
<!--
33
Ignition Gazebo joint controller plugin demo
44
5-
Try sending joint velocity commands:
5+
Try sending joint velocity commands (velocity mode):
66
77
ign topic -t "/model/joint_controller_demo/joint/j1/cmd_vel" -m ignition.msgs.Double -p "data: -1.0"
88
99
ign topic -t "/model/joint_controller_demo/joint/j1/cmd_vel" -m ignition.msgs.Double -p "data: 10.0"
10+
11+
Try sending joint velocity commands (force mode):
12+
13+
ign topic -t "/model/joint_controller_demo_2/joint/j1/cmd_vel" -m ignition.msgs.Double -p "data: -1.0"
14+
15+
ign topic -t "/model/joint_controller_demo_2/joint/j1/cmd_vel" -m ignition.msgs.Double -p "data: 10.0"
1016
-->
1117
<sdf version="1.6">
1218
<world name="default">
@@ -152,10 +158,100 @@
152158
<xyz>0 0 1</xyz>
153159
</axis>
154160
</joint>
161+
<!-- Velocity mode -->
162+
<plugin
163+
filename="libignition-gazebo-joint-controller-system.so"
164+
name="ignition::gazebo::systems::JointController">
165+
<joint_name>j1</joint_name>
166+
</plugin>
167+
</model>
168+
169+
<model name="joint_controller_demo_2">
170+
<pose>0 0.5 0 0 1.57 0</pose>
171+
<link name="base_link">
172+
<pose>0.0 0.0 0.0 0 0 0</pose>
173+
<inertial>
174+
<inertia>
175+
<ixx>2.501</ixx>
176+
<ixy>0</ixy>
177+
<ixz>0</ixz>
178+
<iyy>2.501</iyy>
179+
<iyz>0</iyz>
180+
<izz>5</izz>
181+
</inertia>
182+
<mass>120.0</mass>
183+
</inertial>
184+
<visual name="base_visual">
185+
<pose>0.0 0.0 0.0 0 0 0</pose>
186+
<geometry>
187+
<box>
188+
<size>0.5 0.5 0.01</size>
189+
</box>
190+
</geometry>
191+
</visual>
192+
<collision name="base_collision">
193+
<pose>0.0 0.0 0.0 0 0 0</pose>
194+
<geometry>
195+
<box>
196+
<size>0.5 0.5 0.01</size>
197+
</box>
198+
</geometry>
199+
</collision>
200+
</link>
201+
<link name="rotor2">
202+
<pose>0.0 0.0 0.1 0 0 0</pose>
203+
<inertial>
204+
<inertia>
205+
<ixx>0.032</ixx>
206+
<ixy>0</ixy>
207+
<ixz>0</ixz>
208+
<iyy>0.032</iyy>
209+
<iyz>0</iyz>
210+
<izz>0.00012</izz>
211+
</inertia>
212+
<mass>0.6</mass>
213+
</inertial>
214+
<visual name="visual">
215+
<geometry>
216+
<box>
217+
<size>0.25 0.1 0.05</size>
218+
</box>
219+
</geometry>
220+
<material>
221+
<ambient>0.2 0.8 0.2 1</ambient>
222+
</material>
223+
</visual>
224+
<collision name="collision">
225+
<geometry>
226+
<box>
227+
<size>0.25 0.1 0.05</size>
228+
</box>
229+
</geometry>
230+
</collision>
231+
</link>
232+
233+
<joint name="world_fixed" type="fixed">
234+
<parent>world</parent>
235+
<child>base_link</child>
236+
</joint>
237+
238+
<joint name="j1" type="revolute">
239+
<pose>0 0 -0.5 0 0 0</pose>
240+
<parent>base_link</parent>
241+
<child>rotor2</child>
242+
<axis>
243+
<xyz>0 0 1</xyz>
244+
</axis>
245+
</joint>
246+
247+
<!-- Force mode -->
155248
<plugin
156249
filename="libignition-gazebo-joint-controller-system.so"
157250
name="ignition::gazebo::systems::JointController">
158251
<joint_name>j1</joint_name>
252+
<use_force_commands>true</use_force_commands>
253+
<p_gain>0.2</p_gain>
254+
<i_gain>0.01</i_gain>
159255
</plugin>
160256
</model>
161257
</world>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
<?xml version="1.0" ?>
2+
<!--
3+
Ignition Gazebo joint position controller plugin demo
4+
5+
Try sending joint position commands:
6+
7+
ign topic -t "/model/joint_position_controller_demo/joint/j1/0/cmd_pos" -m ignition.msgs.Double -p "data: -1.0"
8+
9+
ign topic -t "/model/joint_position_controller_demo/joint/j1/0/cmd_pos" -m ignition.msgs.Double -p "data: 1.0"
10+
-->
11+
<sdf version="1.6">
12+
<world name="default">
13+
<plugin
14+
filename="libignition-gazebo-physics-system.so"
15+
name="ignition::gazebo::systems::Physics">
16+
</plugin>
17+
<plugin
18+
filename="libignition-gazebo-scene-broadcaster-system.so"
19+
name="ignition::gazebo::systems::SceneBroadcaster">
20+
</plugin>
21+
22+
<gui fullscreen="0">
23+
24+
<!-- 3D scene -->
25+
<plugin filename="GzScene3D" name="3D View">
26+
<ignition-gui>
27+
<title>3D View</title>
28+
<property type="bool" key="showTitleBar">false</property>
29+
<property type="bool" key="resizable">false</property>
30+
<property type="double" key="z">0</property>
31+
<anchor line="right" target="window" target_line="right"/>
32+
<anchor line="left" target="window" target_line="left"/>
33+
<anchor line="top" target="window" target_line="top"/>
34+
<anchor line="bottom" target="window" target_line="bottom"/>
35+
</ignition-gui>
36+
37+
<engine>ogre</engine>
38+
<scene>scene</scene>
39+
<ambient_light>0.4 0.4 0.4</ambient_light>
40+
<background_color>0.8 0.8 0.8</background_color>
41+
<camera_pose>1 0 0.1 0 0.05 3.14</camera_pose>
42+
</plugin>
43+
44+
<!-- World control -->
45+
<plugin filename="WorldControl" name="World control">
46+
<ignition-gui>
47+
<title>World control</title>
48+
<property type="bool" key="showTitleBar">false</property>
49+
<property type="bool" key="resizable">false</property>
50+
<property type="double" key="height">72</property>
51+
<property type="double" key="width">121</property>
52+
<property type="double" key="z">1</property>
53+
<anchor line="left" target="window" target_line="left"/>
54+
<anchor line="bottom" target="window" target_line="bottom"/>
55+
</ignition-gui>
56+
57+
<play_pause>true</play_pause>
58+
<step>true</step>
59+
<start_paused>true</start_paused>
60+
<service>/world/default/control</service>
61+
<stats_topic>/world/default/stats</stats_topic>
62+
63+
</plugin>
64+
</gui>
65+
<light type="directional" name="sun">
66+
<cast_shadows>true</cast_shadows>
67+
<pose>0 0 10 0 0 0</pose>
68+
<diffuse>1 1 1 1</diffuse>
69+
<specular>0.5 0.5 0.5 1</specular>
70+
<attenuation>
71+
<range>1000</range>
72+
<constant>0.9</constant>
73+
<linear>0.01</linear>
74+
<quadratic>0.001</quadratic>
75+
</attenuation>
76+
<direction>-0.5 0.1 -0.9</direction>
77+
</light>
78+
<model name="joint_position_controller_demo">
79+
<pose>0 0 0 0 1.57 0</pose>
80+
<link name="base_link">
81+
<pose>0.0 0.0 0.0 0 0 0</pose>
82+
<inertial>
83+
<inertia>
84+
<ixx>2.501</ixx>
85+
<ixy>0</ixy>
86+
<ixz>0</ixz>
87+
<iyy>2.501</iyy>
88+
<iyz>0</iyz>
89+
<izz>5</izz>
90+
</inertia>
91+
<mass>120.0</mass>
92+
</inertial>
93+
<visual name="base_visual">
94+
<pose>0.0 0.0 0.0 0 0 0</pose>
95+
<geometry>
96+
<box>
97+
<size>0.5 0.5 0.01</size>
98+
</box>
99+
</geometry>
100+
</visual>
101+
<collision name="base_collision">
102+
<pose>0.0 0.0 0.0 0 0 0</pose>
103+
<geometry>
104+
<box>
105+
<size>0.5 0.5 0.01</size>
106+
</box>
107+
</geometry>
108+
</collision>
109+
</link>
110+
<link name="rotor">
111+
<pose>0.0 0.0 0.1 0 0 0</pose>
112+
<inertial>
113+
<inertia>
114+
<ixx>0.032</ixx>
115+
<ixy>0</ixy>
116+
<ixz>0</ixz>
117+
<iyy>0.032</iyy>
118+
<iyz>0</iyz>
119+
<izz>0.00012</izz>
120+
</inertia>
121+
<mass>0.6</mass>
122+
</inertial>
123+
<visual name="visual">
124+
<geometry>
125+
<box>
126+
<size>0.25 0.1 0.05</size>
127+
</box>
128+
</geometry>
129+
<material>
130+
<ambient>0.2 0.8 0.2 1</ambient>
131+
</material>
132+
</visual>
133+
<collision name="collision">
134+
<geometry>
135+
<box>
136+
<size>0.25 0.1 0.05</size>
137+
</box>
138+
</geometry>
139+
</collision>
140+
</link>
141+
142+
<joint name="world_fixed" type="fixed">
143+
<parent>world</parent>
144+
<child>base_link</child>
145+
</joint>
146+
147+
<joint name="j1" type="revolute">
148+
<pose>0 0 -0.5 0 0 0</pose>
149+
<parent>base_link</parent>
150+
<child>rotor</child>
151+
<axis>
152+
<xyz>0 0 1</xyz>
153+
<dynamics>
154+
<damping>0.5</damping>
155+
</dynamics>
156+
</axis>
157+
</joint>
158+
<plugin
159+
filename="libignition-gazebo-joint-position-controller-system.so"
160+
name="ignition::gazebo::systems::JointPositionController">
161+
<joint_name>j1</joint_name>
162+
<p_gain>1</p_gain>
163+
<i_gain>0.1</i_gain>
164+
<d_gain>0.01</d_gain>
165+
<i_max>1</i_max>
166+
<i_min>-1</i_min>
167+
<cmd_max>1000</cmd_max>
168+
<cmd_min>-1000</cmd_min>
169+
</plugin>
170+
</model>
171+
</world>
172+
</sdf>

examples/worlds/lift_drag_battery.sdf

+1-2
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,9 @@
364364
<resistance>0.07</resistance>
365365
<smooth_current_tau>2.0</smooth_current_tau>
366366
<enable_recharge>true</enable_recharge>
367-
<!-- charging I = c / t, discharging I = P / V,
367+
<!-- charging I = c / t, discharging I = P / V,
368368
charging I should be > discharging I -->
369369
<charging_time>3.0</charging_time>
370-
<soc_threshold>0.51</soc_threshold>
371370
<!-- Consumer-specific -->
372371
<power_load>2.1</power_load>
373372
<start_on_motion>true</start_on_motion>

0 commit comments

Comments
 (0)