MCPcopy Create free account
hub / github.com/Robotics-STAR-Lab/RACER / cloudCallback

Function cloudCallback

uav_simulator/map_generator/src/map_recorder.cpp:12–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10bool finish = false;
11
12void cloudCallback(const sensor_msgs::PointCloud2& msg) {
13 pcl::PointCloud<pcl::PointXYZ> cloud;
14 pcl::fromROSMsg(msg, cloud);
15 pcl::io::savePCDFileASCII("/home/boboyu/Downloads/tmp.pcd", cloud);
16
17 cout << "map saved." << endl;
18 finish = true;
19}
20
21int main(int argc, char** argv) {
22 ros::init(argc, argv, "map_recorder");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected