shouldTrigger
Determines if the marker should trigger.
Parameters
robotState
The current state of the robot.
trajectory
The trajectory being followed, parameterized by arclength.
s
The current progress along the trajectory, typically represented as arclength.