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

Method ImageToGridmapDemo

grid_map_demos/src/ImageToGridmapDemo.cpp:13–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11namespace grid_map_demos {
12
13ImageToGridmapDemo::ImageToGridmapDemo(ros::NodeHandle& nodeHandle)
14 : nodeHandle_(nodeHandle),
15 map_(grid_map::GridMap({"elevation"})),
16 mapInitialized_(false)
17{
18 readParameters();
19 map_.setBasicLayers({"elevation"});
20 imageSubscriber_ = nodeHandle_.subscribe(imageTopic_, 1, &ImageToGridmapDemo::imageCallback, this);
21 gridMapPublisher_ = nodeHandle_.advertise<grid_map_msgs::GridMap>("grid_map", 1, true);
22}
23
24ImageToGridmapDemo::~ImageToGridmapDemo()
25{

Callers

nothing calls this directly

Calls 3

setBasicLayersMethod · 0.80
subscribeMethod · 0.80
GridMapClass · 0.50

Tested by

no test coverage detected