Complete the code to create an action client in ROS.
client = actionlib.SimpleActionClient('[1]', MoveBaseAction)
The action client must connect to the correct action server name, which is /move_base for navigation actions.
Complete the code to send a goal to the action server.
client.[1](goal)wait_for_result instead of send_goal.To send a goal to the action server, use the send_goal method.
Fix the error in the code to preempt the current goal.
client.[1]()send_goal instead of cancel_goal.To preempt or cancel the current goal, use the cancel_goal method.
Fill both blanks to check if the action server is ready and then send a goal.
if client.[1](): client.[2](goal)
First, wait for the action server to be ready using wait_for_server. Then send the goal with send_goal.
Fill all three blanks to cancel the current goal, wait for the server, and send a new goal.
client.[1]() if client.[2](): client.[3](goal)
First, cancel the current goal with cancel_goal. Then wait for the server using wait_for_server. Finally, send the new goal with send_goal.
