#include <dynashell_recording.h>
Dynamixel record.
Definition at line 93 of file dynashell_recording.h.
int DynaRecord::AddField |
( |
int |
nPos, |
|
|
int |
nSpeed |
|
) |
| |
|
virtual |
Add a field tuple to the record.
- Parameters
-
nPos | Servo position. |
nSpeed | Servo speed. |
- Returns
- On success, returns the newly added field number.
On failure, DynaRecord::END is returned.
Definition at line 94 of file dynashell_recording.cxx.
References DYNA_ID_NUMOF, and END.
#define DYNA_ID_NUMOF
number of unique servo id's
FieldTuple_T m_field[DYNA_ID_NUMOF]
one record of field data
static const int END
past-the-end mark
int m_nFieldCnt
number of field tuples
int DynaRecord::GetFieldCount |
( |
| ) |
const |
|
inline |
Get the current number of field tuples in record.
- Returns
- Field tuple count.
Definition at line 128 of file dynashell_recording.h.
int m_nFieldCnt
number of field tuples
Assignment operator.
- Parameters
-
- Returns
- Reference to this.
Definition at line 117 of file dynashell_recording.cxx.
References m_field, m_nFieldCnt, and NoField.
FieldTuple_T m_field[DYNA_ID_NUMOF]
one record of field data
int m_nFieldCnt
number of field tuples
FieldTuple_T const& DynaRecord::operator[] |
( |
const int |
nFldNum | ) |
const |
|
inline |
Subscript operator.
- Parameters
-
nFldNum | Field number subscript. |
- Returns
- Field tuple.
Definition at line 165 of file dynashell_recording.h.
FieldTuple_T m_field[DYNA_ID_NUMOF]
one record of field data
static const FieldTuple_T NoField
int m_nFieldCnt
number of field tuples
The documentation for this class was generated from the following files: