Control Libraries 6.3.4
|
Public Member Functions | |
Parameter (const std::string &name) | |
Constructor with name of the parameter. More... | |
Parameter (const std::string &name, const T &value) | |
Constructor with a name and a value. More... | |
virtual | ~Parameter ()=default |
Default virtual destructor. | |
template<typename U > | |
Parameter (const Parameter< U > ¶meter) | |
Copy constructor. More... | |
template<typename U > | |
Parameter< T > & | operator= (const Parameter< U > ¶meter) |
Conversion equality. More... | |
template<typename U > | |
U | get_value () const |
Getter of the value attribute. More... | |
const T & | get_value () const |
Getter of the value attribute. More... | |
T & | get_value () |
Getter of the value attribute. More... | |
virtual void | set_value (const T &value) |
Setter of the value attribute. More... | |
Parameter (const std::string &name) | |
Parameter (const std::string &name, const int &value) | |
Parameter (const std::string &name) | |
Parameter (const std::string &name, const std::vector< int > &value) | |
Parameter (const std::string &name) | |
Parameter (const std::string &name, const double &value) | |
Parameter (const std::string &name) | |
Parameter (const std::string &name, const std::vector< double > &value) | |
Parameter (const std::string &name) | |
Parameter (const std::string &name, const bool &value) | |
Parameter (const std::string &name) | |
Parameter (const std::string &name, const std::vector< bool > &value) | |
Parameter (const std::string &name) | |
Parameter (const std::string &name, const std::string &value) | |
Parameter (const std::string &name) | |
Parameter (const std::string &name, const std::vector< std::string > &value) | |
Parameter (const std::string &name) | |
Parameter (const std::string &name, const CartesianState &value) | |
Parameter (const std::string &name) | |
Parameter (const std::string &name, const CartesianPose &value) | |
Parameter (const std::string &name) | |
Parameter (const std::string &name, const JointState &value) | |
Parameter (const std::string &name) | |
Parameter (const std::string &name, const JointPositions &value) | |
Parameter (const std::string &name) | |
Parameter (const std::string &name, const Ellipsoid &value) | |
Parameter (const std::string &name) | |
Parameter (const std::string &name, const Eigen::MatrixXd &value) | |
Parameter (const std::string &name) | |
Parameter (const std::string &name, const Eigen::VectorXd &value) | |
Public Member Functions inherited from state_representation::ParameterInterface | |
ParameterInterface (const std::string &name, const ParameterType &type, const StateType ¶meter_state_type=StateType::NONE) | |
Constructor with parameter name and type. More... | |
ParameterInterface (const ParameterInterface ¶meter) | |
Copy constructor. More... | |
virtual | ~ParameterInterface ()=default |
Default virtual destructor. | |
ParameterInterface & | operator= (const ParameterInterface &state) |
Copy assignment operator that has to be defined to the custom assignment operator. More... | |
template<typename T > | |
std::shared_ptr< Parameter< T > > | get_parameter (bool validate_pointer=true) const |
Get a pointer to a derived Parameter instance from a ParameterInterface pointer. More... | |
template<typename T > | |
T | get_parameter_value () const |
Get the parameter value of a derived Parameter instance through the ParameterInterface pointer. More... | |
template<typename T > | |
void | set_parameter_value (const T &value) |
Set the parameter value of a derived Parameter instance through the ParameterInterface pointer. More... | |
ParameterType | get_parameter_type () const |
Get the parameter type. More... | |
StateType | get_parameter_state_type () const |
Get the state type of the parameter. More... | |
Public Member Functions inherited from state_representation::State | |
State () | |
Empty constructor. More... | |
State (const StateType &type) | |
Constructor only specifying the type of the state from the StateType enumeration. More... | |
State (const StateType &type, const std::string &name, const bool &empty=true) | |
Constructor with name specification. More... | |
State (const State &state) | |
Copy constructor from another State. More... | |
virtual | ~State ()=default |
Virtual destructor. | |
State & | operator= (const State &state) |
Copy assignment operator that have to be defined to the custom assignment operator. More... | |
const StateType & | get_type () const |
Getter of the type attribute. More... | |
bool | is_empty () const |
Getter of the empty attribute. More... | |
void | set_empty (bool empty=true) |
Setter of the empty attribute. More... | |
void | set_filled () |
Setter of the empty attribute to false and also reset the timestamp. More... | |
const std::chrono::time_point< std::chrono::steady_clock > & | get_timestamp () const |
Getter of the timestamp attribute. More... | |
void | set_timestamp (const std::chrono::time_point< std::chrono::steady_clock > &timepoint) |
Setter of the timestamp attribute. More... | |
void | reset_timestamp () |
Reset the timestamp attribute to now. More... | |
const std::string & | get_name () const |
Getter of the name as const reference. More... | |
virtual void | set_name (const std::string &name) |
Setter of the name. More... | |
template<typename DurationT > | |
bool | is_deprecated (const std::chrono::duration< int64_t, DurationT > &time_delay) |
Check if the state is deprecated given a certain time delay. More... | |
virtual bool | is_compatible (const State &state) const |
Check if the state is compatible for operations with the state given as argument. More... | |
virtual void | initialize () |
Initialize the State to a zero value. More... | |
virtual void | set_data (const Eigen::VectorXd &data) |
Set the data of the state from a single Eigen vector. More... | |
virtual void | set_data (const std::vector< double > &data) |
Set the data of the state from a single std vector. More... | |
virtual void | set_data (const Eigen::MatrixXd &data) |
Set the data of the state from an Eigen matrix. More... | |
operator bool () const noexcept | |
Boolean operator for the truthiness of a state. More... | |
Friends | |
template<typename U > | |
std::ostream & | operator<< (std::ostream &os, const Parameter< U > ¶meter) |
Overload the ostream operator for printing. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from state_representation::State | |
void | set_type (const StateType &type) |
Override the state type. More... | |
Definition at line 13 of file Parameter.hpp.
|
explicit |
Constructor with name of the parameter.
name | The name of the parameter |
|
explicit |
Constructor with a name and a value.
name | The name of the parameter |
value | The value of the parameter |
state_representation::Parameter< T >::Parameter | ( | const Parameter< U > & | parameter | ) |
Copy constructor.
parameter | The parameter to copy |
Definition at line 87 of file Parameter.hpp.
state_representation::Parameter< int >::Parameter | ( | const std::string & | name | ) |
Definition at line 6 of file Parameter.cpp.
state_representation::Parameter< int >::Parameter | ( | const std::string & | name, |
const int & | value | ||
) |
Definition at line 10 of file Parameter.cpp.
state_representation::Parameter< std::vector< int > >::Parameter | ( | const std::string & | name | ) |
Definition at line 16 of file Parameter.cpp.
state_representation::Parameter< std::vector< int > >::Parameter | ( | const std::string & | name, |
const std::vector< int > & | value | ||
) |
Definition at line 20 of file Parameter.cpp.
state_representation::Parameter< double >::Parameter | ( | const std::string & | name | ) |
Definition at line 26 of file Parameter.cpp.
state_representation::Parameter< double >::Parameter | ( | const std::string & | name, |
const double & | value | ||
) |
Definition at line 30 of file Parameter.cpp.
state_representation::Parameter< std::vector< double > >::Parameter | ( | const std::string & | name | ) |
Definition at line 36 of file Parameter.cpp.
state_representation::Parameter< std::vector< double > >::Parameter | ( | const std::string & | name, |
const std::vector< double > & | value | ||
) |
Definition at line 40 of file Parameter.cpp.
state_representation::Parameter< bool >::Parameter | ( | const std::string & | name | ) |
Definition at line 46 of file Parameter.cpp.
state_representation::Parameter< bool >::Parameter | ( | const std::string & | name, |
const bool & | value | ||
) |
Definition at line 50 of file Parameter.cpp.
state_representation::Parameter< std::vector< bool > >::Parameter | ( | const std::string & | name | ) |
Definition at line 56 of file Parameter.cpp.
state_representation::Parameter< std::vector< bool > >::Parameter | ( | const std::string & | name, |
const std::vector< bool > & | value | ||
) |
Definition at line 61 of file Parameter.cpp.
state_representation::Parameter< std::string >::Parameter | ( | const std::string & | name | ) |
Definition at line 67 of file Parameter.cpp.
state_representation::Parameter< std::string >::Parameter | ( | const std::string & | name, |
const std::string & | value | ||
) |
Definition at line 71 of file Parameter.cpp.
state_representation::Parameter< std::vector< std::string > >::Parameter | ( | const std::string & | name | ) |
Definition at line 77 of file Parameter.cpp.
state_representation::Parameter< std::vector< std::string > >::Parameter | ( | const std::string & | name, |
const std::vector< std::string > & | value | ||
) |
Definition at line 81 of file Parameter.cpp.
state_representation::Parameter< CartesianState >::Parameter | ( | const std::string & | name | ) |
Definition at line 87 of file Parameter.cpp.
state_representation::Parameter< CartesianState >::Parameter | ( | const std::string & | name, |
const CartesianState & | value | ||
) |
Definition at line 91 of file Parameter.cpp.
state_representation::Parameter< CartesianPose >::Parameter | ( | const std::string & | name | ) |
Definition at line 97 of file Parameter.cpp.
state_representation::Parameter< CartesianPose >::Parameter | ( | const std::string & | name, |
const CartesianPose & | value | ||
) |
Definition at line 101 of file Parameter.cpp.
state_representation::Parameter< JointState >::Parameter | ( | const std::string & | name | ) |
Definition at line 107 of file Parameter.cpp.
state_representation::Parameter< JointState >::Parameter | ( | const std::string & | name, |
const JointState & | value | ||
) |
Definition at line 111 of file Parameter.cpp.
state_representation::Parameter< JointPositions >::Parameter | ( | const std::string & | name | ) |
Definition at line 117 of file Parameter.cpp.
state_representation::Parameter< JointPositions >::Parameter | ( | const std::string & | name, |
const JointPositions & | value | ||
) |
Definition at line 121 of file Parameter.cpp.
state_representation::Parameter< Ellipsoid >::Parameter | ( | const std::string & | name | ) |
Definition at line 127 of file Parameter.cpp.
state_representation::Parameter< Ellipsoid >::Parameter | ( | const std::string & | name, |
const Ellipsoid & | value | ||
) |
Definition at line 132 of file Parameter.cpp.
state_representation::Parameter< Eigen::MatrixXd >::Parameter | ( | const std::string & | name | ) |
Definition at line 138 of file Parameter.cpp.
state_representation::Parameter< Eigen::MatrixXd >::Parameter | ( | const std::string & | name, |
const Eigen::MatrixXd & | value | ||
) |
Definition at line 142 of file Parameter.cpp.
state_representation::Parameter< Eigen::VectorXd >::Parameter | ( | const std::string & | name | ) |
Definition at line 148 of file Parameter.cpp.
state_representation::Parameter< Eigen::VectorXd >::Parameter | ( | const std::string & | name, |
const Eigen::VectorXd & | value | ||
) |
Definition at line 152 of file Parameter.cpp.
|
inline |
Getter of the value attribute.
Definition at line 110 of file Parameter.hpp.
Getter of the value attribute.
U | The expected type of the parameter |
Definition at line 100 of file Parameter.hpp.
|
inline |
Getter of the value attribute.
Definition at line 105 of file Parameter.hpp.
Parameter< T > & state_representation::Parameter< T >::operator= | ( | const Parameter< U > & | parameter | ) |
Conversion equality.
Definition at line 92 of file Parameter.hpp.
|
inlinevirtual |
Setter of the value attribute.
The | new value attribute |
Definition at line 115 of file Parameter.hpp.
|
friend |