How does the bot know its own position when mapping?

I’m sorry if this sounds like a dumb question. But I don’t understand how the bot is calculating its postion, as it does not have its own GPS. It has a Lidar and encoders which will give us odometry data. But only with this, how can it know its position? How does path planning take place if there is no gps.
I saw it has wifi module inside and read somewhere that wifi can be used to track position. If that is the case can someone tell me how it does that exactly?
Thanks in advance.

Hi paresh,

We use very popular in robotics SLAM. You can read more about it here.

If you will follow our ROS tutorials step by step, you will receive answers for all your questions.

Best regards,
Hubert