I noticed that the computation of the lookahead point fails, if the waypoints are too far spread out. Introducing intermediate points mitigates the problem.
Below are two images to illustrate the problem. They contain the illustrations as provided by this package (path waypoints in green, lookahead/anchor point in yellow and the robot state as a yellow arrow).
The error message for the failure case is:
[ INFO] [1600849981.064074339, 10.961000000]: [ExcavationStateMachine::run] Excavation state: driving
Going to driving state (received plan)
AckermannSteeringController: Failed to compute lookahead point.
[ERROR] [1600849981.064469624, 10.961000000]: [PurePursuitController::run] Failed to advance path tracker.
I noticed that the computation of the lookahead point fails, if the waypoints are too far spread out. Introducing intermediate points mitigates the problem.
Below are two images to illustrate the problem. They contain the illustrations as provided by this package (path waypoints in green, lookahead/anchor point in yellow and the robot state as a yellow arrow).
The error message for the failure case is:
[ INFO] [1600849981.064074339, 10.961000000]: [ExcavationStateMachine::run] Excavation state: driving Going to driving state (received plan) AckermannSteeringController: Failed to compute lookahead point. [ERROR] [1600849981.064469624, 10.961000000]: [PurePursuitController::run] Failed to advance path tracker.