Control Libraries 6.3.4
Loading...
Searching...
No Matches
SpatialState.cpp
1#include "state_representation/space/SpatialState.hpp"
2
3namespace state_representation {
4
6 State(StateType::SPATIAL_STATE), reference_frame_("world") {}
7
9 State(type), reference_frame_("world") {}
10
12 const std::string& name,
13 const std::string& reference_frame,
14 const bool& empty) :
15 State(type, name, empty), reference_frame_(reference_frame) {}
16
17std::ostream& operator<<(std::ostream& os, const SpatialState& state) {
18 if (state.is_empty()) {
19 os << "Empty ";
20 }
21 os << " State: " << state.get_name() << " expressed in " << state.get_reference_frame() << " frame";
22 return os;
23}
24}
SpatialState()
Empty constructor.
Definition: SpatialState.cpp:5
Abstract class to represent a state.
Definition: State.hpp:25
Core state variables and objects.
std::ostream & operator<<(std::ostream &os, const Ellipsoid &ellipsoid)
Definition: Ellipsoid.cpp:185
StateType
The class types inheriting from State.
Definition: StateType.hpp:13