Is there a way to get the distance and the direction of the nearest detected obstacle?
I have tried with this "Navigation/AvoidanceNavigator/ObstacleDetected" event, but it never triggers event if I position the robot next to the wall and tell him to go 5 meters long in the wall direction.
There's no API for the "nearest obstacle, but the ALMotion/MoveFailed event may be what you want - it will tell you where the obstacle is and why it failed.