-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Latency problem with ROS2 algorithm #437
Comments
Hi I might be ran into same issue as you. Would you mind tell me how to switch generic kernel to a lowlatency-kernel and disabled switching-ability to high latency c-states by setting a kernel boot parameter to ``ìdle=halt```? Or any I could refer? Much appreciated! |
Hi @chivas1000, sorry for my late response. Here are the steps you need to follow:
#<domain> <type> <item> <value> # #* soft core 0 #root hard core 100000 #* hard rss 10000 lukas - rtprio 98 lukas - nice -19 lukas - memlock -1
|
Hi everybody,
while testing ROS2-LIO-SAM on different machines, I encountered a problem related to the native high latency of the OS (Ubuntu 22.04 TLS, kernel: 5.19.0-45-generic).
As a result of the latency problem, LIO-SAM worked on one machine only with decreased replay rate of my own rosbags. On an other system (with much more powerfull hardware), I had no chance to run LIO-SAM at any speed. It seems that point clouds won't be processed fast enough, so no LiDAR-odometry solution can be calculated with the consequence that
imuPreintegration
drifts away after a few seconds.I fixed this problem by reducing the latency of the whole system. Therefor, I changed der generic kernel to a lowlatency-kernel and disabled switching-ability to high latency c-states by setting a kernel boot parameter to ``ìdle=halt```.
Now, ROS2-LIO-SAM seems to work pretty well and stable on all of my machines. If you have issues with respect to performance, check out this fix and give me a feedback.
The text was updated successfully, but these errors were encountered: