|
Flatland
|
#include <service_manager.h>

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 | |
| World * | world_ |
| aaa handle to the simulation world | |
| SimulationManager * | sim_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_ |
This class contains a collection of ROS services that the user may use to work with the simulation
| flatland_server::ServiceManager::ServiceManager | ( | SimulationManager * | sim_man, |
| World * | world | ||
| ) |
Service manager constructor.
| [in] | sim_man | A handle to the simulation manager |
| [in] | world | A handle to the simulation world |
| bool flatland_server::ServiceManager::DeleteModel | ( | flatland_msgs::DeleteModel::Request & | request, |
| flatland_msgs::DeleteModel::Response & | response | ||
| ) |
Callback for the delete model service.
| [in] | request | Contains 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.
| [in] | request | Contains 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.
| [in] | request | Contains the request data for the service |
| ros::ServiceServer flatland_server::ServiceManager::toggle_pause_service_ |
service for toggling the pause state of the simulation
1.8.11