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

#include <service_manager.h>

Collaboration diagram for flatland_server::ServiceManager:
Collaboration graph
[legend]

Public Member Functions

 ServiceManager (SimulationManager *sim_man, World *world)
 Service manager constructor. More...
 
bool SpawnModel (flatland_msgs::SpawnModel::Request &request, flatland_msgs::SpawnModel::Response &response)
 Callback for the spawn model service. More...
 
bool DeleteModel (flatland_msgs::DeleteModel::Request &request, flatland_msgs::DeleteModel::Response &response)
 Callback for the delete model service. More...
 
bool MoveModel (flatland_msgs::MoveModel::Request &request, flatland_msgs::MoveModel::Response &response)
 Callback for the move model service. More...
 
bool Pause (std_srvs::Empty::Request &request, std_srvs::Empty::Response &response)
 Callback for the pause service.
 
bool Resume (std_srvs::Empty::Request &request, std_srvs::Empty::Response &response)
 Callback for the resume service.
 
bool TogglePause (std_srvs::Empty::Request &request, std_srvs::Empty::Response &response)
 Callback for the pause toggle service.
 

Public Attributes

Worldworld_
 aaa handle to the simulation world
 
SimulationManagersim_man_
 a handle to the simulation manager
 
ros::ServiceServer spawn_model_service_
 service for spawning models
 
ros::ServiceServer delete_model_service_
 service for deleting models
 
ros::ServiceServer move_model_service_
 service for moving models
 
ros::ServiceServer pause_service_
 service for pausing the simulation
 
ros::ServiceServer resume_service_
 service for resuming the simulation
 
ros::ServiceServer toggle_pause_service_
 

Detailed Description

This class contains a collection of ROS services that the user may use to work with the simulation

Constructor & Destructor Documentation

flatland_server::ServiceManager::ServiceManager ( SimulationManager sim_man,
World world 
)

Service manager constructor.

Parameters
[in]sim_manA handle to the simulation manager
[in]worldA handle to the simulation world

Member Function Documentation

bool flatland_server::ServiceManager::DeleteModel ( flatland_msgs::DeleteModel::Request &  request,
flatland_msgs::DeleteModel::Response &  response 
)

Callback for the delete model service.

Parameters
[in]requestContains the request data for the service
bool flatland_server::ServiceManager::MoveModel ( flatland_msgs::MoveModel::Request &  request,
flatland_msgs::MoveModel::Response &  response 
)

Callback for the move model service.

Parameters
[in]requestContains the request data for the service
bool flatland_server::ServiceManager::SpawnModel ( flatland_msgs::SpawnModel::Request &  request,
flatland_msgs::SpawnModel::Response &  response 
)

Callback for the spawn model service.

Parameters
[in]requestContains the request data for the service

Member Data Documentation

ros::ServiceServer flatland_server::ServiceManager::toggle_pause_service_

service for toggling the pause state of the simulation


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