6 #include <std_msgs/String.h> 8 #include <hector_elevation_msgs/ElevationMapMetaData.h> 9 #include <hector_elevation_msgs/ElevationGrid.h> 11 #include <dynamic_reconfigure/server.h> 12 #include <hector_elevation_visualization/ElevationVisualizationConfig.h> 14 #include <visualization_msgs/MarkerArray.h> 16 #include <eigen3/Eigen/Core> 35 void dynRecParamCallback(hector_elevation_visualization::ElevationVisualizationConfig &config, uint32_t level);
47 void map_callback(
const hector_elevation_msgs::ElevationGrid& elevation_map);
56 dynamic_reconfigure::Server<hector_elevation_visualization::ElevationVisualizationConfig>
dyn_rec_server_;
~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_
ros::Subscriber sub_elevation_map
std::string elevation_map_frame_id
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 ...
std::string sys_msg_topic
ros::Subscriber sub_sys_message_callback
HectorMapTools::CoordinateTransformer< float > world_map_transform
ros::Publisher map_marker_array_publisher
ElevationVisualization()
Default constructor.
void sys_message_callback(const std_msgs::String &string)
sysMessageCallback This function listen to system messages
std_msgs::ColorRGBA marker_color
static std_msgs::ColorRGBA heightMapColor(double h)
heightMapColor calculates the marker color as a function of height