3#include "state_representation/State.hpp"
4#include "state_representation/space/cartesian/CartesianState.hpp"
5#include "state_representation/space/cartesian/CartesianPose.hpp"
6#include "state_representation/space/cartesian/CartesianTwist.hpp"
24 explicit Shape(
const std::string& name,
const std::string& reference_frame =
"world");
37 static Shape Unit(
const std::string& name,
const std::string& reference_frame =
"world");
127 std::swap(state1.center_state_, state2.center_state_);
Class to define Cartesian pose in Cartesian space as 3D position and quaternion based orientation.
Class to represent a state in Cartesian space.
Class to define twist in Cartesian space as 3D linear and angular velocity vectors.
void set_center_orientation(const Eigen::Quaterniond &orientation)
Setter of the pose.
void set_center_state(const CartesianState &state)
Setter of the state.
friend void swap(Shape &state1, Shape &state2)
Swap the values of the two Shapes.
Shape & operator=(const Shape &state)
Copy assignment operator that has to be defined to the custom assignment operator.
static Shape Unit(const std::string &name, const std::string &reference_frame="world")
Constructor for a Shape with identity state.
Shape()
Empty constructor.
const Eigen::Vector3d get_center_position() const
Getter of the position from the state.
std::string to_string() const override
Convert the state to its string representation.
const CartesianState & get_center_state() const
Getter of the state.
friend std::ostream & operator<<(std::ostream &os, const Shape &shape)
Overload the ostream operator for printing.
const CartesianPose & get_center_pose() const
Getter of the pose from the state.
const Eigen::Quaterniond get_center_orientation() const
Getter of the orientation from 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.
const CartesianTwist & get_center_twist() const
Getter of the twist from the state.
Abstract class to represent a state.
Core state variables and objects.
void swap(AnalogIOState &state1, AnalogIOState &state2)