Function ompl::base::copyStateData(const StateSpacePtr&, State *, const StateSpacePtr&, const State *, const std::vector<std::string>&)
Defined in File StateSpace.h
Function Documentation
-
AdvancedStateCopyOperation ompl::base::copyStateData(const StateSpacePtr &destS, State *dest, const StateSpacePtr &sourceS, const State *source, const std::vector<std::string> &subspaces)
Copy data from source (state from space sourceS) to dest (state from space destS) but only for the subspaces indicated by name in subspaces. This uses StateSpace::getSubstateLocationsByName().
Note
For efficiency reasons it is a good idea usually to make sure the elements of subspaces are not subspaces of each other