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

Bad data output on RaspberryPi #44

Closed
MatCapLynx opened this issue Jan 5, 2023 · 7 comments
Closed

Bad data output on RaspberryPi #44

MatCapLynx opened this issue Jan 5, 2023 · 7 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@MatCapLynx
Copy link

Hi,
I'm using a RPi 4B 8Gb to receive data from an OS1-32. For the first few seconds I receive the whole pointcloud but then there is some black strips and I only receive the closest points on the pointcloud.
Screenshot from 2023-01-05 16-37-21

I've noticed that this depends of the lidar mode. It seems to depend of the number of points received. In 512x10 everything is fine but this problem happens when using 1024x10, 1024x20, 2048x10.
May be this is coming from the processing power, this is the %CPU it got with top command:

  • 1024x10: 195%CPU
  • 2048x10: 220%CPU

I've checked with my computer instead of the RPi and everything is fine in all lidar modes.

@Samahu Samahu self-assigned this Jan 10, 2023
@Samahu
Copy link
Contributor

Samahu commented Jan 10, 2023

Hi @MatCapLynx,

I haven't tried to run the driver on a RPi 4 myself but I plan to.. I have observed incomplete point clouds when trying to run the ouster-ros driver on edge devices similar to RPi in capability. Where the driver runs fine with lidar modes 512x10, 512x20, and even 1024x10 seemed okay to me but anything higher than that such as 1024x20 or 2048x10 had poor performance. It is on my to do list to dig deep into the issue and figure out why this is the case and how we can resolve or mitigate or resolve this behavior. I will keep this ticket open and keep you updated.

@Samahu Samahu added bug Something isn't working help wanted Extra attention is needed labels Jan 10, 2023
@Grisly00
Copy link

Hi,
we experienced similar issues on the Raspi. The solution for us at the moment is to record the lidar_packets directly instead of Pointcloud2. Later you can replay the bagfile on a more powerful computer and transform the recorded lidar_packets into Pointcloud2.
However, I would also be happy to hear about any improvements that would make this step unnecessary.
Thanks!

@MatCapLynx
Copy link
Author

I've tried again in 2048x10 mode and it seems much better. I believe it is because I built the package with the -DCMAKE_BUILD_TYPE=Release option. I don't really remember if I used it before.
I also used an older Ouster so it's probably running a different firmware. I don't know if it changes anything.

The ouster nodelet now uses ~120%CPU.

However there is still some parts of the pointcloud disappearing for an instant but it's not really a problem. The pointcloud is much more usable than before.
Screenshot from 2023-02-17 12-29-22

@Samahu
Copy link
Contributor

Samahu commented Feb 17, 2023

There was an update to the drive back in December #40 that improved its performance and the stability, did you use the updated driver with your test? Just curious if the CPU utilization that you reported (120%) included the update. I still haven't got the time to test with RPi 😫

@MatCapLynx
Copy link
Author

I used only the updated driver because I cloned the repo after december.

@Samahu
Copy link
Contributor

Samahu commented Nov 13, 2023

@MatCapLynx we had implemented several fixes towards the ROS1 driver since #249 that should reduce dropped packets and reduce overall CPU utilization, could you give the last update a try and let us know if could close this issue?

@Samahu
Copy link
Contributor

Samahu commented Nov 20, 2023

@MatCapLynx I haven't heard back from you. I am closing the issue, if you are (or someone else) still having problems then they can respond to this or open new ticket.

@Samahu Samahu closed this as completed Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants