Skip to content

Removed EuclideanProjection, changed to Eigen vector. - #903

Merged
rhaschke merged 1 commit into
moveit:melodic-develfrom
KavrakiLab:ProjectionEvalFix
May 18, 2018
Merged

rhaschke merged 1 commit into
moveit:melodic-develfrom
KavrakiLab:ProjectionEvalFix

Conversation

@BryceStevenWilley

Copy link
Copy Markdown
Contributor

Description

Resolves #901.

With 1.4.0, OMPL makes Eigen a required dependency, which means we deprecated old ways of specifying projections in favor of the more transparent Eigen vector.

Checklist

  • Required: Code is auto formatted using clang-format
  • Extended the tutorials / documentation, if necessary reference
  • Include a screenshot if changing a GUI
  • Optional: Created tests, which fail without this PR reference

@BryceStevenWilley

Copy link
Copy Markdown
Contributor Author

Just realized that the Travis tests are running for kinetic and lunar. Not sure how to get them to run for Melodic.

@rhaschke

Copy link
Copy Markdown
Contributor

Just realized that the Travis tests are running for kinetic and lunar. Not sure how to get them to run for Melodic.

I have prepared a fix for Travis: #902. Currently compiling this PR locally...
We also need a new OMPL release for Melodic, fixing #806 (comment), before Travis can succeed.

@rhaschke

Copy link
Copy Markdown
Contributor

Thanks for the quick fix. However, there are some remaining errors:

Errors     << moveit_planners_ompl:make /root/ws_moveit/logs/moveit_planners_ompl/build.make.004.log                                                                                                                        
/root/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/src/detail/projection_evaluators.cpp:64:71: error: ‘ompl::base::EuclideanProjection’ has not been declared
                                                           ompl::base::EuclideanProjection& projection) const
                                                                       ^~~~~~~~~~~~~~~~~~~
/root/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/src/detail/projection_evaluators.cpp:63:6: error: prototype for ‘void ompl_interface::ProjectionEvaluatorLinkPose::project(const ompl::base::State*, int&) const’ does not match any in class ‘ompl_interface::ProjectionEvaluatorLinkPose’
 void ompl_interface::ProjectionEvaluatorLinkPose::project(const ompl::base::State* state,
      ^~~~~~~~~~~~~~
In file included from /root/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/src/detail/projection_evaluators.cpp:37:0:
/root/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/include/moveit/ompl_interface/detail/projection_evaluators.h:56:16: error: candidate is: virtual void ompl_interface::ProjectionEvaluatorLinkPose::project(const ompl::base::State*, Eigen::Ref<Eigen::Matrix<double, -1, 1> >) const
   virtual void project(const ompl::base::State* state, Eigen::Ref<Eigen::VectorXd> projection) const;
                ^~~~~~~
/root/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/src/detail/projection_evaluators.cpp:93:73: error: ‘ompl::base::EuclideanProjection’ has not been declared
                                                             ompl::base::EuclideanProjection& projection) const
                                                                         ^~~~~~~~~~~~~~~~~~~
/root/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/src/detail/projection_evaluators.cpp:92:6: error: prototype for ‘void ompl_interface::ProjectionEvaluatorJointValue::project(const ompl::base::State*, int&) const’ does not match any in class ‘ompl_interface::ProjectionEvaluatorJointValue’
 void ompl_interface::ProjectionEvaluatorJointValue::project(const ompl::base::State* state,
      ^~~~~~~~~~~~~~
In file included from /root/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/src/detail/projection_evaluators.cpp:37:0:
/root/ws_moveit/src/moveit/moveit_planners/ompl/ompl_interface/include/moveit/ompl_interface/detail/projection_evaluators.h:73:16: error: candidate is: virtual void ompl_interface::ProjectionEvaluatorJointValue::project(const ompl::base::State*, Eigen::Ref<Eigen::Matrix<double, -1, 1> >) const
   virtual void project(const ompl::base::State* state, Eigen::Ref<Eigen::VectorXd> projection) const;

@BryceStevenWilley

Copy link
Copy Markdown
Contributor Author

@rhaschke I just saw that, I pushed before the build finished on my side. This fix compiles on my machine now.

@rhaschke

Copy link
Copy Markdown
Contributor

@BryceStevenWilley Thanks for your quick reaction. May I ask you to maintain backwards compatibility to OMPL 1.2.3 by introducing some #ifdefs? @davetcoleman just reminded me that we wanted to keep the Melodic branch building on Xenial too.

@rhaschke rhaschke left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

@rhaschke rhaschke added melodic PRs to be merged into melodic branch awaits 2nd review one maintainer approved this request labels May 18, 2018
@rhaschke

Copy link
Copy Markdown
Contributor

As this is a trivial fix for Melodic, I'm going to merge now.

@rhaschke
rhaschke merged commit d6287d5 into moveit:melodic-devel May 18, 2018
ferrolho pushed a commit to ipab-slmc/exotica that referenced this pull request Jun 19, 2018
wxmerkt pushed a commit to ipab-slmc/exotica that referenced this pull request Jun 20, 2018
v4hn pushed a commit to v4hn/moveit that referenced this pull request Sep 8, 2018
Defined an OMPLProjection that is typedef'd to work with versions <= 1.4 of OMPL
rhaschke pushed a commit that referenced this pull request Sep 10, 2018
mayman99 pushed a commit to mayman99/moveit that referenced this pull request Sep 11, 2018
pull Bot pushed a commit to shadow-robot/moveit that referenced this pull request Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaits 2nd review one maintainer approved this request melodic PRs to be merged into melodic branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants