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

lidar scan not complete #323

Closed
yinwu33 opened this issue Nov 29, 2021 · 9 comments
Closed

lidar scan not complete #323

yinwu33 opened this issue Nov 29, 2021 · 9 comments
Labels
sensor-support Potential for ouster support

Comments

@yinwu33
Copy link

yinwu33 commented Nov 29, 2021

1
2

Hello I recorded some rosbag in Ubuntu 20.04 based on this repo. But some frame seems not complete, only around 270 degree or less (in 2. image). Is this normal or I can do something to improve the scan?

@kairenw kairenw added the question Further information is requested label Nov 29, 2021
@kairenw
Copy link
Contributor

kairenw commented Nov 29, 2021

Hi @yinwu33,

Could be a few things. If it's the last frame, then the frame may just be incomplete because the recording was stopped before the full frame could be captured. Otherwise, it may seem that a frame is incomplete due to minimum range. You might also wish to check your azimuth_window settings (easily accessed by going to your sensor's homepage in the browser).

Hope that helps!

@kairenw kairenw removed the question Further information is requested label Nov 29, 2021
@yinwu33
Copy link
Author

yinwu33 commented Nov 29, 2021

Thanks for your reply. It's not the last frame. I replayed the rosbag and viewed the scan with rviz. The scan seems to twinkle due to several frames are not complete. The incomplete frame actually twinkles frequently. What could I do with azimuth_window settings?

In addition, I ran 6 lidars in total to record data. Could this be a problem?

@kairenw
Copy link
Contributor

kairenw commented Nov 29, 2021

Hi @yinwu33,

You should check in the sensor homepage that your azimuth_window settings are for the full window ( [0, 360000] ).

It's possible you are experiencing packet loss. I think the best thing to do is to contact our sensor support. so they can help you diagnose the issue.

@kairenw kairenw added the sensor-support Potential for ouster support label Nov 29, 2021
@yinwu33
Copy link
Author

yinwu33 commented Dec 3, 2021

Hi @yinwu33,

You should check in the sensor homepage that your azimuth_window settings are for the full window ( [0, 360000] ).

It's possible you are experiencing packet loss. I think the best thing to do is to contact our sensor support. so they can help you diagnose the issue.

Hello @kairenw
Thanks for your advice. I checked the azimuth_window setting, which is set up correctly. However, I have another guess. Since we have installed 6 Ouster lidars in our vehicle, and use a ros launch file to start six nodes of yours. Would this be a reason due to the huge amount of data?

@kairenw
Copy link
Contributor

kairenw commented Dec 3, 2021

Hi @yinwu33,

Great, I'm glad it's not the azimuth window.

It's definitely possible that you're getting packet loss due to having multiple sensors. Our client and viz code is performant enough to support 6 sensors real-time, but the devil is really in the details. I'd contact Ouster support with the code you're using, and a recorded bag of the data (along with the metadata) so we can look at it on our end.

Thanks!
Kairen

@kairenw
Copy link
Contributor

kairenw commented Dec 3, 2021

Going to close this out now. In your support ticket, you can also link to this GH issue.

@kairenw kairenw closed this as completed Dec 3, 2021
@peci1
Copy link

peci1 commented Jul 1, 2022

This looks like packet loss. Even with a single lidar, it can happen, if you connect it via a switch. I did extensive testing of many switches, and some have their switching buffers so small that even the slightest additional traffic over the switch will cause packet loss for ouster. Details can be found in the table here: https://serverfault.com/questions/1098492/how-to-simulate-what-happens-inside-the-packet-buffer-of-a-simple-switch?noredirect=1#comment1434829_1098492, column "20K bursts".

The best way to detect packet loss is observing /os_node/lidar_packets rate with a small time window, e.g. rostopic hz /os_node/lidar_packets -w 2000. The rate should be constant - e.g. 640 Hz for 1024x10 mode.

@themightyoarfish
Copy link

Is there sample code how to identify when a scan is incomplete? Especially in the presence of a limited azimuth window?

@Samahu
Copy link
Collaborator

Samahu commented Nov 8, 2023

You can use the LidarScan::complete() method to check if a LidarScan is complete over a specified azimuth window:

bool LidarScan::complete(sensor::ColumnWindow window) const

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sensor-support Potential for ouster support
Projects
None yet
Development

No branches or pull requests

5 participants