| 14 | namespace grid_map_demos { |
| 15 | |
| 16 | GridMapToImageDemo::GridMapToImageDemo(ros::NodeHandle& nodeHandle) |
| 17 | : nodeHandle_(nodeHandle) |
| 18 | { |
| 19 | readParameters(); |
| 20 | gridMapSubscriber_ = nodeHandle_.subscribe(gridMapTopic_, 1, &GridMapToImageDemo::gridMapCallback, this); |
| 21 | ROS_ERROR("Subscribed to %s", nodeHandle_.resolveName(gridMapTopic_).c_str()); |
| 22 | } |
| 23 | |
| 24 | GridMapToImageDemo::~GridMapToImageDemo()=default; |
| 25 |