Go to the documentation of this file.
7 template <
class Handle>
11 mBuffer.reset(
new char[_space->getStateSizeInBytes()]);
12 this->mState =
static_cast<ScopedState::State*
>(
13 _space->allocateStateInBuffer(mBuffer.get()));
17 template <
class Handle>
20 this->
mSpace->freeStateInBuffer(this->mState);
24 template <
class Handle>
27 return this->
mSpace->cloneState(this->mState);
virtual ~ScopedState()
Definition: ScopedState-impl.hpp:18
Format of serialized trajectory in YAML.
Definition: algorithm.hpp:4
ScopedState(const StateSpace *_space)
Construct a ScopedState by allocating a new state in _space.
Definition: ScopedState-impl.hpp:8
std::shared_ptr< const statespace::R< N > > mSpace
Definition: RnConstantSampler-impl.hpp:46
CRTP RAII wrapper for a StateHandle.
Definition: ScopedState.hpp:15
ScopedState clone() const
Creates an identical clone of the state this ScopedState handles.
Definition: ScopedState-impl.hpp:25
_StateSpace StateSpace
Definition: StateHandle.hpp:19