Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The topic /map published by node LaserMappingNode is a local map, how could I get the global map #25

Open
ldjcrs opened this issue Jul 28, 2021 · 1 comment

Comments

@ldjcrs
Copy link

ldjcrs commented Jul 28, 2021

Hi @wh200720041 ,Thanks a lot for your work! when I listened the topic /map in rviz, I just could viewed the local map message.

@ldjcrs
Copy link
Author

ldjcrs commented Jul 28, 2021

I found the location where map topic published in LaserMappingNode.cpp. Is the topic map published here a local map?
if(path_size %20 == 0){
iscloam_map = laserMapping.getMap();
sensor_msgs::PointCloud2 PointsMsg;
pcl::toROSMsg(*iscloam_map, PointsMsg);
PointsMsg.header.stamp = pointcloud_time;
PointsMsg.header.frame_id = "map";
map_pub.publish(PointsMsg);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant