![]() |
BoB robotics
The Brains on Board robotics library
|
An interface for the robot gantry system at the University of Sussex. More...
#include <gantry.h>
Public Member Functions | |
Gantry (BYTE boardId=0) | |
Open the PCI device and set drive parameters. | |
void | raiseAndHome () |
Returns the gantry to its home position, raising the gantry head first. More... | |
void | home (BYTE axis=XYZ_Axis) const |
Returns the gantry to its home position. More... | |
bool | isEmergencyButtonPressed () const |
Check if either of the emergency buttons are pressed down. | |
Vector3< millimeter_t > | getPosition () const |
Get the current position of the gantry in the arena. | |
std::array< meters_per_second_t, 3 > | getVelocity () |
Get the gantry's current velocity. | |
void | setPosition (millimeter_t x, millimeter_t y, millimeter_t z) |
Set the position of the gantry in the arena. More... | |
void | stopMoving (BYTE axis=XYZ_Axis) const noexcept |
Stop the gantry moving, optionally specifying a specific axis. | |
bool | isMoving (BYTE axis=XYZ_Axis) const |
Check if the gantry is moving. | |
void | waitToStopMoving (BYTE axis=XYZ_Axis) const |
Wait until the gantry has stopped moving. | |
An interface for the robot gantry system at the University of Sussex.
|
inline |
Returns the gantry to its home position.
!
Home position is (0, 0, 0). The gantry needs to be homed before use so that it can reset its estimate of its position. This function does not block.
|
inline |
Returns the gantry to its home position, raising the gantry head first.
!
Home position is (0, 0, 0). The robot gantry will be raised before homing so that it does not collide with objects in the arena. The gantry needs to be homed before use so that it can reset its estimate of its position. This function blocks until the gantry is homed.
|
inline |
Set the position of the gantry in the arena.
!
This function does not block.