Function ompl::base::copyStateData(const StateSpace *, State *, const StateSpace *, const State *, const std::vector<std::string>&)

Function Documentation

AdvancedStateCopyOperation ompl::base::copyStateData(const StateSpace *destS, State *dest, const StateSpace *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