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

bool isMoving()

Returns true if the robot is following a path or turning, not necessarily if it is actually moving.

Example

thread waitForMove([]() {
    while (!wc.isMoving()) {
        wait(20, msec);
    }
    std::cout << "Robot is moving" << std::endl;
});
wc.driveTo(12, 12);