iscumd / Ohm2017

An obstacle course navigating robot
4 stars 4 forks source link

Auto control logic #38

Closed EpicWolverine closed 7 years ago

EpicWolverine commented 7 years ago

Closes #14 Works correctly when simulating messages.

Listens for messages from #17 on /avoidanceOverride and forwards them on to /autoControl while blocking PID messages for a brief time. Listens for messages from #18 on /ohmPid and forwards them on to /autoControl if not blocked.

Uses ROS param obstacleOverrideDurationMillis, which is the amount of time in milliseconds that /ohmPid messages will be blocked after receiving an /avoidanceOverride message. Defaults to 1000.0, or 1 second.