Skip to content

MoveIt needs adaptions to OMPL 1.4 API #901

Closed

Description

@rhaschke

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;
                          ^~~~~~~

Activity

  1. added this to the milestone on May 17, 2018
  2. added
    melodic
    on May 17, 2018
  3. davetcoleman commented on May 17, 2018

    @davetcoleman
    Member

    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

  4. zkingston commented on May 18, 2018

    @zkingston
    Contributor

    @davetcoleman we mostly use the ompl_interface that I opened a pull request for in #897. @BryceStevenWilley fixed the breaking change issue of ompl::base::ProjectionEvaluator -> Eigen::Ref<Eigen::VectorXd> in #903, which was done as we removed all boost::ublas in ompl/ompl@1396bd0.

    Other things that could be added with the new OMPL features:

    1. New planners like BIT*, I-RRT*, RRT#, RRTX, SORRT* (BIT* and I-RRT* are added in Adding Planning Context Plugin Framework to OMPL Planning Plugin  #897, as ModelBasedStateSpace is changed to inherit from ompl::base::RealVectorStateSpace. The other planners are trivial to add after that).
    2. interpolate() now returns a boolean indicating whether the path is still valid, which can be checked in ModelBasedPlanningContext::interpolateSolution()
    3. Geometrically constrained planning (documented here: http://ompl-beta.kavrakilab.org/constrainedPlanning.html), which would enable path constrained planning in joint space rather than Cartesian end-effector space.
  5. removed
    melodic
    on May 24, 2018
  6. removed this from the milestone on May 24, 2018
  7. rhaschke commented on May 24, 2018

    @rhaschke
    ContributorAuthor

    Fixed with #903.

  8. YichenZhou113 commented on Jun 20, 2018

    @YichenZhou113

    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?

  9. rhaschke commented on Jun 20, 2018

    @rhaschke
    ContributorAuthor

    @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.

  10. YichenZhou113 commented on Jun 20, 2018

    @YichenZhou113

    @rhaschke you mean change the following?
    83474f9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions