ppovb5fc7/gazebo/examples/plugins/model_move
XunMeng2017 fc18a77bd1 submit origin gazebo to gazebo_opt 2019-03-25 11:01:43 +08:00
..
CMakeLists.txt submit origin gazebo to gazebo_opt 2019-03-25 11:01:43 +08:00
README.md submit origin gazebo to gazebo_opt 2019-03-25 11:01:43 +08:00
model_move.cc submit origin gazebo to gazebo_opt 2019-03-25 11:01:43 +08:00
model_move.hh submit origin gazebo to gazebo_opt 2019-03-25 11:01:43 +08:00
model_move.world submit origin gazebo to gazebo_opt 2019-03-25 11:01:43 +08:00
model_move_with_movement.world submit origin gazebo to gazebo_opt 2019-03-25 11:01:43 +08:00
path_publisher.cc submit origin gazebo to gazebo_opt 2019-03-25 11:01:43 +08:00

README.md

Model Movement Plugin

This plugin example demonstates moving a model to a specified set of goal points.

The movement is not kinematic aware as it uses Pose Animation described in this tutorial.

Build Instructions

From this directory

$ mkdir build
$ cd build
$ cmake ../
$ make

Run Instructions

There are several ways to interact with the animation. Below you can find how to run the standalone example, which defines the animation programatically. It is also possible to define the animation parameters in the SDF file.

Run the standalone publisher

  1. Go to the build directory and run gazebo with the example world

    $ cd build
    
    $ gazebo ../model_move.world
    
  2. Publish the path publisher

    open a new terminal
    
    $ cd build
    
    $ ./path_publisher
    

Use predefined animation from the SDF file

Go to the build directory and run gazebo with the example world

$ cd build
$ gazebo ../model_move_with_movement.world

To change the input parameters, you can modify the world file sdf:

<goals> container of the list of poses to be reached by the model
<pose> 6 floats (position, orientation) to be treated as goals

Example (in sdf file):

<plugin name="model_move" filename="libmodel_move.so">
  <goals>
    <pose>5 5 0 0 0 0</pose>
    <pose>5 -5 0 0 0 0</pose>
    <pose>0 0 0 0 0 0</pose>
  </goals>
</plugin>