ML4KP (website)
A library for integrating machine learning tools with state-of-the-art sampling-based kinodynamic planning algorithms.
- Eigen
- Yaml-Cpp
-
Add the ML4KP directory to
$DIRTMP_PATH
. -
Clone Bullet: git clone https://github.com/aravindsiv/bullet3.git
-
Build Bullet:
cmake .. && make -j4 && make install
- Add the Bullet directory to
$BULLET_PHYSICS_PATH
.
- Download and extract the stable build of LibTorch (CPU) to
src/prx/external
. - Add the location to
$Torch_DIR
.
Add the DirtMP directory to DIRTMP_PATH.
cd ~ /PATH/TO/DIRTMP/
export DIRTMP_PATH=$(pwd)
Add to .bashrc
(most linux distros & older macos):
cd ~/PATH/TO/DIRTMP/
echo "export DIRTMP_PATH=$(pwd)" >> ~/.bashrc
Add .zshrc
(macOS & some linux distros):
cd ~/PATH/TO/DIRTMP/
echo "export DIRTMP_PATH=$(pwd)" >> ~/.zshrc
To build the package:
cd $DIRTMP_PATH
mkdir build
cd build
cmake ..
make -j4
When you make code changes, you only need to make
inside the build
directory:
make -j4
By default, all options are on. To turn off any option, set it off while configuring: I.e. to turn off Tests:
cmake -DBUILD_TESTS=OFF ..
make -j4
BUILD_FOR_PYTHON
: Compile python bindingsBUILD_FOR_BULLET
: Compile the bullet interfaceBUILD_FOR_TORCH
: Compile using the Torch libraryBUILD_TESTS
: Compile the unit tests. Mostly for developers of the library.
cmake -DBUILD_TESTS=ON .. # By default, this option is turned on
make -j4
ctest
To run an executable,
cd ../bin
./EXECUTABLE_NAME
Set pythonpath (temporal):
export PYTHONPATH=${DIRTMP_PATH}/lib
Add to .bashrc
(most linux distros & older macos):
echo "export PYTHONPATH=\${DIRTMP_PATH}/lib:\${PYTHONPATH}" >> .bashrc
Add to .zshrc
(macOS & some linux distros):
echo "export PYTHONPATH=\${DIRTMP_PATH}/lib:\${PYTHONPATH}" >> .zshrc
Running some examples:
python3.9 ${DIRTMP_PATH}/examples/acrobot/rrt.py
python3.9 ${DIRTMP_PATH}/examples/acrobot/sst.py
python3.9 ${DIRTMP_PATH}/examples/acrobot/dirt.py
Please create an issue on GitHub. Be as descriptive as possible and provide a minimal working example that reproduces the issue if you can.