Configure move_base using ONLY hector_mapping
Hello everyone,
First of all, i want to apologyze if i make any syntax flaws, i dont usually write English.
I am new to ROS and i'm trying to develop a little autonomous car with the only sensor RPLidar.
I'm trying to configurate Navigation Stack pkg using only hector_mapping
since i dont have IMU or other sensors that give odometry of the car. I have read multiple posts where people try the to do the same, and they finally get it but unlucky they dont explain how.
I've read that hector_mapping can publish odometry using the following arg: pub_map_odom_transform
to True
also it can be published using the undocumented param: pub_odometry
in the topic: scanmatcher_frame
I've already configured hector_slam
to record and save a map with map_saver
. And configured hector_mapping
with the params mentioned above. Checking the topic list i see that hector_mapping is publishing in the topics: poseupdate
, slam_out_pose
, tf
, scanmatcher_frame
and map
The first question, which topic contains the odometry that move_base will use to work?
I,ve read that is tf
but i've doubts.
I have also read that you dont need to use AMCL
if you are using hector_mapping
to run Navigation stack
, am i wrong?
Assuming that for now everything is fine, the errors must be in the params .yaml files i am using to configure move_base. I dont really know how to fill all the args properly. I am going to paste the code of each one and ask the doubts i have:
base_local_planner_params.yaml
TrajectoryPlannerROS:
max_vel_x: 0.45
min_vel_x: 0.1
max_vel_theta: 1.0
min_in_place_vel_theta: 0.4
acc_lim_theta: 3.2
acc_lim_x: 2.5
acc_lim_y: 2.5
holonomic_robot: true
costmap_common_params.yaml
obstacle_range: 2.5
raytrace_range: 3.0
footprint: [[-0.31, -0.69], [-0.31, 0.25], [0.31, 0.25], [0.31, -0.69]]
#robot_radius: ir_of_robot
inflation_radius: 0.55
observation_sources: laser_scan_sensor
laser_scan_sensor: {sensor_frame: laser_frame, data_type: LaserScan, topic: scan, marking: true, clearing: true}
The footprint
arg i dont really know what means, may someone explain it please? I have just copied some values i have seen in other post.
global_costmap_params.yaml
global_costmap:
global_frame: map
robot_base_frame: base_link
update_frequency: 5.0
static_map: true
local_costmap_params.yaml
local_costmap:
global_frame: odom
robot_base_frame: base_link
update_frequency: 5.0
publish_frequency: 2.0
static_map: false
rolling_window: true
width: 6.0
height: 6.0
resolution: 0.05
When i run the launch file of the move_base:
<launch>
<node pkg="move_base" type="move_base" respawn="false" name="move_base" output="screen">
<rosparam file="$(find miniduvis)/cfg/costmap_common_params.yaml" command="load" ns="global_costmap" />
<rosparam file="$(find miniduvis)/cfg/costmap_common_params.yaml" command="load" ns="local_costmap" />
<rosparam file="$(find miniduvis)/cfg/local_costmap_params.yaml" command="load" />
<rosparam file="$(find miniduvis)/cfg/global_costmap_params.yaml" command="load" />
<rosparam file="$(find miniduvis)/cfg/base_local_planner_params.yaml" command="load" />
</node>
</launch>
I get the following errors/ warnings and nothing is being published in cmd_vel
topic:
[ WARN] [1579353283.210167580]: Timed out waiting for transform from base_link to odom to become available before running costmap, tf ...
Hi jjggmm,
I am currently making a robot car that is similar if not the same as the one you stated above. I too am using an RPLIDAR and only Hector Slam for the navigation. My .yaml files and the hector_mapping launch file is similar if not the same as yours as well.
I also read the answers/comments you had with Namal. However, I still can't get my robot to move when after using the 2D Pose Estimate and 2D Nav Goal on RVIZ. When I use echo to see the cmd_vel topic, nothing shows up.
I was wondering if you don't mind telling me what you did to get your robot to work?
Thanks!
hi, if you have finally solved it and completed integrating move base with hector slam using only lidar can you tell me the steps that you went through (i finished mapping on rviz using hector slam ) any help will be appreciated