-
Notifications
You must be signed in to change notification settings - Fork 546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inefficient Planning #36
Comments
Hi @TwoBit01, sorry for the late response, I was traveling the last 2 weeks. Which distritbution are you are using? Indigo, kinetic? Can you please clone the most recent kinetic code (either if you are on indigo, jade or kinetic) and test if the same behavior occurs. The issue might be related to the initialization of the trajectory leading to a different local minimum. |
Hey Christoph, Im using navgraph to navigate through fixed global paths in the environment. Im calculating for each next navigation point the orientation and pass it as a goal to the move_base:
Always checked the orientation when this problem occurred, but the last vector was pointing always to the next nav point, as it should. |
Hi, |
Hi, |
Hi,
im currently working with TEB and a tricycle drive. TEB is most of the time working very good and driving the best solution. But sometimes, I could not determine why, he is planning and executing the inefficient way you could think of. Here an example of what i mean:
So the current goal is Node 1108 and the heading is in the same direction as the robot. So the best solution would be to drive straight forward, but teb is planning and executing a solution with two turns. I decreased the tolerances, checked the influence of the weight parameters and changed min_turning_radius, also like vel_theta and nothing worked.
Here my default config parameters:
`TebLocalPlannerROS:
odom_topic: agv_1/odom
Trajectory
teb_autosize: True
dt_ref: 0.275
dt_hysteresis: 0.1
global_plan_overwrite_orientation: true
allow_init_with_backwards_motion: true
max_global_plan_lookahead_dist: 5.0
feasibility_check_no_poses: 5
global_plan_viapoint_sep: -0.1
via_points_ordered: false
Robot
max_vel_x: 1.5
max_vel_x_backwards: 0.75
max_vel_theta: 1.0 # the angular velocity is also bounded by min_turning_radius in case of a carlike robot (r = v / omega)
max_vel_y: 0.0
acc_lim_x: 1.0
acc_lim_theta: 0.5
********************** Carlike robot parameters ********************
min_turning_radius: 0.5 # Min turning radius of the carlike robot (compute value using a model or adjust with rqt_reconfigure manually)
wheelbase: -1.204 # Wheelbase of our robot
cmd_angle_instead_rotvel: True # stage simulator takes the angle instead of the rotvel as input (twist message)
********************************************************************
footprint_model: # types: "point", "circular", "two_circles", "line", "polygon"
type: "polygon"
radius: 0.4 # for type "circular"
line_start: [-1.6, 0.0] # for type "line"
line_end: [1.440, 0.0] # for type "line"
front_offset: 0.75 # for type "two_circles"
front_radius: 0.75 # for type "two_circles"
rear_offset: 0.65 # for type "two_circles"
rear_radius: 0.65 # for type "two_circles"
vertices: [ [-1.6,-0.520], [1.440,-0.520], [1.440,0.520], [-1.6,0.520] ] # for type "polygon"
GoalTolerance
xy_goal_tolerance: 0.2
yaw_goal_tolerance: 0.05
free_goal_vel: True
Obstacles
min_obstacle_dist: 0.27 # This value must also include our robot's expansion, since footprint_model is set to "line".
include_costmap_obstacles: True
costmap_obstacles_behind_robot_dist: 1.0
obstacle_poses_affected: 5
inflation_dist: 1.2
Optimization
no_inner_iterations: 5
no_outer_iterations: 4
optimization_activate: true
optimization_verbose: false
penalty_epsilon: 0.1
weight_max_vel_x: 2
weight_max_vel_theta: 1
weight_acc_lim_x: 1
weight_acc_lim_theta: 1
weight_kinematics_nh: 1000
weight_kinematics_forward_drive: 0
weight_kinematics_turning_radius: 5
weight_optimaltime: 50
weight_obstacle: 50
weight_inflation: 0.1
weight_dynamic_obstacle: 10 # not in use yet
weight_adapt_factor: 2
Homotopy Class Planner
enable_homotopy_class_planning: True
enable_multithreading: True
simple_exploration: False
max_number_classes: 4
selection_cost_hysteresis: 1.0
selection_obst_cost_scale: 1.0
selection_alternative_time_cost: False
roadmap_graph_no_samples: 15
roadmap_graph_area_width: 5
h_signature_prescaler: 0.5
h_signature_threshold: 0.1
obstacle_keypoint_offset: 0.1
obstacle_heading_threshold: 0.45
visualize_hc_graph: False
`
Would be very happy about some advices,
Cheer Rob
The text was updated successfully, but these errors were encountered: