ed_sensor_integration
kinect_plugin.h
Go to the documentation of this file.
1 #ifndef ED_SENSOR_INTEGRATION_KINECT_PLUGIN_H_
2 #define ED_SENSOR_INTEGRATION_KINECT_PLUGIN_H_
3 
4 #include <ed/plugin.h>
5 #include <ed/types.h>
6 
7 #include "ed/kinect/updater.h"
8 
10 
11 // Services
12 #include <ros/service_server.h>
13 #include <ed_sensor_integration_msgs/GetImage.h>
14 #include <ed_sensor_integration_msgs/Update.h>
15 #include <ed_sensor_integration_msgs/RayTrace.h>
16 
17 // Visualization
18 #include <ros/publisher.h>
19 #include <visualization_msgs/Marker.h>
20 
21 // ----------------------------------------------------------------------------------------------------
22 
23 class KinectPlugin : public ed::Plugin
24 {
25 
26 public:
27 
28  KinectPlugin();
29 
30  ~KinectPlugin();
31 
32  void initialize(ed::InitData& init);
33 
34  void process(const ed::PluginInput& data, ed::UpdateRequest& req);
35 
36 private:
37 
38  // Image retrieval
39 
41 
42 // rgbd::ImageConstPtr last_image_;
43 
44 // geo::Pose3D last_sensor_pose_;
45 
46 
48 
49 
50  // Communication
51 
53 
55 
56 
57  // Services
58 
59  ros::CallbackQueue cb_queue_;
60 
61  ros::ServiceServer srv_get_image_;
62 
63  bool srvGetImage(ed_sensor_integration_msgs::GetImage::Request& req, ed_sensor_integration_msgs::GetImage::Response& res);
64 
65 
66  ros::ServiceServer srv_update_;
67 
68  bool srvUpdate(ed_sensor_integration_msgs::Update::Request& req, ed_sensor_integration_msgs::Update::Response& res);
69 
70  ros::ServiceServer srv_ray_trace_;
71 
72  bool srvRayTrace(ed_sensor_integration_msgs::RayTrace::Request& req, ed_sensor_integration_msgs::RayTrace::Response& res);
73 
75 
76 
77 
78 
79 };
80 
81 #endif
KinectPlugin::update_req_
ed::UpdateRequest * update_req_
Definition: kinect_plugin.h:54
ed::Plugin
KinectPlugin::srv_ray_trace_
ros::ServiceServer srv_ray_trace_
Definition: kinect_plugin.h:70
ed::UpdateRequest
KinectPlugin::srvUpdate
bool srvUpdate(ed_sensor_integration_msgs::Update::Request &req, ed_sensor_integration_msgs::Update::Response &res)
Definition: kinect_plugin.cpp:154
ed::InitData
KinectPlugin::updater_
Updater updater_
Definition: kinect_plugin.h:47
rgbd::ImageBuffer
Updater
Definition: kinect/updater.h:46
KinectPlugin::ray_trace_visualization_publisher_
ros::Publisher ray_trace_visualization_publisher_
Definition: kinect_plugin.h:74
KinectPlugin::world_
const ed::WorldModel * world_
Definition: kinect_plugin.h:52
ed::PluginInput
KinectPlugin
Definition: kinect_plugin.h:23
req
string req
ed::WorldModel
KinectPlugin::srvRayTrace
bool srvRayTrace(ed_sensor_integration_msgs::RayTrace::Request &req, ed_sensor_integration_msgs::RayTrace::Response &res)
Definition: kinect_plugin.cpp:211
KinectPlugin::srv_get_image_
ros::ServiceServer srv_get_image_
Definition: kinect_plugin.h:61
KinectPlugin::cb_queue_
ros::CallbackQueue cb_queue_
Definition: kinect_plugin.h:59
KinectPlugin::~KinectPlugin
~KinectPlugin()
Definition: kinect_plugin.cpp:40
KinectPlugin::srv_update_
ros::ServiceServer srv_update_
Definition: kinect_plugin.h:66
plugin.h
updater.h
KinectPlugin::image_buffer_
rgbd::ImageBuffer image_buffer_
Definition: kinect_plugin.h:40
types.h
image_buffer.h
ed::Plugin::initialize
virtual void initialize()
KinectPlugin::KinectPlugin
KinectPlugin()
Definition: kinect_plugin.cpp:33
KinectPlugin::process
void process(const ed::PluginInput &data, ed::UpdateRequest &req)
Definition: kinect_plugin.cpp:74
KinectPlugin::srvGetImage
bool srvGetImage(ed_sensor_integration_msgs::GetImage::Request &req, ed_sensor_integration_msgs::GetImage::Response &res)
Definition: kinect_plugin.cpp:100