Go to the documentation of this file.
6 #define M_PI 3.14159265358979323846
12 : internal_(internal), field_(field) {}
21 ret = std::numeric_limits<float>::quiet_NaN();
37 return std::numeric_limits<double>::quiet_NaN();
39 return (
static_cast<double>(revolutions) * 2.0 *
M_PI +
static_cast<double>(radian_offset));
45 *radian_offset = std::numeric_limits<float>::quiet_NaN();
59 ret = std::numeric_limits<float>::quiet_NaN();
89 ret.
x = std::numeric_limits<float>::quiet_NaN();
90 ret.
y = std::numeric_limits<float>::quiet_NaN();
91 ret.
z = std::numeric_limits<float>::quiet_NaN();
106 ret.
w = std::numeric_limits<float>::quiet_NaN();
107 ret.
x = std::numeric_limits<float>::quiet_NaN();
108 ret.
y = std::numeric_limits<float>::quiet_NaN();
109 ret.
z = std::numeric_limits<float>::quiet_NaN();
151 return Color(r, g, b, a);
174 : internal_(other.internal_),
176 actuator_(internal_ref_),
177 mobile_(internal_ref_),
IoBank(const HebiFeedbackRef &internal, HebiFeedbackIoPinBank bank)
HebiStatusCode floatGetter(const RefT &ref, MetadataT &metadata, int field, float *value)
bool has() const
True if (and only if) the field has a value.
Structure to describe an RGB color.
bool has() const
True if (and only if) the field has a value.
FloatField(const HebiFeedbackRef &internal, HebiFeedbackFloatField field)
Structure to hold a 3-D floating point vector (i.e., x/y/z components)
@ HebiFeedbackUInt64ReceiveTime
Sequence number going to module (local)
HebiStatusCode vector3fGetter(const RefT &ref, MetadataT &metadata, int field, HebiVector3f *value)
bool hasInt(size_t pinNumber) const
True if (and only if) the particular numbered pin in this bank has an integer (e.g....
@ HebiFeedbackFloatProcessorTemperature
Ambient temperature inside the module (measured at the IMU chip)
HebiFeedbackQuaternionfField
Structure to hold a floating point quaternion (i.e., w/x/y/z components)
Vector3fField(const HebiFeedbackRef &internal, HebiFeedbackVector3fField field)
HebiStatusCode ledGetter(const RefT &ref, MetadataT &metadata, int field, uint8_t *r, uint8_t *g, uint8_t *b, uint8_t *a)
HebiFeedbackHighResAngleField
int64_t getInt(size_t pinNumber) const
If this numbered pin in this bank has an integer (e.g., digital) value, returns that value; otherwise...
HebiFeedbackPtr internal_
@ HebiFeedbackUInt64TransmitTime
Timestamp of when message was received from module (local)
struct HebiFeedback_ * HebiFeedbackPtr
The C-style's API representation of feedback.
QuaternionfField(const HebiFeedbackRef &internal, HebiFeedbackQuaternionfField field)
FloatField processor_temperature_
bool has() const
True if (and only if) the field has a value.
Color getColor() const
Returns the led color.
UInt64Field hardware_receive_time_us_
bool hasFloat(size_t pinNumber) const
True if (and only if) the particular numbered pin in this bank has an floating point (e....
bool has(size_t fieldNumber) const
True if (and only if) the particular numbered subvalue of this field has a value.
@ HebiFeedbackFloatBoardTemperature
uint64_t get() const
If the field has a value, returns that value; otherwise, returns a default.
float get(size_t fieldNumber) const
If the particular numbered subvalue of this field has a value, returns that value; otherwise returns ...
NumberedFloatField(const HebiFeedbackRef &internal, HebiFeedbackNumberedFloatField field)
UInt64Field transmit_time_us_
HebiStatusCode highResAngleGetter(const RefT &ref, MetadataT &metadata, int field, int64_t *revs, float *offset)
double get() const
If the field has a value, returns that value as a double; otherwise, returns a default.
float getFloat(size_t pinNumber) const
If this numbered pin in this bank has an floating point (e.g., analog or PWM) value,...
UInt64Field(const HebiFeedbackRef &internal, HebiFeedbackUInt64Field field)
bool has() const
True if (and only if) the field has a value.
Vector3f get() const
If the field has a value, returns that value; otherwise, returns a default.
@ HebiFeedbackNumberedFloatDebug
Feedback(HebiFeedbackPtr)
Wraps an existing C-style object that is managed by its parent. NOTE: this should not be used except ...
HebiFeedbackFloatField
Feedback Enums.
HebiFeedbackNumberedFloatField
@ HebiFeedbackUInt64HardwareReceiveTime
Timestamp of when message was transmitted to module (local)
FloatField board_temperature_
bool hasColor() const
Returns true if the LED color is set, and false otherwise.
HebiFeedbackRef internal_ref_
bool has() const
True if (and only if) the field has a value.
UInt64Field hardware_transmit_time_us_
void hebiFeedbackGetReference(HebiFeedbackPtr feedback, HebiFeedbackRef *ref)
Feedback API.
HebiStatusCode quaternionfGetter(const RefT &ref, MetadataT &metadata, int field, HebiQuaternionf *value)
@ HebiFeedbackUInt64HardwareTransmitTime
Timestamp of when message was received by module (remote)
HebiStatusCode intIoPinGetter(const RefT &ref, MetadataT &metadata, int index, size_t pin_number, int64_t *value)
Quaternionf get() const
If the field has a value, returns that value; otherwise, returns a default.
@ HebiFeedbackUInt64SenderId
Timestamp of when message was transmitted from module (remote)
HebiFeedbackVector3fField
HebiStatusCode uint64Getter(const RefT &ref, MetadataT &metadata, int field, uint64_t *value)
UInt64Field receive_time_us_
HebiStatusCode numberedFloatGetter(const RefT &ref, MetadataT &metadata, int field, size_t number, float *value)
LedField(const HebiFeedbackRef &internal, HebiFeedbackLedField field)
Feedback objects have various fields representing feedback from modules; which fields are populated d...
HebiStatusCode floatIoPinGetter(const RefT &ref, MetadataT &metadata, int index, size_t pin_number, float *value)
@ HebiFeedbackFloatVoltage
Temperature of the processor chip.
float get() const
If the field has a value, returns that value; otherwise, returns a default.
NumberedFloatField debug_
HighResAngleField(const HebiFeedbackRef &internal, HebiFeedbackHighResAngleField field)
hebi_cpp_api_ros
Author(s): Chris Bollinger
, Matthew Tesch
autogenerated on Fri Aug 2 2024 08:35:18