MCPcopy Create free account
hub / github.com/ANYbotics/grid_map / OctomapToGridmapDemo

Method OctomapToGridmapDemo

grid_map_demos/src/OctomapToGridmapDemo.cpp:20–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18namespace grid_map_demos {
19
20OctomapToGridmapDemo::OctomapToGridmapDemo(ros::NodeHandle& nodeHandle)
21 : nodeHandle_(nodeHandle),
22 map_(grid_map::GridMap({"elevation"}))
23{
24 readParameters();
25 client_ = nodeHandle_.serviceClient<octomap_msgs::GetOctomap>(octomapServiceTopic_);
26 map_.setBasicLayers({"elevation"});
27 gridMapPublisher_ = nodeHandle_.advertise<grid_map_msgs::GridMap>("grid_map", 1, true);
28 octomapPublisher_ = nodeHandle_.advertise<octomap_msgs::Octomap>("octomap", 1, true);
29}
30
31OctomapToGridmapDemo::~OctomapToGridmapDemo()
32{

Callers

nothing calls this directly

Calls 2

setBasicLayersMethod · 0.80
GridMapClass · 0.50

Tested by

no test coverage detected