6#define _USE_MATH_DEFINES
23#define DEG2RAD M_PI/180.0
42 std::enable_if_t<!std::is_trivial<T>::value,
int> = 0>
96 yCError(
FAKE_LASER_MOTORS) <<
"positionMoveRaw: skipping command because joint " <<
j <<
" is not in VOCAB_CM_POSITION mode";
121 yCError(
FAKE_LASER_MOTORS) <<
"relativeMoveRaw: skipping command because joint " <<
j <<
" is not in VOCAB_CM_POSITION mode";
531 "this call is for reference only and may not reflect the actual behaviour of the motor/firmware.";
549 for (
int i = 0;
i < nj;
i++)
565 yCError(
FAKE_LASER_MOTORS) <<
"velocityMoveRaw: skipping command because board " <<
" joint " <<
j <<
" is not in VOCAB_CM_VELOCITY mode";
609 for (
int i = 0;
i < nj;
i++)
void checkAndDestroy(T *&p)
void checkAndDestroy(T *&p)
const yarp::os::LogComponent & FAKE_LASER_MOTORS()
T * allocAndCheck(int size)
constexpr yarp::conf::vocab32_t VOCAB_CM_MIXED
constexpr yarp::conf::vocab32_t VOCAB_CM_IMPEDANCE_VEL
constexpr yarp::conf::vocab32_t VOCAB_CM_IDLE
constexpr yarp::conf::vocab32_t VOCAB_CM_POSITION
constexpr yarp::conf::vocab32_t VOCAB_CM_IMPEDANCE_POS
constexpr yarp::conf::vocab32_t VOCAB_CM_VELOCITY
constexpr yarp::conf::vocab32_t VOCAB_CM_FORCE_IDLE
bool setRefSpeedsRaw(const double *spds) override
Set reference speed on all joints.
bool stopRaw() override
Stop motion, multiple joints.
bool getEncodersTimedRaw(double *encs, double *stamps) override
Read the instantaneous acceleration of all axes.
bool getEncodersRaw(double *encs) override
Read the position of all axes.
bool getTargetPositionRaw(const int joint, double *ref) override
Get the last position reference for the specified axis.
double * _posCtrl_references
bool getEncoderSpeedsRaw(double *spds) override
Read the instantaneous acceleration of an axis.
bool setEncodersRaw(const double *vals) override
Set the value of all encoders.
bool getRefSpeedsRaw(double *spds) override
Get reference speed of all joints.
bool getJointTypeRaw(int axis, yarp::dev::JointTypeEnum &type) override
bool setControlModesRaw(const int n_joint, const int *joints, int *modes) override
bool resetEncoderRaw(int j) override
Reset encoder, single joint.
bool checkMotionDoneRaw(bool *flag) override
Check if the current trajectory is terminated.
bool getControlModesRaw(int *v) override
bool positionMoveRaw(int j, double ref) override
Set new reference point for a single axis.
bool getRefAccelerationsRaw(double *accs) override
Get reference acceleration of all joints.
bool getEncoderRaw(int j, double *v) override
Read the value of an encoder.
bool getEncoderTimedRaw(int j, double *encs, double *stamp) override
Read the instantaneous acceleration of all axes.
bool getTargetPositionsRaw(double *refs) override
Get the last position reference for all axes.
bool getControlModeRaw(int j, int *v) override
bool getEncoderSpeedRaw(int j, double *sp) override
Read the instantaneous speed of an axis.
bool getRefVelocityRaw(const int joint, double *ref) override
Get the last reference speed set by velocityMove for single joint.
bool getAxisNameRaw(int axis, std::string &name) override
bool resetEncodersRaw() override
Reset encoders.
bool setRefSpeedRaw(int j, double sp) override
Set reference speed for a joint, this is the speed used during the interpolation of the trajectory.
bool setRefAccelerationRaw(int j, double acc) override
Set reference acceleration for a joint.
bool getRefAccelerationRaw(int j, double *acc) override
Get reference acceleration for a joint.
bool relativeMoveRaw(int j, double delta) override
Set relative position.
bool getRefVelocitiesRaw(double *refs) override
Get the last reference speed set by velocityMove for all joints.
yarp::dev::JointTypeEnum * _jointType
bool getEncoderAccelerationsRaw(double *accs) override
Read the instantaneous acceleration of all axes.
bool setEncoderRaw(int j, double val) override
Set the value of the encoder for a given joint.
bool getEncoderAccelerationRaw(int j, double *spds) override
Read the instantaneous acceleration of an axis.
bool velocityMoveRaw(int j, double sp) override
Start motion at a given speed, single joint.
bool setRefAccelerationsRaw(const double *accs) override
Set reference acceleration on all joints.
bool getAxes(int *ax) override
Get the number of controlled axes.
bool getRefSpeedRaw(int j, double *ref) override
Get reference speed for a joint.
bool setControlModeRaw(const int j, const int mode) override
yarp::os::Stamp m_timestamp
bool NOT_YET_IMPLEMENTED(const char *func=0)
Helper for printing error message, see below.
A mini-server for performing network communication in the background.
double getTime() const
Get the time stamp.
#define yCError(component,...)
#define yCWarning(component,...)
#define yCDebug(component,...)
#define YARP_LOG_COMPONENT(name,...)
The main, catch-all namespace for YARP.