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

particle cloud spreads out

asked 2021-10-10 04:38:46 -0500

harish556 gravatar image

updated 2021-10-10 13:22:03 -0500

when using navigation stack the pose array are going everywhere I am not getting which parameter has to be tuned to make it narrower

amcl

<?xml version="1.0"?>
<launch>

  <!-- Map server -->
  <arg name="map_file" default="$(find udacity_bot)/maps/jackal_race.yaml"/>
  <node name="map_server" pkg="map_server" type="map_server" args="$(arg map_file)" />

  <!-- Localization-->
  <node pkg="amcl" type="amcl" name="amcl" output="screen">
    <remap from="scan" to="udacity_bot/laser/scan"/>
    <param name="odom_frame_id" value="odom"/>
    <param name="odom_model_type" value="diff-corrected"/>
    <param name="base_frame_id" value="robot_footprint"/>
    <param name="global_frame_id" value="map"/>
    <param name="min_particles"  value="300"/>
    <param name="max_particles"   value="3000"/>
    <param name="kld_err" value="0.01"/>
    <param name="transform_tolerance"  value="1"/>
    <param name="recovery_alpha_slow " value="0.001"/>
    <param name="recovery_alpha_fast" value="0.1"/>
   </node>

<!-- Move base -->
  <node pkg="move_base" type="move_base" respawn="false" name="move_base" output="screen">

    <rosparam file="$(find udacity_bot)/config/costmap_common_params.yaml" command="load" ns="global_costmap" />
    <rosparam file="$(find udacity_bot)/config/costmap_common_params.yaml" command="load" ns="local_costmap" />
    <rosparam file="$(find udacity_bot)/config/local_costmap_params.yaml" command="load" />
    <rosparam file="$(find udacity_bot)/config/global_costmap_params.yaml" command="load" />
    <rosparam file="$(find udacity_bot)/config/base_local_planner_params.yaml" command="load" />

    <remap from="cmd_vel" to="cmd_vel"/>
    <remap from="odom" to="odom"/>
    <remap from="scan" to="udacity_bot/laser/scan"/>

    <param name="base_global_planner" type="string" value="navfn/NavfnROS" />
    <param name="base_local_planner" value="base_local_planner/TrajectoryPlannerROS"/>
  </node>


</launch>

and cost map common

map_type: costmap

obstacle_range: 1.0
raytrace_range: 1.0

transform_tolerance: 10
update_frequency : 10
publish_frequency: 10
inflation_radius: 1.0

observation_sources: laser_scan_sensor

laser_scan_sensor: {sensor_frame: hokuyo, data_type: LaserScan, topic: /udacity_bot/laser/scan, marking: true, clearing: true}
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-10-10 13:35:01 -0500

Rick Armstrong gravatar image

I found this to be helpful, back when I first started using AMCL: Basic Navigation Tuning Guide .

edit flag offensive delete link more

Comments

thanks that worked

harish556 gravatar image harish556  ( 2021-10-11 06:04:46 -0500 )edit

What worked?

gvdhoorn gravatar image gvdhoorn  ( 2021-10-11 09:03:40 -0500 )edit

@gvdhoom I mine I have added odometry model parameters and tuned a bit it worked

harish556 gravatar image harish556  ( 2021-10-11 09:17:30 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2021-10-10 04:38:46 -0500

Seen: 95 times

Last updated: Oct 10 '21