Flatland
Public Member Functions | List of all members
flatland_server::InteractiveMarkerManager Class Reference

Public Member Functions

 InteractiveMarkerManager (std::vector< Model * > *model_list_ptr, PluginManager *plugin_manager_ptr)
 Constructor for the interactive marker manager class. More...
 
 ~InteractiveMarkerManager ()
 Destructor for the interactive marker manager class.
 
void createInteractiveMarker (const std::string &model_name, const Pose &pose, const visualization_msgs::MarkerArray &body_markers)
 Add a new interactive marker when spawning a model. More...
 
void deleteInteractiveMarker (const std::string &model_name)
 Remove interactive marker corresponding to a given model when deleting it from the simulation. More...
 
void update ()
 Update the interactive marker poses after running physics update to synchronize the markers with the models.
 
bool isManipulating ()
 

Constructor & Destructor Documentation

flatland_server::InteractiveMarkerManager::InteractiveMarkerManager ( std::vector< Model * > *  model_list_ptr,
PluginManager plugin_manager_ptr 
)

Constructor for the interactive marker manager class.

Parameters
[in]model_list_ptrPointer to the list of models in the World class
[in]plugin_manager_ptrPointer to the plugin manager in the World class

Member Function Documentation

void flatland_server::InteractiveMarkerManager::createInteractiveMarker ( const std::string &  model_name,
const Pose pose,
const visualization_msgs::MarkerArray &  body_markers 
)

Add a new interactive marker when spawning a model.

Parameters
[in]model_nameName of the model being spawned
[in]poseInitial pose of the spawning model
[in]body_markersMarker array corresponding to new model bodies
void flatland_server::InteractiveMarkerManager::deleteInteractiveMarker ( const std::string &  model_name)

Remove interactive marker corresponding to a given model when deleting it from the simulation.

Parameters
[in]model_nameName of the model being deleted

The documentation for this class was generated from the following files: