try to build source moveit with source installed ompl
I am trying to introduce one new planner to my ompl. This is the reason that I need to install source ompl. I successfully built source ompl but failed when I tried to build moveit. Here is my reuslt of catkin build. Anybody has the similar problem?
/home/ruinian/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/src/constraints_library.cpp: In member function ‘ompl::base::StateStoragePtr ompl_interface::ConstraintsLibrary::constructConstraintApproximation(const ModelBasedPlanningContextPtr&, const Constraints&, const Constraints&, const ompl_interface::ConstraintApproximationConstructionOptions&, ompl_interface::ConstraintApproximationConstructionResults&)’:
/home/ruinian/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/src/constraints_library.cpp:439:116: error: no matching function for call to ‘ompl::base::StateStorageWithMetadata<std::pair<std::vector<long unsigned int>, std::map<long unsigned int, std::pair<long unsigned int, long unsigned int> > > >::StateStorageWithMetadata(const ModelBasedStateSpacePtr&)’
ConstraintApproximationStateStorage* cass = new ConstraintApproximationStateStorage(pcontext->getOMPLStateSpace());
^
In file included from /home/ruinian/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/include/moveit/ompl_interface/model_based_planning_context.h:48:0,
from /home/ruinian/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/include/moveit/ompl_interface/planning_context_manager.h:40,
from /home/ruinian/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/include/moveit/ompl_interface/constraints_library.h:41,
from /home/ruinian/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/src/constraints_library.cpp:37:
/opt/ros/indigo/include/ompl/base/StateStorage.h:221:13: note: candidate: ompl::base::StateStorageWithMetadata<M>::StateStorageWithMetadata(const StateSpacePtr&) [with M = std::pair<std::vector<long unsigned int>, std::map<long unsigned int, std::pair<long unsigned int, long unsigned int> > >; ompl::base::StateSpacePtr = std::shared_ptr<ompl::base::StateSpace>]
StateStorageWithMetadata(const StateSpacePtr &space) : StateStorage(space)
^
/opt/ros/indigo/include/ompl/base/StateStorage.h:221:13: note: no known conversion for argument 1 from ‘const ModelBasedStateSpacePtr {aka const boost::shared_ptr<ompl_interface::ModelBasedStateSpace>}’ to ‘const StateSpacePtr& {aka const std::shared_ptr<ompl::base::StateSpace>&}’
/opt/ros/indigo/include/ompl/base/StateStorage.h:214:15: note: candidate: ompl::base::StateStorageWithMetadata<std::pair<std::vector<long unsigned int>, std::map<long unsigned int, std::pair<long unsigned int, long unsigned int> > > >::StateStorageWithMetadata(const ompl::base::StateStorageWithMetadata<std::pair<std::vector<long unsigned int>, std::map<long unsigned int, std::pair<long unsigned int, long unsigned int> > > >&)
class StateStorageWithMetadata : public StateStorage
^
/opt/ros/indigo/include/ompl/base/StateStorage.h:214:15: note: no known conversion for argument 1 from ‘const ModelBasedStateSpacePtr {aka const boost::shared_ptr<ompl_interface::ModelBasedStateSpace>}’ to ‘const ompl::base::StateStorageWithMetadata<std::pair<std::vector<long unsigned int>, std::map<long unsigned int, std::pair<long unsigned int, long unsigned int> > > >&’
/opt/ros/indigo/include/ompl/base/StateStorage.h:214:15: note: candidate: ompl::base::StateStorageWithMetadata<std::pair<std::vector<long unsigned int>, std::map<long unsigned int, std::pair<long unsigned int, long unsigned int> > > >::StateStorageWithMetadata(ompl::base::StateStorageWithMetadata<std::pair<std::vector<long unsigned int>, std::map<long unsigned int, std::pair<long unsigned int, long unsigned int> > > >&&)
/opt/ros/indigo/include/ompl/base/StateStorage.h:214:15: note: no known conversion for argument 1 from ‘const ModelBasedStateSpacePtr {aka const boost::shared_ptr<ompl_interface::ModelBasedStateSpace>}’ to ‘ompl::base::StateStorageWithMetadata<std::pair<std::vector<long unsigned int>, std::map<long unsigned int, std ...