I am trying to understand a sample code in Webots (robot simulation program).
I have faced this code :
Servo rightShoulderPitch = getServo("RShoulderPitch");
rightShoulderPitch.setPosition(1.5);
I do not understand what is meat by the first line. It look like that "rightShoulderPitch" is an object of Servo class but it is not created as usual and how 'getServo' (i think it is a method) comes here .
This class's header is, if it helps:
public class FieldPlayer extends Robot {
Also it has description by the company in the reference manual, but I could not understand what they mean. It can be found here search for getservo.
--- RShoulderPitch: is the name of the shoulder of the robot
I will appriceite help very much.
Thanks