PosePredictionVisualizerRVIZ.hpp
Go to the documentation of this file.
1 
17 #pragma once
18 //Ilcas includes
20 #include <ISM/common_type/Pose.hpp>
21 #include <asr_msgs/AsrAttributedPointCloud.h>
22 
23 //ROS includes
24 #include <dynamic_reconfigure/server.h>
25 #include <asr_ism_visualizations/rp_pose_prediction_visualizerConfig.h>
26 
27 //foreigen includes
28 #include <boost/shared_ptr.hpp>
29 
30 namespace VIZ
31 {
33 {
34 public:
36  reconfigure_server_ = new dynamic_reconfigure::Server<asr_ism_visualizations::rp_pose_prediction_visualizerConfig>(nh);
37  dynamic_reconfigure::Server<asr_ism_visualizations::rp_pose_prediction_visualizerConfig>::CallbackType reconf_callback = boost::bind(&PosePredictionVisualizer::dynamicReconfCallback, this, _1, _2);
38  reconfigure_server_->setCallback(reconf_callback);
39  }
40 
42  reconfigure_server_->clearCallback();
43  delete reconfigure_server_;
44  }
45 
46  void addPosePredictionVisualization(ISM::PosePtr referencePosePtr, asr_msgs::AsrAttributedPointCloud attributedPointCloud, std::string markerNameSpace);
47 
48  void dynamicReconfCallback(asr_ism_visualizations::rp_pose_prediction_visualizerConfig &config, uint32_t level) {
49  ROS_DEBUG_STREAM("Pose prediction visualizer dyn-params updated.");
50  baseFrame = config.baseFrame;
51  pointLifeTime = config.pointLifeTime;
52  arrowLifeTime = config.arrowLifeTime;
53  referenceRadius = config.referenceRadius;
54  pointRadius = config.pointRadius;
55  arrowScaleX = config.arrowScaleX;
56  arrowScaleY = config.arrowScaleY;
57  arrowScaleZ = config.arrowScaleZ;
58  colorStepSize = config.colorStepSize;
59 
60  }
61 
62 private:
65  std::string baseFrame;
66  double pointLifeTime;
67  double arrowLifeTime;
69  double pointRadius;
70  double arrowScaleX;
71  double arrowScaleY;
72  double arrowScaleZ;
73  double colorStepSize;
74 
75  dynamic_reconfigure::Server<asr_ism_visualizations::rp_pose_prediction_visualizerConfig>* reconfigure_server_;
76 
77 };
78 
80 }
boost::shared_ptr< PosePredictionVisualizer > PosePredictionVisualizerPtr
dynamic_reconfigure::Server< asr_ism_visualizations::rp_pose_prediction_visualizerConfig > * reconfigure_server_
visualization_msgs::MarkerArray MarkerArray
#define ROS_DEBUG_STREAM(args)
visualization_msgs::MarkerArray MarkerArray
void dynamicReconfCallback(asr_ism_visualizations::rp_pose_prediction_visualizerConfig &config, uint32_t level)
PosePredictionVisualizer(ros::Publisher posePredictionMarkerPublisher, const ros::NodeHandle &nh)
void addPosePredictionVisualization(ISM::PosePtr referencePosePtr, asr_msgs::AsrAttributedPointCloud attributedPointCloud, std::string markerNameSpace)


asr_ism_visualizations
Author(s): Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Meißner Pascal, Reckling Reno, Stöckle Patrick, Trautmann Jeremias
autogenerated on Fri Nov 8 2019 03:28:47