nobleo / tracking_pid

PID controller following a moving carrot
Apache License 2.0
237 stars 49 forks source link

Timeout on setpoint #20

Closed rokusottervanger closed 1 year ago

rokusottervanger commented 1 year ago

The controller holds on to its latest position setpoint and keeps publishing command velocities indefinitely. This PR proposes to put a timeout on the input. If we didn't receive any "trajectory point" input for x seconds, we switch back to the "waiting for setpoint" state (enabled, but idle), suspending the publishing of cmd vel until a new setpoint is received.