| 11 | namespace grid_map_demos { |
| 12 | |
| 13 | ImageToGridmapDemo::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 | |
| 24 | ImageToGridmapDemo::~ImageToGridmapDemo() |
| 25 | { |
nothing calls this directly
no test coverage detected