Function ompl::base::copyStateData(const StateSpacePtr&, State *, const StateSpacePtr&, const State *)

Function Documentation

AdvancedStateCopyOperation ompl::base::copyStateData(const StateSpacePtr &destS, State *dest, const StateSpacePtr &sourceS, const State *source)

Copy data from source (state from space sourceS) to dest (state from space destS) on a component by component basis. State spaces are matched by name. If the state space destS contains any subspace whose name matches any subspace of the state space sourceS, the corresponding state components are copied.