17 namespace gm = ::grid_map::grid_map_pcl;
20 ros::init(argc, argv,
"grid_map_pcl_loader_node");
25 gridMapPub = nh.
advertise<grid_map_msgs::GridMap>(
"grid_map_from_raw_pointcloud", 1,
true);
30 gridMapPclLoader.loadCloudFromPcdFile(pathToCloud);
41 grid_map_msgs::GridMap msg;
void publish(const boost::shared_ptr< M > &message) const
std::string getPcdFilePath(const ros::NodeHandle &nh)
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
static void toMessage(const grid_map::GridMap &gridMap, grid_map_msgs::GridMap &message)
void processPointcloud(grid_map::GridMapPclLoader *gridMapPclLoader, const ros::NodeHandle &nh)
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
std::string getParameterPath()
int main(int argc, char **argv)
void setVerbosityLevelToDebugIfFlagSet(const ros::NodeHandle &nh)
void saveGridMap(const grid_map::GridMap &gridMap, const ros::NodeHandle &nh, const std::string &mapTopic)
void setFrameId(const std::string &frameId)
std::string getMapFrame(const ros::NodeHandle &nh)
std::string getMapRosbagTopic(const ros::NodeHandle &nh)