pxmlw6n2f/Gazebo_Distributed_TCP/examples/plugins/model_move
zhangshuai 093964e078 Rename the Gazebo_Distributed to Gazebo_Distributed_TCP, ready to develop MPI Gazebo 2019-04-18 09:44:55 +08:00
..
CMakeLists.txt Rename the Gazebo_Distributed to Gazebo_Distributed_TCP, ready to develop MPI Gazebo 2019-04-18 09:44:55 +08:00
README.md Rename the Gazebo_Distributed to Gazebo_Distributed_TCP, ready to develop MPI Gazebo 2019-04-18 09:44:55 +08:00
model_move.cc Rename the Gazebo_Distributed to Gazebo_Distributed_TCP, ready to develop MPI Gazebo 2019-04-18 09:44:55 +08:00
model_move.hh Rename the Gazebo_Distributed to Gazebo_Distributed_TCP, ready to develop MPI Gazebo 2019-04-18 09:44:55 +08:00
model_move.world Rename the Gazebo_Distributed to Gazebo_Distributed_TCP, ready to develop MPI Gazebo 2019-04-18 09:44:55 +08:00
model_move_with_movement.world Rename the Gazebo_Distributed to Gazebo_Distributed_TCP, ready to develop MPI Gazebo 2019-04-18 09:44:55 +08:00
path_publisher.cc Rename the Gazebo_Distributed to Gazebo_Distributed_TCP, ready to develop MPI Gazebo 2019-04-18 09:44:55 +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>