when launching lego_loam and play jackal_dataset_20170608 bags, i got the frame tree as follows.
In the picture, the meaning of virtual_velodyne frame is (Z-front, X-left, Y-up), which different from velodyne_frame(X-front, Y-left, Z-up).
Q1. Does base_link in tf tree meaning velodyne_frame? camera is virtual_velodyne?
Q2. What's the meaning of lego_loam backend calculated frame aft_mapped? I see transformAftMapped's orientation is transformed to get aft_mapped and then published on topic and TF. But when saving finalCloud.pcd map, use cloudKeyPoses6D(cloudKeyPoses6D == transformAftMapped) to transform points to camera_init frame, not use aft_mapped or camera frame.
thisPose3D.x = latestEstimate.translation().y();
thisPose3D.y = latestEstimate.translation().z();
thisPose3D.z = latestEstimate.translation().x();
thisPose3D.intensity = cloudKeyPoses3D->points.size(); // this can be used as index
cloudKeyPoses3D->push_back(thisPose3D);
thisPose6D.x = thisPose3D.x;
thisPose6D.y = thisPose3D.y;
thisPose6D.z = thisPose3D.z;
thisPose6D.intensity = thisPose3D.intensity; // this can be used as index
thisPose6D.roll = latestEstimate.rotation().pitch();
thisPose6D.pitch = latestEstimate.rotation().yaw();
thisPose6D.yaw = latestEstimate.rotation().roll(); // in camera frame
thisPose6D.time = timeLaserOdometry;
cloudKeyPoses6D->push_back(thisPose6D);
/**
Hello @TixiaoShan
when launching lego_loam and play jackal_dataset_20170608 bags, i got the frame tree as follows. In the picture, the meaning of virtual_velodyne frame is (Z-front, X-left, Y-up), which different from velodyne_frame(X-front, Y-left, Z-up).
Q1. Does base_link in tf tree meaning velodyne_frame? camera is virtual_velodyne?
Q2. What's the meaning of lego_loam backend calculated frame aft_mapped? I see transformAftMapped's orientation is transformed to get aft_mapped and then published on topic and TF. But when saving finalCloud.pcd map, use cloudKeyPoses6D(cloudKeyPoses6D == transformAftMapped) to transform points to camera_init frame, not use aft_mapped or camera frame.
Looking forward to your help, thanks sincerely!