|
| Shape () |
| Empty constructor.
|
|
| Shape (const std::string &name, const std::string &reference_frame="world") |
| Constructor with name and reference frame.
|
|
| Shape (const Shape &shape) |
| Copy constructor from another Shape.
|
|
Shape & | operator= (const Shape &state) |
| Copy assignment operator that has to be defined to the custom assignment operator.
|
|
const CartesianState & | get_center_state () const |
| Getter of the state.
|
|
const CartesianPose & | get_center_pose () const |
| Getter of the pose from the state.
|
|
const Eigen::Vector3d | get_center_position () const |
| Getter of the position from the state.
|
|
const Eigen::Quaterniond | get_center_orientation () const |
| Getter of the orientation from the state.
|
|
const CartesianTwist & | get_center_twist () const |
| Getter of the twist from the state.
|
|
void | set_center_state (const CartesianState &state) |
| Setter of the state.
|
|
void | set_center_pose (const CartesianPose &pose) |
| Setter of the pose.
|
|
void | set_center_position (const Eigen::Vector3d &position) |
| Setter of the position.
|
|
void | set_center_orientation (const Eigen::Quaterniond &orientation) |
| Setter of the pose.
|
|
| State () |
| Empty constructor.
|
|
| State (const std::string &name) |
| Constructor with name specification.
|
|
| State (const State &state) |
| Copy constructor from another state.
|
|
virtual | ~State ()=default |
| Virtual destructor.
|
|
State & | operator= (const State &state) |
| Copy assignment operator that has to be defined to the custom assignment operator.
|
|
const StateType & | get_type () const |
| Getter of the type attribute.
|
|
const std::string & | get_name () const |
| Getter of the name attribute.
|
|
bool | is_empty () const |
| Getter of the empty attribute.
|
|
const std::chrono::time_point< std::chrono::steady_clock > & | get_timestamp () const |
| Getter of the timestamp attribute.
|
|
virtual void | set_name (const std::string &name) |
| Setter of the name attribute.
|
|
void | reset_timestamp () |
| Reset the timestamp attribute to now.
|
|
virtual void | set_data (const Eigen::VectorXd &data) |
| Set the data of the state from an Eigen vector.
|
|
virtual void | set_data (const std::vector< double > &data) |
| Set the data of the state from a std vector.
|
|
virtual void | set_data (const Eigen::MatrixXd &data) |
| Set the data of the state from an Eigen matrix.
|
|
double | get_age () const |
| Get the age of the state, i.e. the time since the last modification.
|
|
virtual bool | is_incompatible (const State &state) const |
| Check if the state is incompatible for operations with the state given as argument.
|
|
bool | is_deprecated (double time_delay) const |
| Check if the state is deprecated given a certain time delay.
|
|
template<typename DurationT > |
bool | is_deprecated (const std::chrono::duration< int64_t, DurationT > &time_delay) const |
| Check if the state is deprecated given a certain time delay.
|
|
virtual void | reset () |
| Reset the object to a post-construction state.
|
|
| operator bool () const noexcept |
| Boolean operator for the truthiness of a state.
|
|
Definition at line 12 of file Shape.hpp.