Object Avoidance bug?

Hi all.

I set up UGV wtih RP Lidar A2-M12.

Collision avoidance is implemented.

The Avoid function will stop the UGV at a set distance.

With Object Avoidance, the UGV can sometimes successfully avoid obstacles.

However, when approaching a waypoint in auto mode, it will take evasive action and take a long time to arrive.

In the experimental environment, there were no obstacles. When I looked at the proximity sensor log, it was reacting to something.

Mechanically it has the same settings, but if I turn off OA and set it to Avoid it appears to work fine.

Is there some bug?

Case: Object Avoidance

https://46.gigafile.nu/1122-b3169ff14e2b7d9b3473680faeabda0e9

Case : Avoid

https://46.gigafile.nu/1122-c668f5afa8b440d55213d1550ca9cc6cf

Hi @miw01-san,

I haven’t checked your logs yet but two things come to mind:

  1. the RPLidars don’t work well outdoors. They suffer from false short readings when exposed to sunlight.
  2. Rover’s default main loop rate may not be fast enough to allow capturing the huge amount of data that the lidar produces. It may be necessary to increase SCHED_LOOP_RATE to 200 or even 400.

Hope this helps

Dear Randy-san,

So the Rider might not work well outside.
Maybe it would be better if I put a roof on it…

I will try changing the SCHED_LOOP_RATE.

Thank you.

Dear Randy-san,

Today, I test SCHED_LOOP_RATE to 400, and the rover moved well!

Thank you!

1 Like

Hi @miw01,

Great news! I’ve created a PR to improve the wiki instructions.