SdfDemo.hpp
Go to the documentation of this file.
1 /*
2  * SdfDemo.hpp
3  *
4  * Created on: May 3, 2022
5  * Author: Ruben Grandia
6  * Institute: ETH Zurich
7  */
8 
9 #pragma once
10 
11 #include <string>
12 
13 // ROS
14 #include <ros/ros.h>
15 
16 // gridmap
17 #include <grid_map_msgs/GridMap.h>
19 
20 namespace grid_map_demos {
21 
25 class SdfDemo {
26  public:
27 
35  SdfDemo(ros::NodeHandle& nodeHandle, const std::string& mapTopic, std::string elevationLayer, const std::string& pointcloudTopic);
36 
37  private:
38  void callback(const grid_map_msgs::GridMap& message);
39 
42 
45 
48 
51 
53  std::string elevationLayer_;
54 };
55 
56 } // namespace grid_map_demos
std::string elevationLayer_
Elevation layer in the received grid map.
Definition: SdfDemo.hpp:53
void callback(const grid_map_msgs::GridMap &message)
Definition: SdfDemo.cpp:26
SdfDemo(ros::NodeHandle &nodeHandle, const std::string &mapTopic, std::string elevationLayer, const std::string &pointcloudTopic)
Definition: SdfDemo.cpp:18
ros::Publisher freespacePublisher_
Free space publisher.
Definition: SdfDemo.hpp:47
ros::Publisher occupiedPublisher_
Occupied space publisher.
Definition: SdfDemo.hpp:50
ros::Subscriber gridmapSubscriber_
Grid map subscriber.
Definition: SdfDemo.hpp:41
ros::Publisher pointcloudPublisher_
Pointcloud publisher.
Definition: SdfDemo.hpp:44


grid_map_demos
Author(s): Péter Fankhauser
autogenerated on Wed Jul 5 2023 02:24:01