18 #ifndef RECOGNIZER_PREDICTION_ISM_POSE_PREDICTION_NODE_H 19 #define RECOGNIZER_PREDICTION_ISM_POSE_PREDICTION_NODE_H 23 #include <dynamic_reconfigure/server.h> 24 #include <asr_recognizer_prediction_ism/pose_predictionConfig.h> 27 #include "asr_recognizer_prediction_ism/GetPointCloud.h" 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> 62 asr_recognizer_prediction_ism::GetPointCloud::Response &res);
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);
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);
99 void checkPointCloud(asr_msgs::AsrAttributedPointCloud attributed_point_cloud);
VIZ::PosePredictionVisualizerPtr pose_prediction_visualizer_ptr_
ros::Publisher scene_markers_publisher_
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_
ros::Publisher pose_prediction_markers_publisher_
std::vector< ISM::RecognitionResultPtr > results_buffer_
bool is_visualization_active_
std::vector< ISM::RecognitionResultPtr > & results_already_shared_
double prediction_generation_factor_
std::string database_filename_
void checkPointCloud(asr_msgs::AsrAttributedPointCloud attributed_point_cloud)
ros::NodeHandle node_handle_
ros::ServiceServer toggle_pose_predictor_server_
pose_prediction_ism::PosePredictorPtr pose_predictor_ptr_
void dynamicReconfCallback(asr_recognizer_prediction_ism::pose_predictionConfig &config, uint32_t level)
ros::ServiceServer toggle_visualization_server_
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)
double percentage_of_records_for_prediction_
ros::ServiceServer point_cloud_server_
ros::ServiceClient found_object_client_
ResamplerPtr resampler_ptr_
boost::shared_ptr< PosePrediction > PosePredictionPtr