ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

DWA Cannot control at reasonable rate (controller_frequency)

asked 2018-01-01 23:35:02 -0500

updated 2018-01-01 23:52:13 -0500

jayess gravatar image

When I set my DWA controller_frequency in move base params above 7.0 Hz, I get the behavior below and the robot does not move. I see the default is 20Hz, Any thoughts on potential causes? I have near-vanilla DWA params for the turtlebot in use and my velocity smoother accepts at 60 hz. I included my local planner yaml file below as well.

I'm running an i5 computer on my turtlebot.

Behavior is: Control loop missed its desired rate of 20.0000z, Got new plan, DWA planner failed to produce path., Got new plan, DWA planner failed to produce path., etc over and over

DWAPlannerROS:
  max_vel_x: 0.55# 0.55
  min_vel_x: 0.0 
  max_vel_y: 0.0# diff drive robot
  min_vel_y: 0.0# diff drive robot
  max_trans_vel: 0.5 # choose slightly less than the base's capability
  min_trans_vel: 0.1# this is the min trans velocity when there is negligible rotational velocity
  trans_stopped_vel: 0.1
  max_rot_vel: 5.0# choose slightly less than the base's capability
  min_rot_vel: 0.4# this is the min angular velocity when there is negligible translational velocity
  rot_stopped_vel: 0.4
  acc_lim_x: 1. # maximum is theoretically 2.0, but we go to 1.5 (now 1.)
  acc_lim_theta: 2.0
  acc_lim_y: 0.0# diff drive robot
  yaw_goal_tolerance: 0.10#0.3# 0.05
  xy_goal_tolerance: 0.10 #0.15
  # latch_xy_goal_tolerance: false
  sim_time: 1.7 # 1.0 from 1.7. 2. ok. 2.5+bad
  vx_samples: 20 # from 6 default 3
  vy_samples: 1 # diff drive robot, there is only one sample, but to be safe --Steve
  vtheta_samples: 40# 20
  path_distance_bias: 564.0 # 64. - weighting for how much it should stick to the global path plan
  goal_distance_bias: 24.0# 24.0 - wighting for how much it should attempt to reach its goal
  occdist_scale: 0.5# 0.01 - weighting for how much the controller should avoid obstacles
  forward_point_distance: 0.325 # 0.325- how far along to place an additional scoring point
  stop_time_buffer: 0.2 # 0.2- amount of time a robot must stop in before colliding for a valid traj.
  scaling_speed: 0.25 # 0.25 - absolute velocity at which to start scaling the robot's footprint
  max_scaling_factor: 0.2 # 0.2- how much to scale the robot's footprint when at speed.
  oscillation_reset_dist: 0.05
edit retag flag offensive close merge delete

Comments

Can you please copy and paste the error that you're receiving?

jayess gravatar image jayess  ( 2018-01-01 23:54:43 -0500 )edit

The error is:

Control loop missed its desired rate of 20.0000z.. actual loop took XYZ seconds.

Got new plan

DWA planner failed to produce path.

Got new plan

DWA planner failed to produce path.

over and over

stevemacenski gravatar image stevemacenski  ( 2018-01-02 00:00:06 -0500 )edit

Control loop missed its desired rate of 20.0000z.. actual loop took XYZ seconds

Is that literally (copy and paste of) the error that you received?

jayess gravatar image jayess  ( 2018-01-02 00:03:45 -0500 )edit

I found the cause of this, months later. It was from the robot state publisher not publishing fast enough for TF to make new transformations for DWA. I.e. I had it set at 10hz, so I cannot exceed that in DWA control.

stevemacenski gravatar image stevemacenski  ( 2018-03-10 16:03:27 -0500 )edit

Could you please post your solution as an answer?

jayess gravatar image jayess  ( 2018-03-10 17:24:24 -0500 )edit

I dont have enough points to reopen in order to move that comment into an answer

stevemacenski gravatar image stevemacenski  ( 2018-03-10 17:41:16 -0500 )edit

I reopened it for you. Next time, instead of closing a question you can leave an answer

jayess gravatar image jayess  ( 2018-03-10 17:59:30 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-03-10 18:07:02 -0500

I found the cause of this, months later. It was from the robot state publisher not publishing fast enough for TF to make new transformations for DWA. I.e. I had it set at 10hz, so I cannot exceed that in DWA control.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-01-01 23:35:02 -0500

Seen: 910 times

Last updated: Mar 10 '18