Skip to content

Commit e8b21e6

Browse files
committed
Merged in camera_save_update (pull request #468)
Minor updates to Create a video with a Camera tutorial Approved-by: Jose Luis Rivero <[email protected]> Approved-by: Carlos Agüero <[email protected]> Approved-by: Louise Poubel <[email protected]>
2 parents b7b3e73 + 3f04ac0 commit e8b21e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

camera_save/tutorial.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ Gazebo can automatically save camera images to disk.
66
To do so, a `<save>` tag must be added to a camera sensor.
77

88
## Create a world with a camera
9-
Download and save [this world.](http://bitbucket.org/osrf/gazebo_tutorials/raw/default/camera_save/files/camera_tutorial.world)
9+
Download and save [this world.](http://bitbucket.org/osrf/gazebo_tutorials/raw/default/camera_save/files/camera_tutorial.world) as `camera_tutorial.world`
1010

1111
<include from='/#include/' src='http://bitbucket.org/osrf/gazebo_tutorials/raw/default/camera_save/files/camera_tutorial.world' />
1212

1313

1414
The important parts are here.
1515

16-
```
16+
%%%
1717
<sensor name="my_camera">
1818
<camera>
1919
<image>
@@ -28,7 +28,7 @@ The important parts are here.
2828
<update_rate>30</update_rate>
2929
</camera>
3030
</sensor>
31-
```
31+
%%%
3232

3333
The `<save>` tag has an attribute `enabled` that must be set to `true` for images to be saved.
3434
The child tag `<path>` is a directory in which the camera images will be saved.
@@ -59,7 +59,7 @@ This comand creates a video called `my_camera.mp4` at 30 frames per second.
5959
ffmpeg -r 30 -pattern_type glob -i '/tmp/camera_save_tutorial/default_camera_link_my_camera*.jpg' -c:v libx264 my_camera.mp4
6060
```
6161

62-
If you have Ubuntu Trusty, you might have `avconv` instead of `ffmpeg`
62+
If you have Ubuntu Trusty or a newer version, you might have `avconv` instead of `ffmpeg`
6363
([here is some of the backstory](https://en.wikipedia.org/wiki/Libav#Fork_from_FFmpeg)).
6464
The following command can be used with `avconv`:
6565

0 commit comments

Comments
 (0)