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

How to change initial position of robot in outdoor navigation?

asked 2022-01-23 03:50:33 -0500

mkvk123123 gravatar image

updated 2022-02-13 16:49:43 -0500

lucasw gravatar image

I want to navigate my robot in outdoor environment using gps. I have created 2 different ekf nodes. ekf_local is used to generate tf for odom->base_link and ekf_global generates tf for map->odom. I want to set initial position of robot in map frame. I tried set_pose_ekf but robot switches back to its default location i.e. map origin.Navsat workflow

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2022-01-24 15:39:59 -0500

osilva gravatar image

Please take a look at prior answer, it has a very good explanation:

https://answers.ros.org/question/2584...

All set_pose is doing is sending your robot to the location you send it. If you then give it measurements that tell it that it is somewhere else, it's going to jump back.

edit flag offensive delete link more

Comments

I am able to set the initial pose by setting initial_state in my ekf_global node. But I am not able to set orientation. Can you help me with that?

mkvk123123 gravatar image mkvk123123  ( 2022-01-25 06:29:58 -0500 )edit

Just to clarify, the answer helped you set the initial pose and you are asking additionally how to set orientation. Important to know so future users understand when reading this thread

osilva gravatar image osilva  ( 2022-01-25 06:40:07 -0500 )edit

I got it figured out myself before your answer and orientation is also part of initial pose.Thanks by the way.

mkvk123123 gravatar image mkvk123123  ( 2022-01-25 09:52:32 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2022-01-23 03:48:08 -0500

Seen: 173 times

Last updated: Jan 24 '22