Loading OMPL (C++ Open Motion Planning Library) into Matlab

조회 수: 10 (최근 30일)
Jon
Jon 2012년 5월 24일
Hi,
I'm trying to use the Open Motion Planning Library (OMPL) in Matlab through loadlibrary in 64-bit Linux. In my installation, I've placed the libompl.so in my Matlab working directory along with a folder containing the necessary header files. This all seems to be working correctly; however, OMPL requires boost and I cannot seem to make it find the necessary header files.
Specifically, I tell it to load the libompl shared library, use the header "ompl/control/planners/rrt/RRT" and include the present working directory for other headers, e.g.
loadlibrary('libompl', 'ompl/control/planners/rrt/RRT', 'includepath', pwd)
this seems to find all the OMPL headers correctly and even some of the boost headers, but misses not all of the boost headers. It's a lot of error output, but a representative block is:
Output from preprocessor is:In file included from /usr/include/boost/config.hpp:40,
from /usr/include/boost/concept/assert.hpp:7,
from /usr/include/boost/concept_check.hpp:18,
from /work/ompl/base/State.h:40,
from /work_dir/ompl/base/SpaceInformation.h:40,
from /work_dir/ompl/base/Planner.h:40,
from /work_dir/ompl/control/planners/PlannerIncludes.h:40,
from /work_dir/ompl/control/planners/rrt/RRT.h:40:
/usr/include/boost/config/select_stdlib_config.hpp:17:19: error: cstddef: No such file or directory
On my installation, cstddef.hpp is located at /usr/include/boost/pending, so I've tried using the 'includepath' and 'addheader' options respectively to no luck. i.e., neither
loadlibrary('libompl','ompl/control/planners/rrt/RRT', 'includepath', pwd, 'includepath', '/usr/include/boost/pending')
or
loadlibrary('libompl','ompl/control/planners/rrt/RRT', 'includepath', pwd, 'addheader', '/usr/include/boost/pending/cstddef')
worked or had any effect on the error messages. In all the cases, cstddef.hpp is still not found.
I'm new to mex and only have limited experience with the Linux build environment in general, so any advice on where to start is appreciated.
Thanks, Jon
  댓글 수: 1
Daniel Felipe Perez Ramirez
Daniel Felipe Perez Ramirez 2018년 5월 8일
Hello Jon, have you found a solution to integrate the OMPL in Matlab? I'm currently facing the same situation, would appreciate to hear from you.
Thanks, Daniel

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by