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

void setPos(PVector pos, double angle)

Sets the position of the robot to the given position and angle.

Parameters

  • pos - The position to set the robot to.
  • angle - The angle to set the robot to.

Example

positioner.setPos(PVector(0, 0), 0);

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