hector_elevation_visualization.h
Go to the documentation of this file.
1 #include <ros/ros.h>
2 
3 #include <tf/tf.h>
5 
6 #include <std_msgs/String.h>
7 
8 #include <hector_elevation_msgs/ElevationMapMetaData.h>
9 #include <hector_elevation_msgs/ElevationGrid.h>
10 
11 #include <dynamic_reconfigure/server.h>
12 #include <hector_elevation_visualization/ElevationVisualizationConfig.h>
13 
14 #include <visualization_msgs/MarkerArray.h>
15 
16 #include <eigen3/Eigen/Core>
17 
19 
20 
22 
23 public:
26 
29 
31 
35  void dynRecParamCallback(hector_elevation_visualization::ElevationVisualizationConfig &config, uint32_t level);
36 
38 
41  void sys_message_callback(const std_msgs::String& string);
42 
44 
47  void map_callback(const hector_elevation_msgs::ElevationGrid& elevation_map);
48 
49 private:
51 
55 
56  dynamic_reconfigure::Server<hector_elevation_visualization::ElevationVisualizationConfig> dyn_rec_server_;
57 
58  visualization_msgs::MarkerArray map_marker_array_msg;
59 
61 
63 
65 
67 
69 
70  std_msgs::ColorRGBA marker_color;
71 
73 
77  void visualize_map(const hector_elevation_msgs::ElevationGrid& elevation_map, tf::StampedTransform local_map_transform);
78 
80 
83  static std_msgs::ColorRGBA heightMapColor(double h);
84 };
~ElevationVisualization()
Default deconstructor.
void map_callback(const hector_elevation_msgs::ElevationGrid &elevation_map)
map_callback get called if a new elevation map is avaible
dynamic_reconfigure::Server< hector_elevation_visualization::ElevationVisualizationConfig > dyn_rec_server_
visualization_msgs::MarkerArray map_marker_array_msg
void dynRecParamCallback(hector_elevation_visualization::ElevationVisualizationConfig &config, uint32_t level)
dynRecParamCallback This function get called if new parameters has been set with the dynamic reconfig...
void visualize_map(const hector_elevation_msgs::ElevationGrid &elevation_map, tf::StampedTransform local_map_transform)
visualize_map calculates visualization markers to vizualize the elevation map in rviz ...
HectorMapTools::CoordinateTransformer< float > world_map_transform
ElevationVisualization()
Default constructor.
void sys_message_callback(const std_msgs::String &string)
sysMessageCallback This function listen to system messages
static std_msgs::ColorRGBA heightMapColor(double h)
heightMapColor calculates the marker color as a function of height


hector_elevation_visualization
Author(s):
autogenerated on Mon Jun 10 2019 13:34:38