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

Does not work on Jetson #49

Open
curiousityy opened this issue Jul 6, 2023 · 6 comments
Open

Does not work on Jetson #49

curiousityy opened this issue Jul 6, 2023 · 6 comments

Comments

@curiousityy
Copy link

Hi @JokerJohn,

Thank you for the great work. I am currently working with liosam 6 axis for my jetson platform (Jetson xavier NX). I Got the setup working on my PC (Ubuntu 20.04). When I port the same onto jetson (as a docker image). my map starts to drift and I continuously get a large velocity warning. Could you please let me know what could be wrong? I know it is to do with the params.yaml file. I tried reducing the voxel grid size as well, but it doesn't fix the issue.

Best Regards,
Sai

@JokerJohn
Copy link
Owner

Based on your description, I suspect that the issue lies with the LiDAR-IMU extrinsic parameters. You may need to recalibrate the extrinsic parameters (mainly the rotation issue). The Docker version in the repository may not be entirely consistent with the newer versions, so we recommend directly compiling from the source code.

Hi @JokerJohn,

Thank you for the great work. I am currently working with liosam 6 axis for my jetson platform (Jetson xavier NX). I Got the setup working on my PC (Ubuntu 20.04). When I port the same onto jetson (as a docker image). my map starts to drift and I continuously get a large velocity warning. Could you please let me know what could be wrong? I know it is to do with the params.yaml file. I tried reducing the voxel grid size as well, but it doesn't fix the issue.

Best Regards, Sai

Based on your description, I suspect that the issue lies with the LiDAR-IMU extrinsic parameters. You may need to recalibrate the extrinsic parameters (mainly the rotation issue). The Docker version in the repository may not be entirely consistent with the newer versions, so we recommend directly compiling from the source code.

@curiousityy
Copy link
Author

Thank you for the update. But, if the issue was with the extrinsics, it shouldn't have worked in my PC as well right? It just doesn't work on the ARM64 platform. For the docker image, I created my own. I tried it directly on the jetson without the docker as well, but the issue still persists.

@JokerJohn
Copy link
Owner

Thank you for the update. But, if the issue was with the extrinsics, it shouldn't have worked in my PC as well right? It just doesn't work on the ARM64 platform. For the docker image, I created my own. I tried it directly on the jetson without the docker as well, but the issue still persists.

@curiousityy yes, you are right. I did not not tested on jetson before, but if you can give some detailed error log. maybe I can help to solve this problem.

@curiousityy
Copy link
Author

@JokerJohn, please find the logs and the map drift (in the image).

Logs:

[ INFO] [1688718933.641949904]: ----> Feature Extraction Started.
[ INFO] [1688718933.699395248]: ----> Image Projection Started.
SAVE DIR:/media/anavs/SSD_2TB1/Home_Dec_7_jetson/lio-sam-6axis/catkin_ws/src/LIO_SAM_6AXIS/LIO-SAM-6AXIS/data/
[ INFO] [1688718934.174073936]: ----> IMU Preintegration Started.
[ WARN] [1688718960.243215888]: Large velocity, reset IMU-preintegration!
resetting graph
QObject::connect: Cannot queue arguments of type 'QVector'
(Make sure 'QVector' is registered using qRegisterMetaType().)
QObject::connect: Cannot queue arguments of type 'QVector'
(Make sure 'QVector' is registered using qRegisterMetaType().)
[ WARN] [1688718961.950581360]: Large velocity, reset IMU-preintegration!
resetting graph
[ WARN] [1688718965.039355248]: Large velocity, reset IMU-preintegration!
resetting graph
[ WARN] [1688718966.391134992]: Large velocity, reset IMU-preintegration!
resetting graph
[pcl::VoxelGrid::applyFilter] Leaf size is too small for the input dataset. Integer indices would overflow.[pcl::VoxelGrid::applyFilter] Leaf size is too small for the input dataset. Integer indices would overflow

Screenshot from 2023-07-07 10-52-51

@JokerJohn
Copy link
Owner

jetson

Have you tried collecting data bag using Jetson and then running this repo on a PC to see if the mapping is successful? Looking at your error log, it doesn't seem like an environment issue, but more like instability in the IMU odometry. The first thing to check when dealing with IMU odometry is to ensure that the external parameters are functioning correctly. This means that the three axes of the IMU should align with the Lidar through the rotation of the external parameters. Otherwise, the pre-integration will be incorrect, leading to the kind of problem you see in your log. Additionally, try to avoid any drastic rotation at the beginning. You can perform some translational movement instead.

@curiousityy
Copy link
Author

Hi @JokerJohn, the bag files I have were recorded on the jetson. I have the lidar and the imu connected to the jetson and these recordings are tested on the PC. The same bag file when tested on the jetson itself don't work.

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

No branches or pull requests

2 participants