Complete the code to import the DWA local planner plugin in ROS.
#include <[1]/DWAPlannerROS.h>
The DWA local planner plugin is included with dwa_local_planner header.
Complete the code to initialize the TEB local planner in a ROS node.
teb_local_planner::TebLocalPlannerROS planner; planner.[1]("TebLocalPlannerROS", &tf_listener, &costmap_ros);
configure instead of initialize.start which is not a planner method.The initialize method is used to set up the TEB local planner with necessary parameters.
Fix the error in the code to compute velocity commands using the DWA planner.
geometry_msgs::Twist cmd_vel; if (!planner.[1](global_plan, cmd_vel)) { ROS_WARN("Failed to compute velocity command"); }
The correct method to compute velocity commands in DWA planner is computeVelocityCommands.
Fill both blanks to create a ROS parameter server call to set the TEB planner's max velocity and acceleration.
ros::NodeHandle nh; nh.setParam("[1]/max_vel_x", max_vel); nh.setParam("[2]/acc_lim_x", max_acc);
Both parameters belong to the teb_local_planner namespace in ROS parameter server.
Fill all three blanks to create a ROS launch snippet that loads the DWA local planner plugin, sets the controller frequency, and enables oscillation reset.
<node pkg="move_base" type="move_base" name="move_base" output="screen"> <param name="base_local_planner" value="[1]" /> <param name="controller_frequency" value="[2]" /> <param name="oscillation_reset_dist" value="[3]" /> </node>
The DWA planner plugin is dwa_local_planner/DWAPlannerROS, the controller frequency is typically set to 10.0 Hz, and oscillation reset distance is commonly 0.05 meters.
