From 5f080ef8ae1109cc6a5be8bba4620f6ed08d03ba Mon Sep 17 00:00:00 2001 From: Gabriele Date: Thu, 5 Oct 2017 16:09:39 +0200 Subject: [PATCH] fixed seesaw documentation and added readme --- worlds/icub_seesaw_world/README.md | 15 +++++++++++++++ worlds/icub_seesaw_world/icub_seesaw_world | 5 +++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 worlds/icub_seesaw_world/README.md diff --git a/worlds/icub_seesaw_world/README.md b/worlds/icub_seesaw_world/README.md new file mode 100644 index 0000000..0451739 --- /dev/null +++ b/worlds/icub_seesaw_world/README.md @@ -0,0 +1,15 @@ +## To load iCub seesaw world in Gazebo + +Normally, for loading a `world`, Gazebo needs to be launched in the folder where the `world` is. You can avoid this by appending these lines to your `.bashrc`: + +``` +source /usr/share/gazebo/setup.sh +export GAZEBO_RESOURCE_PATH=$GAZEBO_RESOURCE_PATH:/PATH/WHERE/YOUR/WORLD/IS + +``` + +Furthermore, if you are working with Simulink controllers, it is necessary to sincronize Gazebo with Simulink by running Gazebo with the option `-slibgazebo_yarp_clock.so`. + +Final command to run in the terminal is something like this: `gazebo -slibgazebo_yarp_clock.so nameOfYourWorld`. For seesaw demo, it is also required to start Gazebo in "pause" mode, and therefore final command will be: `gazebo -slibgazebo_yarp_clock.so icub_seesaw_world -u`. + + diff --git a/worlds/icub_seesaw_world/icub_seesaw_world b/worlds/icub_seesaw_world/icub_seesaw_world index 07f2284..1895332 100644 --- a/worlds/icub_seesaw_world/icub_seesaw_world +++ b/worlds/icub_seesaw_world/icub_seesaw_world @@ -12,14 +12,15 @@ model://ground_plane - + model://seesaw - + model://icub_on_seesaw +