Difference between revisions of "Build a World"
From Lofaro Lab Wiki
(Created page with "==Building a world== '''Setup''' 1. Create a working directory <nowiki>$ mkdir ~/build_world_tutorial; cd ~/build_world_tutorial</nowiki> 2. Start gazebo (should just d...") |
|||
Line 2: | Line 2: | ||
'''Setup''' | '''Setup''' | ||
+ | |||
1. Create a working directory | 1. Create a working directory | ||
<nowiki>$ mkdir ~/build_world_tutorial; cd ~/build_world_tutorial</nowiki> | <nowiki>$ mkdir ~/build_world_tutorial; cd ~/build_world_tutorial</nowiki> | ||
Line 8: | Line 9: | ||
<nowiki>$ gazebo</nowiki> | <nowiki>$ gazebo</nowiki> | ||
− | + | '''Add Object''' | |
+ | |||
You can either add simple shapes which are located above the world screen or models which are located in the 'inset' tab next to 'world' tab. | You can either add simple shapes which are located above the world screen or models which are located in the 'inset' tab next to 'world' tab. | ||
− | '' | + | '''Saving and Loading World''' |
+ | |||
A world can be saved under the file menu. File --> Save As --> insertWorldNameHere.sdf | A world can be saved under the file menu. File --> Save As --> insertWorldNameHere.sdf | ||
The world can now be loaded on terminal: | The world can now be loaded on terminal: | ||
<nowiki>$ gazebo insertWorldNameHere.sdf</nowiki> | <nowiki>$ gazebo insertWorldNameHere.sdf</nowiki> |
Revision as of 22:15, 3 November 2014
Building a world
Setup
1. Create a working directory
$ mkdir ~/build_world_tutorial; cd ~/build_world_tutorial
2. Start gazebo (should just display ground plane)
$ gazebo
Add Object
You can either add simple shapes which are located above the world screen or models which are located in the 'inset' tab next to 'world' tab.
Saving and Loading World
A world can be saved under the file menu. File --> Save As --> insertWorldNameHere.sdf
The world can now be loaded on terminal:
$ gazebo insertWorldNameHere.sdf