#include <quaternion_to_rpy.h>
Public Member Functions | |
void | calculate () override |
void | calculateNextPoint (size_t index, const std::array< double, 4 > &quat, std::array< double, 3 > &rpy) |
const char * | name () const override |
Name of the plugin type, NOT the particular instance. More... | |
int | numInputs () const override |
int | numOutputs () const override |
QuaternionToRollPitchYaw () | |
void | reset () override |
void | setScale (double scale) |
void | setWarp (bool wrap) |
Public Member Functions inherited from PJ::TransformFunction | |
std::vector< const PlotData * > & | dataSources () |
unsigned | order () const |
PlotDataMapRef * | plotData () |
virtual void | setData (PlotDataMapRef *data, const std::vector< const PlotData * > &src_vect, std::vector< PlotData * > &dst_vect) |
TransformFunction () | |
virtual | ~TransformFunction ()=default |
Public Member Functions inherited from PJ::PlotJugglerPlugin | |
virtual const std::vector< QAction * > & | availableActions () |
virtual bool | isDebugPlugin () |
virtual QWidget * | optionsWidget () |
optionsWidget pointer to a persistent widget used to set the plugin options . More... | |
PlotJugglerPlugin ()=default | |
virtual bool | xmlLoadState (const QDomElement &parent_element) |
Override this method to load the status of the plugin from XML. More... | |
QDomElement | xmlSaveState (QDomDocument &doc) const |
virtual bool | xmlSaveState (QDomDocument &doc, QDomElement &parent_element) const |
Override this method to save the status of the plugin to XML. More... | |
Private Attributes | |
double | _last_timestamp = std::numeric_limits<double>::lowest() |
double | _pitch_offset = 0 |
double | _prev_pitch = 0 |
double | _prev_roll = 0 |
double | _prev_yaw = 0 |
double | _roll_offset = 0 |
double | _scale = 1.0 |
bool | _wrap = true |
double | _yaw_offset = 0 |
Additional Inherited Members | |
Public Types inherited from PJ::TransformFunction | |
using | Ptr = std::shared_ptr< TransformFunction > |
Signals inherited from PJ::TransformFunction | |
void | parametersChanged () |
Protected Attributes inherited from PJ::TransformFunction | |
PlotDataMapRef * | _data |
std::vector< PlotData * > | _dst_vector |
unsigned | _order |
std::vector< const PlotData * > | _src_vector |
Definition at line 6 of file quaternion_to_rpy.h.
QuaternionToRollPitchYaw::QuaternionToRollPitchYaw | ( | ) |
Definition at line 5 of file quaternion_to_rpy.cpp.
|
overridevirtual |
Implements PJ::TransformFunction.
Definition at line 21 of file quaternion_to_rpy.cpp.
void QuaternionToRollPitchYaw::calculateNextPoint | ( | size_t | index, |
const std::array< double, 4 > & | quat, | ||
std::array< double, 3 > & | rpy | ||
) |
Definition at line 73 of file quaternion_to_rpy.cpp.
|
inlineoverridevirtual |
Name of the plugin type, NOT the particular instance.
Implements PJ::TransformFunction.
Definition at line 11 of file quaternion_to_rpy.h.
|
inlineoverridevirtual |
Number of inputs. Return -1 if it is not a constant.
When numInputs() > 0, then the data will be initialized using the method: setDataSource(const std::vector<const PlotData*>& src_data)
When numInputs() == -1, then the number of inputs is undefined and the data will be initialized using the method_ setDataSource( PlotDataMapRef* data )
Implements PJ::TransformFunction.
Definition at line 18 of file quaternion_to_rpy.h.
|
inlineoverridevirtual |
Number of outputs. Define the size of the vector used in: calculate(std::vector<PlotData*>& dst_data)
Implements PJ::TransformFunction.
Definition at line 23 of file quaternion_to_rpy.h.
|
overridevirtual |
Clear the cache, state and any stored data
Reimplemented from PJ::TransformFunction.
Definition at line 10 of file quaternion_to_rpy.cpp.
|
inline |
Definition at line 28 of file quaternion_to_rpy.h.
|
inline |
Definition at line 33 of file quaternion_to_rpy.h.
|
private |
Definition at line 52 of file quaternion_to_rpy.h.
|
private |
Definition at line 48 of file quaternion_to_rpy.h.
|
private |
Definition at line 46 of file quaternion_to_rpy.h.
|
private |
Definition at line 44 of file quaternion_to_rpy.h.
|
private |
Definition at line 45 of file quaternion_to_rpy.h.
|
private |
Definition at line 47 of file quaternion_to_rpy.h.
|
private |
Definition at line 50 of file quaternion_to_rpy.h.
|
private |
Definition at line 51 of file quaternion_to_rpy.h.
|
private |
Definition at line 49 of file quaternion_to_rpy.h.