Command objects have various fields that can be set; when sent to the module, these fields control internal properties and setpoints. More...
#include <command.hpp>
Classes | |
class | Actuator |
Actuator-specific commands. More... | |
class | BoolField |
A message field representable by a bool value. More... | |
class | EnumField |
A message field representable by an enum of a given type. More... | |
class | FlagField |
A two-state message field (either set/true or cleared/false). More... | |
class | FloatField |
A message field representable by a single-precision floating point value. More... | |
class | HighResAngleField |
A message field for an angle measurement which does not lose precision at very high angles. More... | |
class | Io |
Any available digital or analog output pins on the device. More... | |
class | IoBank |
A message field for interfacing with a bank of I/O pins. More... | |
class | LedField |
A message field for interfacing with an LED. More... | |
class | NumberedFloatField |
A message field containing a numbered set of single-precision floating point values. More... | |
class | Settings |
Module settings that are typically changed at a slower rate. More... | |
class | StringField |
A message field representable by a std::string. More... | |
Public Member Functions | |
Actuator & | actuator () |
Actuator-specific commands. More... | |
const Actuator & | actuator () const |
Actuator-specific commands. More... | |
StringField & | appendLog () |
Appends to the current log message on the module. More... | |
const StringField & | appendLog () const |
Appends to the current log message on the module. More... | |
FlagField & | boot () |
Boot the module from bootloader into application. More... | |
const FlagField & | boot () const |
Boot the module from bootloader into application. More... | |
FlagField & | clearLog () |
Clears the log message on the module. More... | |
const FlagField & | clearLog () const |
Clears the log message on the module. More... | |
Command (Command &&other) | |
Move constructor (necessary for containment in STL template classes) More... | |
Command (HebiCommandPtr) | |
Wraps an existing C-style object that is managed by its parent. NOTE: this should not be used except by internal library functions! More... | |
NumberedFloatField & | debug () |
Values for internal debug functions (channel 1-9 available). More... | |
const NumberedFloatField & | debug () const |
Values for internal debug functions (channel 1-9 available). More... | |
Io & | io () |
Any available digital or analog output pins on the device. More... | |
const Io & | io () const |
Any available digital or analog output pins on the device. More... | |
LedField & | led () |
The module's LED. More... | |
const LedField & | led () const |
The module's LED. More... | |
Command & | operator= (Command &&other)=delete |
FlagField & | reset () |
Restart the module. More... | |
const FlagField & | reset () const |
Restart the module. More... | |
Settings & | settings () |
Module settings that are typically changed at a slower rate. More... | |
const Settings & | settings () const |
Module settings that are typically changed at a slower rate. More... | |
FlagField & | stopBoot () |
Stop the module from automatically booting into application. More... | |
const FlagField & | stopBoot () const |
Stop the module from automatically booting into application. More... | |
Protected Types | |
using | CommandGains = Gains< HebiCommandRef, FloatField, BoolField, HebiCommandFloatField, HebiCommandBoolField > |
Command objects have various fields that can be set; when sent to the module, these fields control internal properties and setpoints.
This object has a hierarchical structure – there are some direct general-purpose fields at the top level, and many more specific fields contained in different nested subobjects.
The subobjects contain references to the parent command object, and so should not be used after the parent object has been destroyed.
The fields in the command object are typed; generally, these are optional-style read/write fields (i.e., have the concept of get/set/has/clear), although the return types and exact interface vary slightly between fields. Where appropriate, the explicit bool operator has been overridden so that you can shortcut if
(field.has()) by calling if(field)
.
Although this header file can be used to look at the hierarchy of the messages, in general the online documentation at apidocs.hebi.us presents this information. in a more readable form.
Definition at line 33 of file command.hpp.
|
protected |
Definition at line 495 of file command.hpp.
|
strong |
Definition at line 35 of file command.hpp.
|
strong |
Definition at line 51 of file command.hpp.
|
strong |
Definition at line 60 of file command.hpp.
hebi::Command::Command | ( | HebiCommandPtr | command | ) |
Wraps an existing C-style object that is managed by its parent. NOTE: this should not be used except by internal library functions!
Definition at line 208 of file command.cpp.
hebi::Command::Command | ( | Command && | other | ) |
Move constructor (necessary for containment in STL template classes)
Definition at line 223 of file command.cpp.
|
inline |
Actuator-specific commands.
Definition at line 774 of file command.hpp.
|
inline |
Actuator-specific commands.
Definition at line 776 of file command.hpp.
|
inline |
Appends to the current log message on the module.
Definition at line 787 of file command.hpp.
|
inline |
Appends to the current log message on the module.
Definition at line 789 of file command.hpp.
|
inline |
Boot the module from bootloader into application.
Definition at line 795 of file command.hpp.
|
inline |
Boot the module from bootloader into application.
Definition at line 797 of file command.hpp.
|
inline |
Clears the log message on the module.
Definition at line 803 of file command.hpp.
|
inline |
Clears the log message on the module.
Definition at line 805 of file command.hpp.
|
inline |
Values for internal debug functions (channel 1-9 available).
Definition at line 782 of file command.hpp.
|
inline |
Values for internal debug functions (channel 1-9 available).
Definition at line 784 of file command.hpp.
|
inline |
Any available digital or analog output pins on the device.
Definition at line 766 of file command.hpp.
|
inline |
Any available digital or analog output pins on the device.
Definition at line 768 of file command.hpp.
|
inline |
The module's LED.
Definition at line 807 of file command.hpp.
|
inline |
The module's LED.
Definition at line 809 of file command.hpp.
Disable copy constructor/assignment operators
|
inline |
Restart the module.
Definition at line 791 of file command.hpp.
|
inline |
Restart the module.
Definition at line 793 of file command.hpp.
|
inline |
Module settings that are typically changed at a slower rate.
Definition at line 770 of file command.hpp.
|
inline |
Module settings that are typically changed at a slower rate.
Definition at line 772 of file command.hpp.
|
inline |
Stop the module from automatically booting into application.
Definition at line 799 of file command.hpp.
|
inline |
Stop the module from automatically booting into application.
Definition at line 801 of file command.hpp.
|
private |
Definition at line 822 of file command.hpp.
|
private |
Definition at line 825 of file command.hpp.
|
private |
Definition at line 827 of file command.hpp.
|
private |
Definition at line 829 of file command.hpp.
|
private |
Definition at line 824 of file command.hpp.
|
private |
C-style object; managed by parent. NOTE: this should not be used except by internal library functions!
Definition at line 744 of file command.hpp.
|
private |
Definition at line 745 of file command.hpp.
|
private |
Definition at line 820 of file command.hpp.
|
private |
Definition at line 830 of file command.hpp.
|
private |
Definition at line 826 of file command.hpp.
|
private |
Definition at line 821 of file command.hpp.
|
private |
Definition at line 828 of file command.hpp.