16#define round(x) ((x) >= 0 ? (int)((x) + 0.5) : (int)((x)-0.5))
17#define FABS(x) (x >= 0 ? x : -x)
21#define PONTECHSV203X 3
22#define MONDOTRONICSMI 4
72 bool stop(
int j)
override;
84 bool close()
override;
define control board standard interfaces
bool movemondotronic(int j, double ref, double *positions, double *speeds, ISerialDevice *serial)
bool movepontech(int j, double ref, double *positions, double *speeds, ISerialDevice *serial)
bool movepicopic(int j, double ref, double *positions, double *speeds, ISerialDevice *serial)
bool movepololu(int j, double ref, double *positions, double *speeds, ISerialDevice *serial)
bool movessc32(int j, double ref, double *positions, double *speeds, ISerialDevice *serial)
bool moveminissc(int j, double ref, double *positions, double *speeds, ISerialDevice *serial)
SerialServoBoard: Documentation to be added
bool getRefSpeed(int j, double *ref) override
Get reference speed for a joint.
bool(* move)(int j, double ref, double *positions, double *speeds, ISerialDevice *serial)
bool checkMotionDone(int j, bool *flag) override
Check if the current trajectory is terminated.
bool getRefAccelerations(double *accs) override
Get reference acceleration of all joints.
bool getRefAcceleration(int j, double *acc) override
Get reference acceleration for a joint.
bool getAxes(int *ax) override
Get the number of controlled axes.
bool close() override
Close the DeviceDriver.
bool setRefSpeeds(const double *spds) override
Set reference speed on all joints.
bool getRefSpeeds(double *spds) override
Get reference speed of all joints.
bool setRefSpeed(int j, double sp) override
Set reference speed for a joint, this is the speed used during the interpolation of the trajectory.
bool open(Searchable &config) override
Open the DeviceDriver.
bool stop() override
Stop motion, multiple joints.
bool setRefAcceleration(int j, double acc) override
Set reference acceleration for a joint.
bool positionMove(int j, double ref) override
Set new reference point for a single axis.
bool setRefAccelerations(const double *accs) override
Set reference acceleration on all joints.
bool relativeMove(int j, double delta) override
Set relative position.
Interface implemented by all device drivers.
Interface for a generic control board device implementing position control.
A generic interface to serial port devices.
A container for a device driver.
A mini-server for performing network communication in the background.
A base class for nested structures that can be searched.
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.