ppovb5fc7/gazebo/examples/plugins/model_move
XunMeng2017 985e1146c6 首次提交 2019-03-04 17:11:56 +08:00
..
CMakeLists.txt 首次提交 2019-03-04 17:11:56 +08:00
README.md 首次提交 2019-03-04 17:11:56 +08:00
model_move.cc 首次提交 2019-03-04 17:11:56 +08:00
model_move.hh 首次提交 2019-03-04 17:11:56 +08:00
model_move.world 首次提交 2019-03-04 17:11:56 +08:00
model_move_with_movement.world 首次提交 2019-03-04 17:11:56 +08:00
path_publisher.cc 首次提交 2019-03-04 17:11:56 +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>