These are functions to get information about the robot structure.
Returns the number of legs of the robot.
Returns the number of the leg that is at the right of leg n or, what is the same, the leg that is next to leg n anti-clockwise (from a top view of the robot).
Returns the number of the leg that is at the left (i.e., next clockwise) of leg n.