Open cshr25 opened 1 month ago
Hi @cshr25,
Thank you for reaching out. The install-ompl-ubuntu.sh
script is from the the original OMPL library from which this codebase is forked from. The script clones the OMPL repository from Github and builds it locally.
Since this repository is not part of that original one, it will not be built when running that script. You'll instead need to install this repository the old fashioned way:
mkdir -p build/Release
cd build/Release
cmake ../..
make -j 4 # replace "4" with the number of cores on your machine for a faster build
make install # install the library to use with K-CBS-Demos
Be sure to install the list of dependencies for OMPL prior to building the code. I should also mention that I have not written python bindings for the multirobot/
directory so you will need to use the C++ API's.
Give this a shot and let me know if you have any issues.
Hi Justin, thank you so much! Sorry I am completely unfamiliar with the make process. I successfully installed the branched OMPL. But when I tried to make K-CBS demo, I got a build error:
[ 3%] Building CXX object CMakeFiles/demo_Benchmark_Congested10x10_7robots_dyn2ndOrderCars.dir/src/demo_Benchmark_Congested10x10_7robots_dyn2ndOrderCars.cpp.o
In file included from /home/cidi/KCBS/K-CBS-Demos/src/demo_Benchmark_Congested10x10_7robots_dyn2ndOrderCars.cpp:44:
/home/cidi/KCBS/K-CBS-Demos/includes/SystemMergerDatabase.h: In constructor ‘homogeneous2ndOrderCarSystemMerger::homogeneous2ndOrderCarSystemMerger(const SpaceInformationPtr&, ompl::multirobot::base::ProblemDefinitionPtr, std::unordered_map<std::cxx11::basic_string
In file included from /usr/local/include/ompl-1.6/ompl/multirobot/control/SpaceInformation.h:42,
from /home/cidi/KCBS/K-CBS-Demos/includes/SystemMergerDatabase.h:39,
from /home/cidi/KCBS/K-CBS-Demos/src/demo_Benchmark_Congested10x10_7robotsdyn2ndOrderCars.cpp:44:
/usr/local/include/ompl-1.6/ompl/multirobot/control/SystemMerger.h:68:17: note: candidate: ‘ompl::multirobot::control::SystemMerger::SystemMerger(const SpaceInformationPtr&)’
SystemMerger(const SpaceInformationPtr &si) : si(si)
^~~~
/usr/local/include/ompl-1.6/ompl/multirobot/control/SystemMerger.h:68:17: note: candidate expects 1 argument, 2 provided
/usr/local/include/ompl-1.6/ompl/multirobot/control/SystemMerger.h:64:19: note: candidate: ‘ompl::multirobot::control::SystemMerger::SystemMerger(const ompl::multirobot::control::SystemMerger&)’
class SystemMerger
^~~~
/usr/local/include/ompl-1.6/ompl/multirobot/control/SystemMerger.h:64:19: note: candidate expects 1 argument, 2 provided
/usr/local/include/ompl-1.6/ompl/multirobot/control/SystemMerger.h:64:19: note: candidate: ‘ompl::multirobot::control::SystemMerger::SystemMerger(ompl::multirobot::control::SystemMerger&&)’
/usr/local/include/ompl-1.6/ompl/multirobot/control/SystemMerger.h:64:19: note: candidate expects 1 argument, 2 provided
In file included from /home/cidi/KCBS/K-CBS-Demos/src/demo_Benchmark_Congested10x10_7robots_dyn2ndOrderCars.cpp:44:
/home/cidi/KCBS/K-CBS-Demos/includes/SystemMergerDatabase.h: In member function ‘virtual std::pair<const std::shared_ptr~~~~~~~
/usr/include/boost/mpl/assert.hpp:83:5: note: candidate: ‘template~~~
/usr/include/boost/mpl/assert.hpp:83:5: note: template argument deduction/substitution failed:
/usr/include/boost/geometry/strategies/within.hpp:80:5: note: cannot convert ‘boost::geometry::strategy::within::services::default_strategy<boost::geometry::model::d2::point_xy
::type strategy_type; ^
~~~~ CMakeFiles/demo_Benchmark_Congested10x10_7robots_dyn2ndOrderCars.dir/build.make:75: recipe for target 'CMakeFiles/demo_Benchmark_Congested10x10_7robots_dyn2ndOrderCars.dir/src/demo_Benchmark_Congested10x10_7robots_dyn2ndOrderCars.cpp.o' failed make[2]: [CMakeFiles/demo_Benchmark_Congested10x10_7robots_dyn2ndOrderCars.dir/src/demo_Benchmark_Congested10x10_7robots_dyn2ndOrderCars.cpp.o] Error 1 CMakeFiles/Makefile2:106: recipe for target 'CMakeFiles/demo_Benchmark_Congested10x10_7robots_dyn2ndOrderCars.dir/all' failed make[1]: [CMakeFiles/demo_Benchmark_Congested10x10_7robots_dyn2ndOrderCars.dir/all] Error 2 Makefile:90: recipe for target 'all' failed make: *** [all] Error 2
Is it some version mismatch issue? Thanks!
Yes, it looks like it could be that. You will need to be on the same branch for both repositories (either main
or develop
). Mismatching the branches could cause problems. Are the two repositories on the same branch?
Yes, it looks like it could be that. You will need to be on the same branch for both repositories (either
main
ordevelop
). Mismatching the branches could cause problems. Are the two repositories on the same branch?
Hum, I tried making both of them on 'main' branch, but still that didn't work out.
HI I was trying to run K-CBS demo, after cmake this repository, I ran the install-ompl-ubuntu.sh and OMPL seemed to be installed. But when I tried to make in K-CBS demo, it informed me that <ompl/multirobot/control/SpaceInformation.h> can't be found. I checked the ompl folder and there is no multirobot folder in it. What is the problem? Thank you!