Skip to content

Commit 2df0ede

Browse files
committed
GitHub - part 4 (Gazebo)
1 parent 62783cf commit 2df0ede

File tree

81 files changed

+414
-419
lines changed

Some content is hidden

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

81 files changed

+414
-419
lines changed

actor/tutorial.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ trajectory goes through four points in the world (`[-1, -1, 1]`, `[-1, 1, 1]`,
7676
## World explained
7777

7878
You can see the whole world description
79-
[here](http://bitbucket.org/osrf/gazebo/raw/actor_2/worlds/animated_box.world).
79+
[here](http://github.com/osrf/gazebo/raw/actor_2/worlds/animated_box.world).
8080
Let's go through it by parts.
8181

8282
We start by defining a world with a ground plane and a sun.
@@ -198,7 +198,7 @@ new world file:
198198
gedit walk.world
199199

200200
And paste the following SDF, it has a sun and an actor using the
201-
[walk.dae](https://bitbucket.org/osrf/gazebo/src/default/media/models/walk.dae)
201+
[walk.dae](https://github.com/osrf/gazebo/src/default/media/models/walk.dae)
202202
as the skin:
203203

204204
<?xml version="1.0" ?>
@@ -411,7 +411,7 @@ Here's what it looks like:
411411

412412
Just like for models, it's possible to write custom plugins for any actor and
413413
assign the plugin in the SDF description. Let's take a look at the part of
414-
[cafe.world](https://bitbucket.org/osrf/gazebo/raw/default/worlds/cafe.world)
414+
[cafe.world](https://github.com/osrf/gazebo/raw/default/worlds/cafe.world)
415415
which refers to one of the actors in the video:
416416

417417
<actor name="actor1">
@@ -446,9 +446,9 @@ exposed, and the logic to determine the trajectory will be inside the plugin.
446446
## Plugin C++ code
447447

448448
The source code for the `ActorPlugin` can be found
449-
[here](https://bitbucket.org/osrf/gazebo/raw/default/plugins/ActorPlugin.cc).
449+
[here](https://github.com/osrf/gazebo/raw/default/plugins/ActorPlugin.cc).
450450
And
451-
[here](https://bitbucket.org/osrf/gazebo/raw/default/plugins/ActorPlugin.hh)
451+
[here](https://github.com/osrf/gazebo/raw/default/plugins/ActorPlugin.hh)
452452
is the header.
453453

454454
The first trick is to listen to world update begin events like this:

aerodynamics/tutorial.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ keys:
192192
We are using this plugin in some of the plane elements to generate lift and
193193
drag. The propeller will generate thrust according to its angular speed. The
194194
control surfaces will generate different forces according to their specific
195-
angles and speed. The [LiftDragPlugin aerodynamic parameters](https://bitbucket.org/osrf/gazebo/src/70d6c88e2486367659420743b25f5592ce4569df/worlds/cessna_demo.world?at=default#cl-105)
195+
angles and speed. The [LiftDragPlugin aerodynamic parameters](https://github.com/osrf/gazebo/src/70d6c88e2486367659420743b25f5592ce4569df/worlds/cessna_demo.world?at=default#cl-105)
196196
were approximated using values from
197197
[jsbsim for Cessna 172P](https://github.com/tridge/jsbsim/blob/master/aircraft/c172p/c172p.xml).
198198

animated_box/tutorial.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ cd ~/gazebo_animatedbox_tutorial
2222

2323
# Animate box code
2424

25-
Copy [animated_box.cc](https://bitbucket.org/osrf/gazebo/src/gazebo8/examples/stand_alone/animated_box/animated_box.cc), [independent_listener.cc](https://bitbucket.org/osrf/gazebo/src/gazebo8/examples/stand_alone/animated_box/independent_listener.cc), [integrated_main.cc](https://bitbucket.org/osrf/gazebo/src/gazebo8/examples/stand_alone/animated_box/integrated_main.cc), [CMakeLists.txt](https://bitbucket.org/osrf/gazebo/src/gazebo8/examples/stand_alone/animated_box/CMakeLists.txt), and [animated_box.world](https://bitbucket.org/osrf/gazebo/src/gazebo8/examples/stand_alone/animated_box/animated_box.world) into the current directory.
25+
Copy [animated_box.cc](https://github.com/osrf/gazebo/src/gazebo8/examples/stand_alone/animated_box/animated_box.cc), [independent_listener.cc](https://github.com/osrf/gazebo/src/gazebo8/examples/stand_alone/animated_box/independent_listener.cc), [integrated_main.cc](https://github.com/osrf/gazebo/src/gazebo8/examples/stand_alone/animated_box/integrated_main.cc), [CMakeLists.txt](https://github.com/osrf/gazebo/src/gazebo8/examples/stand_alone/animated_box/CMakeLists.txt), and [animated_box.world](https://github.com/osrf/gazebo/src/gazebo8/examples/stand_alone/animated_box/animated_box.world) into the current directory.
2626

2727
On OS X, you can replace `wget` with `curl -OL`.
2828

2929
~~~
30-
wget http://bitbucket.org/osrf/gazebo/raw/gazebo8/examples/stand_alone/animated_box/animated_box.cc
31-
wget http://bitbucket.org/osrf/gazebo/raw/gazebo8/examples/stand_alone/animated_box/independent_listener.cc
32-
wget http://bitbucket.org/osrf/gazebo/raw/gazebo8/examples/stand_alone/animated_box/integrated_main.cc
33-
wget http://bitbucket.org/osrf/gazebo/raw/gazebo8/examples/stand_alone/animated_box/CMakeLists.txt
34-
wget http://bitbucket.org/osrf/gazebo/raw/gazebo8/examples/stand_alone/animated_box/animated_box.world
30+
wget http://github.com/osrf/gazebo/raw/gazebo8/examples/stand_alone/animated_box/animated_box.cc
31+
wget http://github.com/osrf/gazebo/raw/gazebo8/examples/stand_alone/animated_box/independent_listener.cc
32+
wget http://github.com/osrf/gazebo/raw/gazebo8/examples/stand_alone/animated_box/integrated_main.cc
33+
wget http://github.com/osrf/gazebo/raw/gazebo8/examples/stand_alone/animated_box/CMakeLists.txt
34+
wget http://github.com/osrf/gazebo/raw/gazebo8/examples/stand_alone/animated_box/animated_box.world
3535
~~~
3636

3737
Build the plugin

animated_box/tutorial_4.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ cd ~/gazebo_animatebox_tutorial
2222

2323
# Animate box code
2424

25-
Copy [animated_box.cc](https://bitbucket.org/osrf/gazebo/src/gazebo_4.0/examples/stand_alone/animated_box/animated_box.cc), [independent_listener.cc](https://bitbucket.org/osrf/gazebo/src/gazebo_4.0/examples/stand_alone/animated_box/independent_listener.cc), [integrated_main.cc](https://bitbucket.org/osrf/gazebo/src/gazebo_4.0/examples/stand_alone/animated_box/integrated_main.cc), [CMakeLists.txt](https://bitbucket.org/osrf/gazebo/src/gazebo_4.0/examples/stand_alone/animated_box/CMakeLists.txt), and [animated_box.world](https://bitbucket.org/osrf/gazebo/src/gazebo_4.0/examples/stand_alone/animated_box/animated_box.world) into the current directory.
25+
Copy [animated_box.cc](https://github.com/osrf/gazebo/src/gazebo_4.0/examples/stand_alone/animated_box/animated_box.cc), [independent_listener.cc](https://github.com/osrf/gazebo/src/gazebo_4.0/examples/stand_alone/animated_box/independent_listener.cc), [integrated_main.cc](https://github.com/osrf/gazebo/src/gazebo_4.0/examples/stand_alone/animated_box/integrated_main.cc), [CMakeLists.txt](https://github.com/osrf/gazebo/src/gazebo_4.0/examples/stand_alone/animated_box/CMakeLists.txt), and [animated_box.world](https://github.com/osrf/gazebo/src/gazebo_4.0/examples/stand_alone/animated_box/animated_box.world) into the current directory.
2626

2727
~~~
28-
wget http://bitbucket.org/osrf/gazebo/raw/gazebo_4.0/examples/stand_alone/animated_box/animated_box.cc
29-
wget http://bitbucket.org/osrf/gazebo/raw/gazebo_4.0/examples/stand_alone/animated_box/independent_listener.cc
30-
wget http://bitbucket.org/osrf/gazebo/raw/gazebo_4.0/examples/stand_alone/animated_box/integrated_main.cc
31-
wget http://bitbucket.org/osrf/gazebo/raw/gazebo_4.0/examples/stand_alone/animated_box/CMakeLists.txt
32-
wget http://bitbucket.org/osrf/gazebo/raw/gazebo_4.0/examples/stand_alone/animated_box/animated_box.world
28+
wget http://github.com/osrf/gazebo/raw/gazebo_4.0/examples/stand_alone/animated_box/animated_box.cc
29+
wget http://github.com/osrf/gazebo/raw/gazebo_4.0/examples/stand_alone/animated_box/independent_listener.cc
30+
wget http://github.com/osrf/gazebo/raw/gazebo_4.0/examples/stand_alone/animated_box/integrated_main.cc
31+
wget http://github.com/osrf/gazebo/raw/gazebo_4.0/examples/stand_alone/animated_box/CMakeLists.txt
32+
wget http://github.com/osrf/gazebo/raw/gazebo_4.0/examples/stand_alone/animated_box/animated_box.world
3333
~~~
3434

3535
Build the plugin

animated_box/tutorial_6.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ cd ~/gazebo_animatedbox_tutorial
2222

2323
# Animate box code
2424

25-
Copy [animated_box.cc](https://bitbucket.org/osrf/gazebo/src/gazebo6/examples/stand_alone/animated_box/animated_box.cc), [independent_listener.cc](https://bitbucket.org/osrf/gazebo/src/gazebo6/examples/stand_alone/animated_box/independent_listener.cc), [integrated_main.cc](https://bitbucket.org/osrf/gazebo/src/gazebo6/examples/stand_alone/animated_box/integrated_main.cc), [CMakeLists.txt](https://bitbucket.org/osrf/gazebo/src/gazebo6/examples/stand_alone/animated_box/CMakeLists.txt), and [animated_box.world](https://bitbucket.org/osrf/gazebo/src/gazebo6/examples/stand_alone/animated_box/animated_box.world) into the current directory.
25+
Copy [animated_box.cc](https://github.com/osrf/gazebo/src/gazebo6/examples/stand_alone/animated_box/animated_box.cc), [independent_listener.cc](https://github.com/osrf/gazebo/src/gazebo6/examples/stand_alone/animated_box/independent_listener.cc), [integrated_main.cc](https://github.com/osrf/gazebo/src/gazebo6/examples/stand_alone/animated_box/integrated_main.cc), [CMakeLists.txt](https://github.com/osrf/gazebo/src/gazebo6/examples/stand_alone/animated_box/CMakeLists.txt), and [animated_box.world](https://github.com/osrf/gazebo/src/gazebo6/examples/stand_alone/animated_box/animated_box.world) into the current directory.
2626

2727
On OS X, you can replace `wget` with `curl -OL`.
2828

2929
~~~
30-
wget http://bitbucket.org/osrf/gazebo/raw/gazebo6/examples/stand_alone/animated_box/animated_box.cc
31-
wget http://bitbucket.org/osrf/gazebo/raw/gazebo6/examples/stand_alone/animated_box/independent_listener.cc
32-
wget http://bitbucket.org/osrf/gazebo/raw/gazebo6/examples/stand_alone/animated_box/integrated_main.cc
33-
wget http://bitbucket.org/osrf/gazebo/raw/gazebo6/examples/stand_alone/animated_box/CMakeLists.txt
34-
wget http://bitbucket.org/osrf/gazebo/raw/gazebo6/examples/stand_alone/animated_box/animated_box.world
30+
wget http://github.com/osrf/gazebo/raw/gazebo6/examples/stand_alone/animated_box/animated_box.cc
31+
wget http://github.com/osrf/gazebo/raw/gazebo6/examples/stand_alone/animated_box/independent_listener.cc
32+
wget http://github.com/osrf/gazebo/raw/gazebo6/examples/stand_alone/animated_box/integrated_main.cc
33+
wget http://github.com/osrf/gazebo/raw/gazebo6/examples/stand_alone/animated_box/CMakeLists.txt
34+
wget http://github.com/osrf/gazebo/raw/gazebo6/examples/stand_alone/animated_box/animated_box.world
3535
~~~
3636

3737
Build the plugin

clone_simulation/tutorial.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ mkdir ~/clone_simulation
100100
cd ~/clone_simulation
101101
~~~
102102
103-
Download the files [`CMakeLists.txt`](http://bitbucket.org/osrf/gazebo/src/default/examples/stand_alone/clone_simulation/CMakeLists.txt) and [`cloner.cc`](http://bitbucket.org/osrf/gazebo/src/default/examples/stand_alone/clone_simulation/cloner.cc) into the previous folder.
103+
Download the files [`CMakeLists.txt`](http://github.com/osrf/gazebo/src/default/examples/stand_alone/clone_simulation/CMakeLists.txt) and [`cloner.cc`](http://github.com/osrf/gazebo/src/default/examples/stand_alone/clone_simulation/cloner.cc) into the previous folder.
104104
105105
~~~
106-
wget http://bitbucket.org/osrf/gazebo/raw/default/examples/stand_alone/clone_simulation/CMakeLists.txt
107-
wget http://bitbucket.org/osrf/gazebo/raw/default/examples/stand_alone/clone_simulation/cloner.cc
106+
wget http://github.com/osrf/gazebo/raw/default/examples/stand_alone/clone_simulation/CMakeLists.txt
107+
wget http://github.com/osrf/gazebo/raw/default/examples/stand_alone/clone_simulation/cloner.cc
108108
~~~
109109
110110
Compile the example:
@@ -167,23 +167,23 @@ spheres moving away.
167167
168168
Let's take a look at the source code for our example:
169169
170-
<include src='http://bitbucket.org/osrf/gazebo/raw/default/examples/stand_alone/clone_simulation/cloner.cc' />
170+
<include src='http://github.com/osrf/gazebo/raw/default/examples/stand_alone/clone_simulation/cloner.cc' />
171171
172172
## The code explained
173173
174-
<include from='/int main/' to='/RunServer\);/' src='http://bitbucket.org/osrf/gazebo/raw/default/examples/stand_alone/clone_simulation/cloner.cc' />
174+
<include from='/int main/' to='/RunServer\);/' src='http://github.com/osrf/gazebo/raw/default/examples/stand_alone/clone_simulation/cloner.cc' />
175175
176176
This fragment of the code spawns a new thread and executes a new server.
177177
178-
<include from='/ gazebo::transport::NodePtr/' to='/simulation\\n\"(.*)$\n getchar\(\);/' src='http://bitbucket.org/osrf/gazebo/raw/default/examples/stand_alone/clone_simulation/cloner.cc' />
178+
<include from='/ gazebo::transport::NodePtr/' to='/simulation\\n\"(.*)$\n getchar\(\);/' src='http://github.com/osrf/gazebo/raw/default/examples/stand_alone/clone_simulation/cloner.cc' />
179179
180180
The simulation cloning is performed via the transport system. First, we have to
181181
initialize a transport node that will allow us to use the transport. We need a
182182
topic publisher to send a new message with our cloning request. The topic is
183183
`/gazebo/server/control`. In addition, we need a subscriber on the topic `/gazebo/world/modify` for receiving the result of our
184184
clone request.
185185
186-
<include from='/ gazebo::msgs::ServerControl/' to='/servers."(.*)$\n getchar\(\);/' src='http://bitbucket.org/osrf/gazebo/raw/default/examples/stand_alone/clone_simulation/cloner.cc' />
186+
<include from='/ gazebo::msgs::ServerControl/' to='/servers."(.*)$\n getchar\(\);/' src='http://github.com/osrf/gazebo/raw/default/examples/stand_alone/clone_simulation/cloner.cc' />
187187
188188
This is the part of the code where we prepare our `ServerControl` message for
189189
our cloning request. The field `save_world_name` specifies the name of the world that
@@ -194,14 +194,14 @@ be the port that we will use to connect our future gzclient to display the new
194194
simulation. Finally, the message is sent by calling the `Publish()` method with
195195
our custom message.
196196
197-
<include from='/void OnWorldModify/' to='/ }\n}/' src='http://bitbucket.org/osrf/gazebo/raw/default/examples/stand_alone/clone_simulation/cloner.cc' />
197+
<include from='/void OnWorldModify/' to='/ }\n}/' src='http://github.com/osrf/gazebo/raw/default/examples/stand_alone/clone_simulation/cloner.cc' />
198198
199199
When the server processes our clone request, it sends us a response contained
200200
in a `WorldModify` message. This is the callback that we registered during the
201201
subscription and it will be triggered when the response from the server is
202202
received. The field `cloned` will be true when a new server has been cloned.
203203
Also, the field `cloned_uri` will show us the *URI* of the new server.
204204
205-
<include from='/^(.*)Make sure/' to='/gazebo::shutdown\(\);/' src='http://bitbucket.org/osrf/gazebo/raw/default/examples/stand_alone/clone_simulation/cloner.cc' />
205+
<include from='/^(.*)Make sure/' to='/gazebo::shutdown\(\);/' src='http://github.com/osrf/gazebo/raw/default/examples/stand_alone/clone_simulation/cloner.cc' />
206206
207207
These commands will terminate all the servers running in our system.

color_model/tutorial_7.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Those tags are:
7979
* [&lt;diffuse&gt;](http://sdformat.org/spec?ver=1.6&elem=material#material_diffuse)
8080
* [&lt;specular&gt;](http://sdformat.org/spec?ver=1.6&elem=material#material_specular)
8181
* **Note:** Specular intensity via SDF is currently not functioning in gazebo.
82-
See [issue #2120](https://bitbucket.org/osrf/gazebo/issues/2120/specular-material-not-working).
82+
See [issue #2120](https://github.com/osrf/gazebo/issues/2120).
8383
* [&lt;emissive&gt;](http://sdformat.org/spec?ver=1.6&elem=material#material_emissive)
8484

8585
#### Ogre Material Script
@@ -104,7 +104,7 @@ In gazebo 8+ it will be displayed with gray diffuse and ambient components, but
104104
Wavefront obj color values are taken from the object's material: `Ka`, `Kd`, `Ks`, and `Ns`.
105105
See [this Wikipedia article](https://en.wikipedia.org/wiki/Wavefront_.obj_file) for more info about OBJ files.
106106

107-
**Note:** OBJ materials may not [display correctly in versions earlier than gazebo 8](https://bitbucket.org/osrf/gazebo/issues/2455/wavefront-obj-wrong-normals-and-material).
107+
**Note:** OBJ materials may not [display correctly in versions earlier than gazebo 8](https://github.com/osrf/gazebo/issues/2455/).
108108

109109
## About Textures
110110
Textures map an image onto a shape.

components/tutorial.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The world description file contains all the elements in a simulation, including
77
The Gazebo server (`gzserver`) reads this file to generate and populate a world.
88

99
A number of example worlds are shipped with Gazebo. These worlds are installed in `<install_path>/share/gazebo-<version>/worlds`;
10-
you can also see them in the [source code](https://bitbucket.org/osrf/gazebo/src/default/worlds/).
10+
you can also see them in the [source code](https://github.com/osrf/gazebo/src/default/worlds/).
1111

1212
# Model Files
1313

@@ -54,7 +54,7 @@ If you want to modify Gazebo's behavior, e.g., by extending the path it searches
5454
Parts of Gazebo transitioned to use the [Ignition Transport](https://ignitionrobotics.org/libs/transport)
5555
library for inter-process communication instead of the built-in
5656
Gazebo Transport library. Some features such as
57-
[markers](https://bitbucket.org/osrf/gazebo/src/gazebo8/examples/stand_alone/marker/)
57+
[markers](https://github.com/osrf/gazebo/src/gazebo8/examples/stand_alone/marker/)
5858
and the plotting utility are using Ignition Transport and may be affected by
5959
the following environment variables:
6060

contain_plugin/tutorial_7.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,17 @@ When a ball rolls under a lamp post, the light will turn on.
6666

6767
[[file:example_world.png|800px]]
6868

69-
Download the [example world](https://bitbucket.org/osrf/gazebo/raw/gazebo7/examples/plugins/trigger_light/contain_example.world), [plugin source code](https://bitbucket.org/osrf/gazebo/raw/gazebo7/examples/plugins/trigger_light/TurnOnLightPlugin.cpp), and [CMake file](https://bitbucket.org/osrf/gazebo/raw/gazebo7/examples/plugins/trigger_light/CMakeLists.txt).
69+
Download the [example world](https://github.com/osrf/gazebo/raw/gazebo7/examples/plugins/trigger_light/contain_example.world), [plugin source code](https://github.com/osrf/gazebo/raw/gazebo7/examples/plugins/trigger_light/TurnOnLightPlugin.cpp), and [CMake file](https://github.com/osrf/gazebo/raw/gazebo7/examples/plugins/trigger_light/CMakeLists.txt).
7070
Build and run the plugin using [this tutorial](/tutorials?tut=plugins_hello_world&cat=write_plugin) as an example.
7171
Make sure to run `source <install_path>/share/gazebo/setup.sh` before extending `GAZEBO_PLUGIN_PATH`.
7272
`<install_path>` is `/usr` if you installed using `apt`.
7373

7474
A ContainPlugin instance is configured to watch when a sphere enters a box below the lamp post.
7575
When the sphere rolls into or out of the box ContainPlugin will publish a message on the `contain` topic.
76-
<include lang='xml' from="/<plugin name='ContainPlugin'/" to="/ <\/pluign>/" src='https://bitbucket.org/osrf/gazebo/raw/gazebo7/examples/plugins/trigger_light/contain_example.world'/>
76+
<include lang='xml' from="/<plugin name='ContainPlugin'/" to="/ <\/pluign>/" src='https://github.com/osrf/gazebo/raw/gazebo7/examples/plugins/trigger_light/contain_example.world'/>
7777

7878
This custom plugin receives messages from ContainPlugin, and turns the light on or off.
79-
<include lang='c++' from="/#include/" to="/} // namespace gazebo/" src='https://bitbucket.org/osrf/gazebo/raw/gazebo7/examples/plugins/trigger_light/TurnOnLightPlugin.cpp'/>
79+
<include lang='c++' from="/#include/" to="/} // namespace gazebo/" src='https://github.com/osrf/gazebo/raw/gazebo7/examples/plugins/trigger_light/TurnOnLightPlugin.cpp'/>
8080

8181
After building and running the world you should see the ball trigger the light to turn on.
8282
Hit `CTRL + R` to restart the world if you missed it.

0 commit comments

Comments
 (0)