pose_prediction.h
Go to the documentation of this file.
1 
18 #ifndef RECOGNIZER_PREDICTION_ISM_POSE_PREDICTION_NODE_H
19 #define RECOGNIZER_PREDICTION_ISM_POSE_PREDICTION_NODE_H
20 
21 //ROS Includes
22 #include <ros/ros.h>
23 #include <dynamic_reconfigure/server.h>
24 #include <asr_recognizer_prediction_ism/pose_predictionConfig.h>
25 
26 /* ----------------- Package messages/services ------------------ */
27 #include "asr_recognizer_prediction_ism/GetPointCloud.h"
28 
29 /* ----------------- Foreign messages/services ------------------ */
30 #include <std_srvs/Empty.h>
31 #include <asr_msgs/AsrAttributedPointCloud.h>
32 #include <asr_msgs/AsrObject.h>
33 #include <asr_ism_visualizations/PosePredictionVisualizerRVIZ.hpp>
34 #include <asr_ism_visualizations/ism_result_visualizer_rviz.hpp>
35 #include <asr_world_model/GetFoundObjectList.h>
36 #include <pose_prediction_ism/pose_predictor.h>
37 
38 /* ----------------- Local includes ------------------ */
40 
42 {
44 {
45 
46 public:
47 
48  //TODO: Comment
49  PosePrediction(std::vector<ISM::RecognitionResultPtr>& results_already_in_shared, SharedRecognitionResultsManagerPtr shared_recognition_results_ptr);
50 
52 
61  bool processGetPointCloudServiceCall(asr_recognizer_prediction_ism::GetPointCloud::Request &req,
62  asr_recognizer_prediction_ism::GetPointCloud::Response &res);
63 private:
64 
65  /* ----------------- Attributes for pose prediction ------------------ */
66  pose_prediction_ism::PosePredictorPtr pose_predictor_ptr_;
70  std::string database_filename_;
71 
72  //Buffer shared with scene recognition that is filled every time we go back to direct search.
73  std::vector<ISM::RecognitionResultPtr>& results_already_shared_;
74  //Temporary buffer for scene recognition results until we fill mResultsAlreadyInSharedMem.
75  std::vector<ISM::RecognitionResultPtr> results_buffer_;
76 
77  /* ----------------- Attributes for ROS ------------------ */
82 
84 
87 
88  dynamic_reconfigure::Server<asr_recognizer_prediction_ism::pose_predictionConfig>* reconfigure_server_;
89  void dynamicReconfCallback(asr_recognizer_prediction_ism::pose_predictionConfig &config, uint32_t level);
90 
91  /* ----------------- Visualization attributes------------------ */
93  VIZ::PosePredictionVisualizerPtr pose_prediction_visualizer_ptr_;
94  VIZ::ISMResultVisualizerRVIZPtr res_visualizer_;
95 
96  void visualize(ISM::RecognitionResult recognition_result, char *result_specifier, int *i, unsigned int sampled_results_size, asr_msgs::AsrAttributedPointCloud *union_attributed_point_cloud, std::set<std::pair<std::string, std::string>> *predicted_objects);
97 
98  /* ----------------- Debug functions ------------------ */
99  void checkPointCloud(asr_msgs::AsrAttributedPointCloud attributed_point_cloud);
100 
101 };
102 
104 
105 }
106 #endif
VIZ::PosePredictionVisualizerPtr pose_prediction_visualizer_ptr_
PosePrediction(std::vector< ISM::RecognitionResultPtr > &results_already_in_shared, SharedRecognitionResultsManagerPtr shared_recognition_results_ptr)
dynamic_reconfigure::Server< asr_recognizer_prediction_ism::pose_predictionConfig > * reconfigure_server_
std::vector< ISM::RecognitionResultPtr > results_buffer_
std::vector< ISM::RecognitionResultPtr > & results_already_shared_
void checkPointCloud(asr_msgs::AsrAttributedPointCloud attributed_point_cloud)
pose_prediction_ism::PosePredictorPtr pose_predictor_ptr_
void dynamicReconfCallback(asr_recognizer_prediction_ism::pose_predictionConfig &config, uint32_t level)
bool processGetPointCloudServiceCall(asr_recognizer_prediction_ism::GetPointCloud::Request &req, asr_recognizer_prediction_ism::GetPointCloud::Response &res)
RecognizerPredictionISM::processGetPointCloudServiceCall Callback function for a GetPointCloud Reques...
VIZ::ISMResultVisualizerRVIZPtr res_visualizer_
void visualize(ISM::RecognitionResult recognition_result, char *result_specifier, int *i, unsigned int sampled_results_size, asr_msgs::AsrAttributedPointCloud *union_attributed_point_cloud, std::set< std::pair< std::string, std::string >> *predicted_objects)
boost::shared_ptr< PosePrediction > PosePredictionPtr


asr_recognizer_prediction_ism
Author(s): Aumann Florian, Heller Florian, Hutmacher Robin, Meißner Pascal, Stöckle Patrick, Stroh Daniel
autogenerated on Wed Jan 8 2020 03:18:32