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

Is it possible to change the initial position of the /map frame in order to match the actual starting robot position in gazebo (and the local costmap)?

asked 2020-02-28 06:51:33 -0600

smarn gravatar image

updated 2022-01-22 16:10:23 -0600

Evgeny gravatar image

Hello everybody, this is my first question :)

So, i just started using the husky_navigation package in order to simulate and navigate the Husky a200 in a field. I work on melodic. After I used gmapping to create the field's map, I am using amcl.launch of the same package to perform the autonomous planning

From what I understand in order to align the local and global costmaps, it is necessary to spawn the robot at the same location where the mapping process has begun.

My question is, is there an accurate after spawning the husky at a different location in the world scene and initializing the amcl.launch to calibrate the /map frame in order to match the actual location in the world scene?

I hope as a question it doesn't deviate a lot from logic.

My quest is that this can be resolved somehow with the use of gps.

Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-03-09 06:28:18 -0600

Delb gravatar image

My question is, is there an accurate after spawning the husky at a different location in the world scene and initializing the amcl.launch to calibrate the /map frame in order to match the actual location in the world scene?

I'm not sure to understand what you mean here.

it is necessary to spawn the robot at the same location where the mapping process has begun.

You are not forced to do so, but if you do know where you spawn your robot you can tell it to AMCL using the topic /initialpose that the AMCL node is subscribing to (you can set it from the launch file or publish it with rostopic or Rviz). You will find an accurate localization faster if you specify a good estimation of the initial pose, but if you don't it's still the function of the ACML to find where your robot is so it might just take more time to have the particule filter to converge. What is happening when you set the intialpose is that you initialize the particle filter around this position.

edit flag offensive delete link more

Comments

Thank you, after a little studying on kalman filters I think i get it now.

smarn gravatar image smarn  ( 2020-03-27 09:53:43 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2020-02-28 06:51:33 -0600

Seen: 1,353 times

Last updated: Mar 09 '20