obstacle detected state partially implemented