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

Robot rotates before or as it reaches goal

asked 2015-09-29 14:30:48 -0500

miguel gravatar image

updated 2015-09-29 14:40:16 -0500

Hi all,

I have a question regarding my robot rotating often while using frontier exploration, also it rotates just before it reaches the goal?

also the costmap does mark and clear with the laser scan (asus xtion- depthimage_to_laserscan) but the ultrasonic sensor does not mark or clear the costmap?

(based on husky exploration)

Is there anything wrong with the configuration??


footprint: [[-0.230,-0.16],[-0.230, 0.16],[0.230,0.16],[0.23,-0.16]]
footprint_padding: 0.01

robot_base_frame: base_link
update_frequency: 3.0
publish_frequency: 2.0
transform_tolerance: 0.5

resolution: 0.099

obstacle_range: 1.5
raytrace_range: 1.5

#layer definitions
    map_topic: /map
    subscribe_to_updates: true

    observation_sources: laser
    laser: {data_type: LaserScan, clearing: true, marking: true, topic: scan, inf_is_valid: true}
    expected_update_rate: 0.07

    inflation_radius: 0.05
 expected_update_rate: 0.125
 clear_threshold:     0.1
 mark_threshold:      0.1
 no_readings_timeout: 0.2
 topics: ["/ultrasound1"]


track_unknown_space: true
global_frame: map
rolling_window: false

- {name: external,            type: "costmap_2d::StaticLayer"}
- {name: explore_boundary,    type: "frontier_exploration::BoundedExploreLayer"}
#Can disable sensor layer if gmapping is fast enough to update scans
- {name: obstacles_laser,     type: "costmap_2d::ObstacleLayer"}
- {name: inflation,           type: "costmap_2d::InflationLayer"}

  resize_to_boundary: false
  frontier_travel_point: middle
  #set to false for gmapping, true if re-exploring a known area
  explore_clear_space: false


global_frame: odom
rolling_window: true

  - {name: obstacles_laser,           type: "costmap_2d::ObstacleLayer"}
  - {name: range_sensor_layer, type: "range_sensor_layer::RangeSensorLayer"}
  - {name: inflation,                 type: "costmap_2d::InflationLayer"}


global_frame: odom
rolling_window: true

  - {name: obstacles_laser,           type: "costmap_2d::ObstacleLayer"}
  - {name: range_sensor_layer, type: "range_sensor_layer::RangeSensorLayer"}
  - {name: inflation,                 type: "costmap_2d::InflationLayer"}


recovery_behaviour_enabled: true

  allow_unknown: true # Specifies whether or not to allow navfn to create plans that traverse unknown space.
  default_tolerance: 0.5 # A tolerance on the goal point for the planner.

  # Robot Configuration Parameters
  acc_lim_x: 15.0
  acc_lim_theta:  15.0

  max_vel_x: 0.15
  min_vel_x: 0.8

  max_vel_theta: 0.5
  min_vel_theta: -0.5
  min_in_place_vel_theta: 0.7

  holonomic_robot: false
  escape_vel: -0.2

  # Goal Tolerance Parameters
  yaw_goal_tolerance: 0.2
  xy_goal_tolerance: 0.3
  latch_xy_goal_tolerance: false

  # Forward Simulation Parameters
  sim_time: 1.0
  sim_granularity: 0.02
  angular_sim_granularity: 0.02
  vx_samples: 6
  vtheta_samples: 20
  penalize_negative_x: true
  controller_frequency: 7.0

  # Trajectory scoring parameters
  meter_scoring: true # Whether the gdist_scale and pdist_scale parameters should assume that goal_distance and path_distance are expressed in units of meters or cells. Cells are assumed by default (false).

  occdist_scale:  0.01 #The weighting for how much the controller should attempt to avoid obstacles. default was0.5

  pdist_scale: 0.4  #     The weighting for how much the controller should stay close to the path it was given . default 0.6

  gdist_scale: 0.8 #     The weighting for how much the controller should attempt to reach its local goal, also controls speed  default 0.8

  heading_lookahead: 0.25  #How far to look ahead in meters when scoring different in-place-rotation trajectories

  heading_scoring: true  #Whether to score based on the robot's heading to the path or its distance from the path. default false

  heading_scoring_timestep: 0.8   #How far to look ahead in time in seconds along the simulated trajectory when using heading scoring (double, default: 0.8)

  dwa: false ...
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-10-01 23:09:52 -0500

miguel gravatar image

I Solved the issue, the acceleration limits in the trajectory planner were too high. Once they were decreased and find tuned to give the best robot movement robot does not rotate anymore.

edit flag offensive delete link more

answered 2015-09-29 15:30:37 -0500

duck-development gravatar image

have the robot the target orientation of the target? same orientaion as the green goal Arrow? if not the robot rotatis until it is so.

edit flag offensive delete link more

Question Tools



Asked: 2015-09-29 14:30:48 -0500

Seen: 559 times

Last updated: Oct 01 '15