sch-core-python
June 2, 2026 ยท View on GitHub
Python bindings for sch-core. These bindings were initially part of Tasks by @jorisv.
Installing
Ubuntu LTS (22.04, 24.04, 26.04)
Note: the packaged version is the BSD-2-Clause library, if you require inter-penetration depth computation, you should build the library yourself.
You must first setup our package mirror:
curl -1sLf \
'https://dl.cloudsmith.io/public/mc-rtc/stable/setup.deb.sh' \
| sudo -E bash
You can also choose the head mirror which will have the latest version of this package:
curl -1sLf \
'https://dl.cloudsmith.io/public/mc-rtc/stable/setup.deb.sh' \
| sudo -E bash
You can then install the package:
sudo apt install python-sch-core python3-sch-core
Conan
Install the latest version using conan
conan remote add multi-contact https://api.bintray.com/conan/gergondet/multi-contact
# Install the latest release
conan install sch-core-python/latest@multi-contact/stable
# Or install the latest development version
# conan install sch-core-python/latest@multi-contact/dev
Build from source
Dependencies
- sch-core
- Python 2 or 3
- Cython
- SpaceVecAlg (including Python bindings)
- Eigen 3 (including Python bindings)
Building
git clone --recursive https://github.com/jrl-umi3218/sch-core-python
cd sch-core-python
mkdir _build
cd _build
cmake [options] ..
make && make intall
CMake options
By default, the build will use the python and pip command to install the bindings for the default system version (this behaviour can be used to build the bindings in a given virtualenv). The following options allow to control this behaviour:
PYTHON_BINDINGBuild the python binding (ON/OFF, default: ON)PYTHON_BINDING_USER_INSTALLInstall using the--userswitch (ON/OFF, default: OFF, ON for Windows)PYTHON_BINDING_FORCE_PYTHON2: usepython2andpip2instead ofpythonandpipPYTHON_BINDING_FORCE_PYTHON3: usepython3andpip3instead ofpythonandpipPYTHON_BINDING_BUILD_PYTHON2_AND_PYTHON2: builds two sets of bindings one withpython2andpip2, the other withpython3andpip3BUILD_TESTINGEnable unit tests building (ON/OFF, default: ON)