3#include "state_representation/State.hpp"
19 explicit SpatialState(
const std::string& name,
const std::string& reference_frame =
"world");
71 std::string reference_frame_;
76 std::swap(state1.reference_frame_, state2.reference_frame_);
virtual void set_reference_frame(const std::string &reference_frame)
Setter of the reference frame.
bool is_incompatible(const State &state) const override
Check if the spatial state is incompatible for operations with the state given as argument.
SpatialState & operator=(const SpatialState &state)
Copy assignment operator that has to be defined to the custom assignment operator.
std::string to_string() const override
Convert the state to its string representation.
friend std::ostream & operator<<(std::ostream &os, const SpatialState &state)
Overload the ostream operator for printing.
const std::string & get_reference_frame() const
Getter of the reference frame as const reference.
SpatialState()
Empty constructor.
friend void swap(SpatialState &state1, SpatialState &state2)
Swap the values of the two SpatialState.
Abstract class to represent a state.
Core state variables and objects.
void swap(AnalogIOState &state1, AnalogIOState &state2)