Repository navigation
Closed
Description
Melodic uses OMPL 1.4, which has some API changes that make moveit_planners_ompl fail:
@mamoll @davetcoleman Your help is appreciated on this.
Errors << moveit_planners_ompl:make /root/ws_moveit/logs/moveit_planners_ompl/build.make.002.log
In file included from /root/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/src/model_based_planning_context.cpp:44:0:
/root/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/include/moveit/ompl_interface/detail/projection_evaluators.h:56:68: error: ‘ompl::base::EuclideanProjection’ has not been declared
virtual void project(const ompl::base::State* state, ompl::base::EuclideanProjection& projection) const;
^~~~~~~~~~~~~~~~~~~
/root/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/include/moveit/ompl_interface/detail/projection_evaluators.h:73:68: error: ‘ompl::base::EuclideanProjection’ has not been declared
virtual void project(const ompl::base::State* state, ompl::base::EuclideanProjection& projection) const;
^~~~~~~~~~~~~~~~~~~
/root/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/src/model_based_planning_context.cpp: In member function ‘virtual ompl::base::ProjectionEvaluatorPtr ompl_interface::ModelBasedPlanningContext::getProjectionEvaluator(const string&) const’:
/root/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/src/model_based_planning_context.cpp:106:88: error: invalid new-expression of abstract class type ‘ompl_interface::ProjectionEvaluatorLinkPose’
return ob::ProjectionEvaluatorPtr(new ProjectionEvaluatorLinkPose(this, link_name));
^
In file included from /root/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/src/model_based_planning_context.cpp:44:0:
/root/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/include/moveit/ompl_interface/detail/projection_evaluators.h:49:7: note: because the following virtual functions are pure within ‘ompl_interface::ProjectionEvaluatorLinkPose’:
class ProjectionEvaluatorLinkPose : public ompl::base::ProjectionEvaluator
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /opt/ros/melodic/include/ompl/base/StateSpace.h:43:0,
from /root/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/include/moveit/ompl_interface/parameterization/model_based_state_space.h:40,
from /root/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/include/moveit/ompl_interface/model_based_planning_context.h:40,
from /root/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/src/model_based_planning_context.cpp:39:
/opt/ros/melodic/include/ompl/base/ProjectionEvaluator.h:146:26: note: virtual void ompl::base::ProjectionEvaluator::project(const ompl::base::State*, Eigen::Ref<Eigen::Matrix<double, -1, 1> >) const
virtual void project(const State *state, Eigen::Ref<Eigen::VectorXd> projection) const = 0;
^~~~~~~
/root/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/src/model_based_planning_context.cpp:146:82: error: invalid new-expression of abstract class type ‘ompl_interface::ProjectionEvaluatorJointValue’
return ob::ProjectionEvaluatorPtr(new ProjectionEvaluatorJointValue(this, j));
^
In file included from /root/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/src/model_based_planning_context.cpp:44:0:
/root/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/include/moveit/ompl_interface/detail/projection_evaluators.h:66:7: note: because the following virtual functions are pure within ‘ompl_interface::ProjectionEvaluatorJointValue’:
class ProjectionEvaluatorJointValue : public ompl::base::ProjectionEvaluator
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /opt/ros/melodic/include/ompl/base/StateSpace.h:43:0,
from /root/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/include/moveit/ompl_interface/parameterization/model_based_state_space.h:40,
from /root/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/include/moveit/ompl_interface/model_based_planning_context.h:40,
from /root/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/src/model_based_planning_context.cpp:39:
/opt/ros/melodic/include/ompl/base/ProjectionEvaluator.h:146:26: note: virtual void ompl::base::ProjectionEvaluator::project(const ompl::base::State*, Eigen::Ref<Eigen::Matrix<double, -1, 1> >) const
virtual void project(const State *state, Eigen::Ref<Eigen::VectorXd> projection) const = 0;
^~~~~~~
Metadata
Metadata
Assignees
Labels
No labels
Activity
davetcoleman commentedon May 17, 2018
I'd like Melodic to target the new ompl_interface @BryceStevenWilley @zkingston so maybe we can save our effort trying to port the old ompl_interface since im sure the Kavraki lab already has their interface working with the latest OMPL @mamoll
zkingston commentedon May 18, 2018
@davetcoleman we mostly use the
ompl_interfacethat I opened a pull request for in #897. @BryceStevenWilley fixed the breaking change issue ofompl::base::ProjectionEvaluator->Eigen::Ref<Eigen::VectorXd>in #903, which was done as we removed allboost::ublasin ompl/ompl@1396bd0.Other things that could be added with the new OMPL features:
ModelBasedStateSpaceis changed to inherit fromompl::base::RealVectorStateSpace. The other planners are trivial to add after that).interpolate()now returns a boolean indicating whether the path is still valid, which can be checked inModelBasedPlanningContext::interpolateSolution()rhaschke commentedon May 24, 2018
Fixed with #903.
YichenZhou113 commentedon Jun 20, 2018
Hi, I am having the same problem on my kinetic ubuntu 16.04. Is there any way that I could use ompl? I tried with the older version but it said cannot read from or find config.h. So how can I use ompl by now?
rhaschke commentedon Jun 20, 2018
@YichenZhou113 If you have updated OMPL and get the same error on Kinetic now, you could apply #903 to your kinetic branch of MoveIt as well.
If you get a different error, you should precisely describe your issue.
YichenZhou113 commentedon Jun 20, 2018
@rhaschke you mean change the following?
83474f9