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

how to generate local_map for MSF localization #15587

Open
2012131967 opened this issue Nov 17, 2024 · 2 comments
Open

how to generate local_map for MSF localization #15587

2012131967 opened this issue Nov 17, 2024 · 2 comments

Comments

@2012131967
Copy link

We appreciate you go through Apollo documentations and search previous issues before creating an new one. If neither of the sources helped you with your issues, please report the issue using the following form. Please note missing info can delay the response time.

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 18.04): Linux Ubuntu 22.04
  • Apollo installed from (source or binary):source
  • Apollo version (3.5, 5.0, 5.5, 6.0):apollo-v7.0.0
  • Output of apollo.sh config if on master branch:

Steps to reproduce the issue:

  • Please use bullet points and include as much details as possible:
  • I run/pollo/scripts/msf_simplice_map_reactor. sh apollo/data/records/ /apollo/modules/localization/msf/params/velodyne_params/ls32_novatel_extrinsics.yaml 50 /apollo/mymap
    However, the map I obtained was not ideal, it was like this, very poor.
    mmexport1731833191332
    Then I use
    ./bazel-bin/modules/localization/msf/local_tool/data_extraction/cyber_record_parser --bag_file=data/bag/mydata.record --out_folder=data --cloud_topic=/apollo/sensor/lslidar32/compensator/PointCloud2

./bazel-bin/modules/localization/msf/local_tool/map_creation/poses_interpolator --input_poses_path=data/pcd/odometry_loc.txt --ref_timestamps_path=data/pcd/pcd_timestamp.txt --extrinsic_path=modules/localization/msf/params/velodyne_params/ls32_novatel_extrinsics_example.yaml --output_poses_path=data/pcd/poses.txt
I have obtained the PCD file and poses. txt, as follows:
mmexport1731833437899
Then the map I created using/apollo/scripts/msd_local_map_reactor. sh was exactly the same as before. What should I do?

Supporting materials (screenshots, command lines, code/script snippets):

mmexport1731833439772

@2012131967
Copy link
Author

Is it because I haven't done calibration?

@boyang9602
Copy link

boyang9602 commented Nov 20, 2024

Calibration could be a reason.

I have some lessons below:

  1. Make sure the LiDAR and pose are in the same reference system. For example, if the pose is in the IMU reference system while the LiDAR is in the LiDAR reference system, you need to convert LiDAR to IMU (or IMU to LIDAR, if you only care about the map).
  2. LiDAR quality is important. Apollo expects a 64-channel LiDAR. I can create good maps with KITTI, which also uses a 64-channel LIDAR. However, I cannot for KAIST Urban Complex dataset (16-channel LiDAR). I guess the reason is the resolution of LiDAR. Your LiDAR seems like a 32-channel one.
  3. Make sure the pose file is correct: the order for quaternion is xyzw, instead of wxyz.
  4. Apollo version. Seems Apollo 7 or after has bugs in map creation. Apollo v5.0.0 works for me.

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

2 participants