added avoid_collisions flag to compute_cartesian_path