ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Hello again,
I figured it out, so I thought I would come back to share my solution. I hope it can help other people.
As of today (July 2018), the solution to implementing a new sampler (or a planner for that matter) in MoveIt works as follow:
sudo apt-get remove
and sudo apt-get purge
on the libompl-dev
package.planning_context_manager.h
and planning_context_manager.cpp
to add your planner just like the original ones. This comes from this webarchive. ${CMAKE_INSTALL_LIBDIR}
to the path where the OMPL binaries are usually installed (their names are libompl.so or libompl.so.version_number). For example, on my system, it was /opt/ros/kinetic/lib/x86_64_linux_gnu
. This step can be avoided if you understand CMake and source building better than me. You can probably tell catkin to link to the right place (some build or include folder in the workspace) while building MoveIt, but I don't know how to do that.sudo catkin build
. You need sudo because it will install the libs in /opt. I know this is unsafe, and I guess it shows that I don't really know what I'm doing. But it worked for me.That's it. I'm pretty sure most steps are useless to someone who understands build systems but that's what solved my problem.