move3d_ros_lib  0.1.0
move3d/ros API interface
 All Classes Namespaces Functions Variables Typedefs Pages
savescenariosrv.h
1 #ifndef SAVESCENARIOSRV_H
2 #define SAVESCENARIOSRV_H
3 #include <string>
4 #include <ros/ros.h>
5 #include <ros/node_handle.h>
6 
7 #include <move3d_ros_lib/SaveScenario.h>
8 
9 namespace move3d
10 {
11 class SceneManager;
12 
20 {
21 public:
27  SaveScenarioSrv(SceneManager *sceneMgr,ros::NodeHandle *node);
28  ~SaveScenarioSrv();
29 
35  bool advertise(const std::string &name);
36 
37 private:
39  bool save(move3d_ros_lib::SaveScenarioRequest &req,move3d_ros_lib::SaveScenarioResponse &res);
40 
41  SceneManager *_sceneMgr;
42  ros::NodeHandle *_node;
43  ros::ServiceServer *_srv;
44 };
45 }
46 
47 #endif // SAVESCENARIOSRV_H
The SaveScenarioSrv class is an helper to easily create a service that saves a move3d scenario...
Definition: savescenariosrv.h:19
The SceneManager class provide interface between ROS and the move3d scene and project. Use it to start libmove3d and place the robots and objects in the environment.
Definition: scenemanager.h:25
bool advertise(const std::string &name)
advertise the service and start responding to requests
Definition: savescenariosrv.cpp:20
SaveScenarioSrv(SceneManager *sceneMgr, ros::NodeHandle *node)
SaveScenarioSrv constructor.
Definition: savescenariosrv.cpp:7