When I am debugging my webots controller in Pycharm, I noticed that a motor will have two constants: LINEAR and ROTATIONAL.
The proto for the NAO lists "RShoulderPitch" as a rotational motor (for a Hinge2Joint), but in PyCharm, the motor returned by the following code
r_shoulder_pitch = getMotor("RShoulderPitch")
has the constants as follows: LINEAR=1 and ROTATIONAL=0.
Maybe I am misunderstanding these constants, but should it not be the reverse (i.e. ROTATIONAL=1 and LINEAR=0)?
Note: A position sensor returned by
r_shoulder_pitch.getPositionSensor()
also has the following constants in PyCharm: ANGULAR=0, LINEAR=1, ROTATIONAL=0.