carrot planner is simple, but can't make a robot move a goal?
I want to ask anyone a question. I'm interested in global planner. I checked a code of a carrot_planner. carrot planner is very simple, but I think that it can't make a robot move a goal in case of being an obstacle between start position and goal position. Because the path(target_x,target_y,target_yaw) is made of following.
goal_x = goal.pose.position.x; goal_y = goal.pose.position.y; start_x = start.pose.position.x; start_y = start.pose.position.y; diff_x = goal_x - start_x; diff_y = goal_y - start_y; diff_yaw = angles::normalize_angle(goal_yaw-start_yaw); target_x = goal_x; target_y = goal_y; target_yaw = goal_yaw; target_x = start_x + scale * diff_x; target_y = start_y + scale * diff_y; target_yaw = angles::normalize_angle(start_yaw + scale * diff_yaw);
Carrot planner seems to make a plan for a robot to go straight. I mean that robot stops in front of an obstacle. What do you think of it?