Optimal obstacle avoidance based on the Hamilton-Jacobi-Bellman equation | Synapse