add the path planner role and fixed the target goal typecasting