Ask Your Question
0

Using Hector_SLAM to get odom for autonomous navigation

asked 2019-06-01 04:02:22 -0500

parzival gravatar image

updated 2019-06-09 13:53:44 -0500

My aim is to implement autonomous navigation using hector_slam.

I have an RPLidar, through which I get Laser scan, and I can see the real time position of the lidar in rViz. I need to know how can I use this information and serve it as odom to move_base, or base_local_planner to be precise. /odom is of type nav_msgs/odometry while /slam_out_pose is of type geometry_msgs/posestamped and /poseupdate is of type geometry_msgs/posewithcovariancestamped.

I have read that hector_slam is a good approach in absence of odometry information. But could not find any source on how to implement it. Again, the answer to my specific question might not be the one I'm looking for. So please help me to implement autonomous navigation.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-06-10 03:51:12 -0500

vbs gravatar image

You can set the pub_odometry parameter of hector_slam to true to get the nav_msgs/odometry messages being published in the "scanmatch_odom" topic.

It's not documented in the ROS API description, but you can see it from the source code.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2019-06-01 04:02:22 -0500

Seen: 481 times

Last updated: Jun 10