Skip to main content Link Menu Expand (external link) Document Search Copy Copied

PVector position()

Returns the position of the robot.

Returns

A PVector containing the position of the robot.

Example

positioner.setPos(PVector(0, 0), 0);
cout << positioner.position() << endl;
// Prints [0, 0, 0]