Advice on directional scan ranges

Good afternoon,
I am doing the python basics for robotics course and in part 2, I need to implement the front, back, left and right scan ranges, however, I am not sure how the lasers are indexed or the size of the laser array. Any advice?

Hi @janimahmood22 ,

Any advice that we give you for this question would be like revealing you the solution directly.

We expect our students to play around with the simulation and the real robot to understand how the robot works.

This is the very reason why Part 1 of the project is to “Get to know the Robot and the Environment”. That way, you will gain all the required information from what you have in front of you, instead of us handling you all the possible solutions directly.

As a robotics learner, you must have the enthusiasm to explore around how to get those information. This is been clearly taught in the course which I am aware of. Refer to your course and get the necessary information.

Launch the simulation. Move the robot around. Get the readings from the robot laser scanner.
Move the robot close to a wall on all 4 sides. Check which index values get affected when the robot has a wall on any of the sides. These are all simple exploration steps that you can do to understand what is in front of you. Try to get these information yourself. That way you will also learn basic exploration steps which will indirectly help you with diagnosing issues in the future!

Regards,
Girish