Public Member Functions | Private Attributes | List of all members
QuaternionToRollPitchYaw Class Reference

#include <quaternion_to_rpy.h>

Inheritance diagram for QuaternionToRollPitchYaw:
Inheritance graph
[legend]

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
 
PlotDataMapRefplotData ()
 
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
 

Detailed Description

Definition at line 6 of file quaternion_to_rpy.h.

Constructor & Destructor Documentation

◆ QuaternionToRollPitchYaw()

QuaternionToRollPitchYaw::QuaternionToRollPitchYaw ( )

Definition at line 5 of file quaternion_to_rpy.cpp.

Member Function Documentation

◆ calculate()

void QuaternionToRollPitchYaw::calculate ( )
overridevirtual

Implements PJ::TransformFunction.

Definition at line 21 of file quaternion_to_rpy.cpp.

◆ calculateNextPoint()

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.

◆ name()

const char* QuaternionToRollPitchYaw::name ( ) const
inlineoverridevirtual

Name of the plugin type, NOT the particular instance.

Implements PJ::TransformFunction.

Definition at line 11 of file quaternion_to_rpy.h.

◆ numInputs()

int QuaternionToRollPitchYaw::numInputs ( ) const
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.

◆ numOutputs()

int QuaternionToRollPitchYaw::numOutputs ( ) const
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.

◆ reset()

void QuaternionToRollPitchYaw::reset ( )
overridevirtual

Clear the cache, state and any stored data

Reimplemented from PJ::TransformFunction.

Definition at line 10 of file quaternion_to_rpy.cpp.

◆ setScale()

void QuaternionToRollPitchYaw::setScale ( double  scale)
inline

Definition at line 28 of file quaternion_to_rpy.h.

◆ setWarp()

void QuaternionToRollPitchYaw::setWarp ( bool  wrap)
inline

Definition at line 33 of file quaternion_to_rpy.h.

Member Data Documentation

◆ _last_timestamp

double QuaternionToRollPitchYaw::_last_timestamp = std::numeric_limits<double>::lowest()
private

Definition at line 52 of file quaternion_to_rpy.h.

◆ _pitch_offset

double QuaternionToRollPitchYaw::_pitch_offset = 0
private

Definition at line 48 of file quaternion_to_rpy.h.

◆ _prev_pitch

double QuaternionToRollPitchYaw::_prev_pitch = 0
private

Definition at line 46 of file quaternion_to_rpy.h.

◆ _prev_roll

double QuaternionToRollPitchYaw::_prev_roll = 0
private

Definition at line 44 of file quaternion_to_rpy.h.

◆ _prev_yaw

double QuaternionToRollPitchYaw::_prev_yaw = 0
private

Definition at line 45 of file quaternion_to_rpy.h.

◆ _roll_offset

double QuaternionToRollPitchYaw::_roll_offset = 0
private

Definition at line 47 of file quaternion_to_rpy.h.

◆ _scale

double QuaternionToRollPitchYaw::_scale = 1.0
private

Definition at line 50 of file quaternion_to_rpy.h.

◆ _wrap

bool QuaternionToRollPitchYaw::_wrap = true
private

Definition at line 51 of file quaternion_to_rpy.h.

◆ _yaw_offset

double QuaternionToRollPitchYaw::_yaw_offset = 0
private

Definition at line 49 of file quaternion_to_rpy.h.


The documentation for this class was generated from the following files:


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:50