ed
builder_plugin.h
Go to the documentation of this file.
1 #ifndef ED_BUILDER_PLUGIN_H_
2 #define ED_BUILDER_PLUGIN_H_
3 
4 #include <ed/plugin.h>
5 
6 #include <ed/types.h>
7 
8 // Communication
9 #include <ros/callback_queue.h>
10 #include <ros/service_server.h>
11 #include <ros/publisher.h>
12 
13 // Configuration
15 
16 // Services
17 #include <ed_msgs/SetEntity.h>
18 
19 class BuilderPlugin : public ed::Plugin
20 {
21 
22 public:
23 
24  BuilderPlugin();
25 
26  virtual ~BuilderPlugin();
27 
29 
30  void initialize();
31 
32  void process(const ed::WorldModel& world, ed::UpdateRequest& req);
33 
34 private:
35 
37 
39 
40  // Communication
41 
42  ros::CallbackQueue cb_queue_;
43 
44  ros::ServiceServer srv_set_entity_;
45 
46 
47  bool srvSetEntity(ed_msgs::SetEntity::Request& req, ed_msgs::SetEntity::Response& res);
48 
49 };
50 
51 #endif
ed::Plugin
Definition: plugin.h:28
ed::WorldModel
Definition: world_model.h:21
ed::UpdateRequest
Definition: update_request.h:24
BuilderPlugin::configure
void configure(tue::Configuration config)
Definition: builder_plugin.cpp:27
BuilderPlugin::world_model_
const ed::WorldModel * world_model_
Definition: builder_plugin.h:36
types.h
BuilderPlugin::cb_queue_
ros::CallbackQueue cb_queue_
Definition: builder_plugin.h:42
plugin.h
BuilderPlugin::srv_set_entity_
ros::ServiceServer srv_set_entity_
Definition: builder_plugin.h:44
BuilderPlugin::srvSetEntity
bool srvSetEntity(ed_msgs::SetEntity::Request &req, ed_msgs::SetEntity::Response &res)
Definition: builder_plugin.cpp:54
tue::config::ReaderWriter
BuilderPlugin
Definition: builder_plugin.h:19
BuilderPlugin::BuilderPlugin
BuilderPlugin()
Definition: builder_plugin.cpp:15
configuration.h
BuilderPlugin::~BuilderPlugin
virtual ~BuilderPlugin()
Definition: builder_plugin.cpp:21
BuilderPlugin::process
void process(const ed::WorldModel &world, ed::UpdateRequest &req)
Definition: builder_plugin.cpp:45
BuilderPlugin::initialize
void initialize()
Definition: builder_plugin.cpp:34
BuilderPlugin::update_req_
ed::UpdateRequest * update_req_
Definition: builder_plugin.h:38
config
tue::config::ReaderWriter config