Skip to content

rearrange chomp modules for maintainability#1251

Merged
rhaschke merged 5 commits intomoveit:melodic-develfrom
ubi-agni:cleanup-chomp
Dec 9, 2018
Merged

rearrange chomp modules for maintainability#1251
rhaschke merged 5 commits intomoveit:melodic-develfrom
ubi-agni:cleanup-chomp

Conversation

@rhaschke
Copy link
Copy Markdown
Contributor

@rhaschke rhaschke commented Dec 9, 2018

Cleaning up chomp sources that are scattered around the repository, creating a circular dependency between chomp, moveit_core, and moveit_experimental.
This fixes #1136:

  • move collision_distance_field from moveit_experimental back to moveit_core
  • move chomp_optimizer_adapter.cpp into own package moveit_chomp_optimizer_adapter
  • rename default_planner_request_adapters/CHOMPOptimizerAdapter -> chomp/OptimizerAdapter

@rhaschke rhaschke mentioned this pull request Dec 9, 2018
12 tasks
@rhaschke rhaschke changed the title cleanup chomp cleanup chomp source folders Dec 9, 2018
@v4hn v4hn changed the title cleanup chomp source folders rearrange chomp modules for maintainability Dec 9, 2018
Copy link
Copy Markdown
Contributor

@v4hn v4hn left a comment

Choose a reason for hiding this comment

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

That's tedious work, thank you!

moveit_ros_planning_interface
)
else()
set(CHOMP_TEST_DEPS)
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.

I'm not a fan of using undefined variables.
cmake allows for it (although there were ideas about adding a warning for it in the past), but it also has a concept of DEFINED which can trigger different behavior.

👍 to reducing the first set to 1 line
👎 to leaving out the else

Copy link
Copy Markdown
Contributor Author

@rhaschke rhaschke Dec 9, 2018

Choose a reason for hiding this comment

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

+1 to reducing the first set to 1 line

This was my intention. For me it looked really ugly.
Should I revert then?

DEPENDS
EIGEN3
Boost
OCTOMAP
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.

I believe octomap is not required by moveit_experimental anymore with this patch.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

moveit_experimental doesn't build anything anymore...
I just moved the octomap dependency to the right place.

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.

moveit_experimental doesn't build anything anymore...

True.
It feels stupid to keep all the dependencies for a module that does not build anything.
Shouldn't we at least comment out all the unnecessary bits?
They cost build time and are simply baggage at this point.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I will be fine with this ;-)

@@ -0,0 +1,9 @@
<library path="libmoveit_chomp_optimizer_adapter">

<class name="chomp/OptimizerAdapter" type="chomp::OptimizerAdapter"
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.

👍 for the name change. It's simply not a "default".

The tutorial has to be changed to the new name though.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is on my (long) list...

@rhaschke rhaschke force-pushed the cleanup-chomp branch 2 times, most recently from f088a46 to 3f06d90 Compare December 9, 2018 16:36
- mv collision_distance_field from moveit_experimental to moveit_planners/chomp
- mv chomp_optimizer_adapter.cpp into own package in moveit_planners/chomp
... and removed collision_detector_hybrid_plugin_loader
@rhaschke
Copy link
Copy Markdown
Contributor Author

rhaschke commented Dec 9, 2018

@v4hn I fixed the remaining issues and addressed your comments. Do you want to have a final look?
I would like to continue with the release as announced.

rhaschke added a commit to rhaschke/panda_moveit_config that referenced this pull request Dec 9, 2018
As of moveit/moveit#1251, CHOMP uses automatically
the hybrid collision detector.
@rhaschke rhaschke merged commit e658caf into moveit:melodic-devel Dec 9, 2018
rhaschke added a commit that referenced this pull request Dec 9, 2018
@rhaschke rhaschke deleted the cleanup-chomp branch December 9, 2018 23:31
@v4hn
Copy link
Copy Markdown
Contributor

v4hn commented Dec 10, 2018

I just stumbled over https://travis-ci.org/ros-planning/moveit_visual_tools/jobs/465994691#L479
on the build farm.
Was this only a temporary problem or are the shadow-fixed debs broken for now?

@rhaschke

@rhaschke
Copy link
Copy Markdown
Contributor Author

rhaschke commented Dec 10, 2018

I was so brave to update the binary sources on my machine. There I get a more verbose error msg:
E: /tmp/apt-dpkg-install-i6AXUC/02-ros-melodic-moveit-core_0.10.6-0bionic.20181210.112240_amd64.deb: trying to overwrite '/opt/ros/melodic/include/moveit/collision_distance_field/collision_common_distance_field.h', which is also in package ros-melodic-moveit-experimental 0.10.5-0bionic.20181117.194840

So, we need to "uninstall" the obsolete binary package ros-melodic-moveit-experimental.
@clalancette Is there an option to do so automatically? Manually doing it, resolved the problem locally.

For Travis, I guess we need to wait for dockerhub to rebuild our docker image:
https://hub.docker.com/r/moveit/moveit/builds

However, as ci-shadow-fixed builds on top of ci, this will probably fail too.

I would like to continue this discussion in #1225

rhaschke added a commit to rhaschke/moveit_resources that referenced this pull request Dec 10, 2018
As of moveit/moveit#1251, CHOMP uses automatically the hybrid collision detector.
@rhaschke
Copy link
Copy Markdown
Contributor Author

@v4hn I guess, we should back-port this to Kinetic as well. What do you think?

mlautman pushed a commit to moveit/moveit_resources that referenced this pull request Apr 3, 2019
* cleanup definition of move_group capabilities

* remove explicit loading of "Hybrid" collision detector

As of moveit/moveit#1251, CHOMP uses automatically the hybrid collision detector.
sjahr pushed a commit to sjahr/moveit that referenced this pull request Jun 21, 2024
… objects (moveit#3124) (moveit#1251)

* Add test that trigger the bug in applying scene that have robot state
diffs

* Fix a bug in planning scene diffs where having applying two diffs would cause them to override the aco

* Fix a bug where removing an attached collision object would keep it in the scene

* Update moveit_core/planning_scene/test/test_planning_scene.cpp

Co-authored-by: AndyZe <andyz@utexas.edu>

* Update moveit_core/planning_scene/test/test_planning_scene.cpp

Co-authored-by: AndyZe <andyz@utexas.edu>

* Update moveit_core/planning_scene/src/planning_scene.cpp

Co-authored-by: AndyZe <andyz@utexas.edu>

* Check parent pointer

Co-authored-by: AndyZe <andyz@utexas.edu>

Co-authored-by: AndyZe <andyz@utexas.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants