# \[Question\] Robot Localization

**URL:** <https://get-help.theconstruct.ai/t/question-robot-localization/2832>\
**Category:** Robot Localization With Sensor Data\
**Tags:** howto\
**Created:** [March 30, 2020, 1:33pm UTC](https://get-help.theconstruct.ai/t/question-robot-localization/2832 "2020-03-30T13:33:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![putienkosanerok](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/putienkosanerok/32/10_2.png) [@putienkosanerok](https://get-help.theconstruct.ai/u/putienkosanerok)\
**Post date:** [March 30, 2020, 1:33pm UTC](https://get-help.theconstruct.ai/t/question-robot-localization/2832/1 "2020-03-30T13:33:43Z")

</div>

Hello community, I would like to create my own robot based on the information I got from the Ignite Academy.  
My robot should be able to drive indoors ( for example garage) and outdoors (for example area near the garage).

- I would like to use Map Server for providing a map.
- I would like to use Kinect and convert data to fake laser data (instead of using Lidar).  
Also have (GPS module, IMU sensors, Wheel encoders, Sonars).  
I provide all necessary information for AMCL node.  
Then I plan to use robot\_localization package and fuse IMU data, Wheel odometry data , AMCL pose data and get /odometry/filtered. Than I plan to use TEB local planner and get /cmd\_vel.

My question is - Can I use GPS for localization outdoors and at the same time map for localization indoors?  
Should I just provide previously builded map and fuse GPS data after transformation using navsat\_transtormation\_node with all other odometry data in the robot\_localization package?  
Or I misunderstand it and there is any other way to do it?

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![duckfrost2](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/duckfrost2/32/9365_2.png) [@duckfrost2](https://get-help.theconstruct.ai/u/duckfrost2)\
**Post date:** [April 1, 2020, 8:39am UTC](https://get-help.theconstruct.ai/t/question-robot-localization/2832/3 "2020-04-01T08:39:37Z")

</div>

Hi,

Very good question.  
In theory you can merge the extracted data from the nav\_gps\_transform into the localization system , with the amcl dat and the sensor data to have a beter navigation.

Another option is to alternate between navigation with amcl or gps depending on the environment. If you have a map of the envronment, then use the amcl, if not ( normalyoutdoors then use the gps style navigation.

You can do both. As you wish
