Go to the documentation of this file.
14 ret = std::numeric_limits<float>::quiet_NaN();
30 return std::numeric_limits<double>::quiet_NaN();
32 return (
static_cast<double>(revolutions) * 2.0 *
M_PI +
static_cast<double>(radian_offset));
38 *radian_offset = std::numeric_limits<float>::quiet_NaN();
49 return static_cast<bool>(ret);
65 auto buffer =
new char[length];
67 std::string tmp(buffer, length - 1);
90 return Color(r, g, b, a);
103 : internal_(other.internal_),
104 settings_(internal_, internal_ref_),
105 actuator_(internal_ref_),
bool has() const
Returns true if the flag is set, false if it is cleared.
bool has() const
True if (and only if) the field has a value.
HebiStatusCode hebiInfoGetString(HebiInfoPtr info, HebiInfoStringField field, char *buffer, size_t *length)
Info API.
Info objects have various fields representing the module state; which fields are populated depends on...
HebiStatusCode floatGetter(const RefT &ref, MetadataT &metadata, int field, float *value)
Structure to describe an RGB color.
Info(HebiInfoPtr)
Wraps an existing C-style object that is managed by its parent. NOTE: this should not be used except ...
bool has() const
True if (and only if) the field has a value.
struct HebiInfo_ * HebiInfoPtr
The C-style's API representation of info.
LedField(const HebiInfoRef &internal, HebiInfoLedField field)
StringField(HebiInfoPtr internal, HebiInfoStringField field)
HebiStatusCode ledGetter(const RefT &ref, MetadataT &metadata, int field, uint8_t *r, uint8_t *g, uint8_t *b, uint8_t *a)
HebiInfoRef internal_ref_
float get() const
If the field has a value, returns that value; otherwise, returns a default.
BoolField(const HebiInfoRef &internal, HebiInfoBoolField field)
FlagField(const HebiInfoRef &internal, HebiInfoFlagField field)
std::string get() const
If the field has a value, returns a copy of that value; otherwise, returns a default.
bool flagGetter(const RefT &ref, MetadataT &metadata, int field)
bool hasColor() const
Returns true if the LED color is set, and false otherwise.
HebiInfoFloatField
Info Enums.
HebiStatusCode highResAngleGetter(const RefT &ref, MetadataT &metadata, int field, int64_t *revs, float *offset)
HebiInfoHighResAngleField
void hebiInfoGetReference(HebiInfoPtr info, HebiInfoRef *ref)
HebiStatusCode boolGetter(const RefT &ref, MetadataT &metadata, int field, bool *value)
double get() const
If the field has a value, returns that value as a double; otherwise, returns a default.
bool get() const
If the field has a value, returns that value; otherwise, returns false.
@ HebiInfoStringSerial
The family for this module. The string must be null-terminated and less than 21 characters.
FloatField(const HebiInfoRef &internal, HebiInfoFloatField field)
HighResAngleField(const HebiInfoRef &internal, HebiInfoHighResAngleField field)
bool has() const
True if (and only if) the field has a value.
bool has() const
True if (and only if) the field has a value.
Color getColor() const
Returns the led color.
hebi_cpp_api_ros
Author(s): Chris Bollinger
, Matthew Tesch
autogenerated on Fri Aug 2 2024 08:35:18