So I am really new to this and I am really motivated but somtimes some things in the text is just missing.
At Python for Robotics/Unit4/Exercise 4.2 I have to use thise command without knowing what it does and how to use itβ¦
I am trying real hard to solve those exercises on my own but I get really confused when somthing at the explenation is missing.
Thank you for your help guys.
Have a good one
*Also the instruction says to use numbers between 0 to 719 yet the answer use the number 1000β¦ this whole unit is verry confusing for meβ¦
Hi @daniel.cn1993,
the get_laser_summit() function basically returns the laser readings of the summit XL Robot.
And for the values 0, 719, it is referring to the indexes returned by that function.
If you have an array ['a', 'b', 'c']
, in the index 0 you have βaβ, index β1β you have βbβ, and index 2 you have βcβ.
The index is 1, but the value is b.
The same happens with the laser values in this example.
There are 720 values, so the indexes go from 0 to 719, but the values can be any number, not only values up to 720.
Please let us know if you have any further questions.