addPointMarker

fun addPointMarker(point: Vector2d, tolerance: Double = 2.0, callback: MarkerCallback): TrajectoryBuilder

Adds a marker that triggers when the robot is within a certain tolerance of a given point.

Return

A new TrajectoryBuilder with the marker added.

Parameters

point

The Vector2d point to check proximity against.

tolerance

The distance tolerance for triggering the marker (default: 2.0 units).

callback

The callback to execute when triggered.