Skip to main content

Rigid body dynamics library

Project description

Builds Tests Docs

spatial-dyn

spatial-dyn is a C++/Python rigid body dynamics library.

See the documentation for spatial-dyn here.

Installation

This library is written in C++ with Python bindings automatically generated with pybind11. It has been tested on Ubuntu 18.04, Ubuntu 20.04, and macOS 10.15 Catalina.

Compilation requirements:

  • cmake >= 3.11
  • C++17 support (gcc >= 7, clang >= 7).

See Updating CMake for details on how to install the latest cmake. Ubuntu 20.04 comes with a sufficient version of cmake out of the box.

C++ only

The C++ portion of spatial-dyn is header-only, but to add spatial-dyn as a cmake dependency, you can run the following:

mkdir build
cmake -B build

Python only

Use pip to install spatial-dyn in your virtual environment.

pip install .

You can now import the spatialdyn package in Python.

import spatialdyn as dyn

C++ and Python

An in-place pip install will run the appropriate CMake command to build spatial-dyn locally in the ./build folder. This will give you access to the cmake configuration files for C++ as well as the spatialdyn package in Python.

pip install -e .

Updating CMake

Ubuntu 18.04

The simplest way to install the latest version of cmake is through pip:

pip install cmake

You can also install it through apt:

sudo apt-get update && sudo apt-get install -y apt-transport-https ca-certificates gnupg wget
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
sudo apt-add-repository -y 'deb https://apt.kitware.com/ubuntu/ bionic main'
sudo apt-get update && sudo apt-get install -y cmake kitware-archive-keyring
sudo rm /etc/apt/trusted.gpg.d/kitware.gpg

macOS

Install cmake through Homebrew:

brew install cmake

Or through pip:

pip3 install cmake

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

spatialdyn-1.5.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

spatialdyn-1.5.2-cp310-cp310-macosx_10_14_universal2.whl (2.0 MB view details)

Uploaded CPython 3.10 macOS 10.14+ universal2 (ARM64, x86-64)

spatialdyn-1.5.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

spatialdyn-1.5.2-cp39-cp39-macosx_10_14_universal2.whl (2.0 MB view details)

Uploaded CPython 3.9 macOS 10.14+ universal2 (ARM64, x86-64)

spatialdyn-1.5.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

spatialdyn-1.5.2-cp38-cp38-macosx_10_14_universal2.whl (2.0 MB view details)

Uploaded CPython 3.8 macOS 10.14+ universal2 (ARM64, x86-64)

spatialdyn-1.5.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

File details

Details for the file spatialdyn-1.5.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for spatialdyn-1.5.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a1d4f6b397ec8d2ff90a4ee91a35706f75526187fd01fc168856d8deb8dcce06
MD5 77ae69ebf274f31ef40ac34b60a4a7dd
BLAKE2b-256 bd76e29331f723c69010ca0ebe86d099c128afde7524b1254362dc69ccaca7fc

See more details on using hashes here.

File details

Details for the file spatialdyn-1.5.2-cp310-cp310-macosx_10_14_universal2.whl.

File metadata

File hashes

Hashes for spatialdyn-1.5.2-cp310-cp310-macosx_10_14_universal2.whl
Algorithm Hash digest
SHA256 89a79c7e1d15ee0d57d92454c02a336ba5b5a3ac4be927a6e9e9aee8da63a28a
MD5 a898ad06f516449adf8ab28e9cb27caf
BLAKE2b-256 ab738ad3edebf85cd42892b49fdcacf015b3f48bb97f350bcb3584ed2bc9b52b

See more details on using hashes here.

File details

Details for the file spatialdyn-1.5.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for spatialdyn-1.5.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fbfc8b6c1bab2e3a6420f46e6cf21e54f951a2f8b844a52e01e613d88d9a8a6a
MD5 a0e16cf5ecbbc6e98c6f06c8b9067431
BLAKE2b-256 4bcc495691bbd4277924543a65caeb2db2895207fc91879f4cf0235b9c929ad7

See more details on using hashes here.

File details

Details for the file spatialdyn-1.5.2-cp39-cp39-macosx_10_14_universal2.whl.

File metadata

File hashes

Hashes for spatialdyn-1.5.2-cp39-cp39-macosx_10_14_universal2.whl
Algorithm Hash digest
SHA256 e47eb7ab34949e3e6f0fe2d97a907192723e3e9adb08f65b5eaccd77ffdc7712
MD5 9c785a56b6d7459b7eab75915d3d6047
BLAKE2b-256 a5e27a0108c5f061965cc6a974c51e0fa20cf9adc96a7b763e573c66de167258

See more details on using hashes here.

File details

Details for the file spatialdyn-1.5.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for spatialdyn-1.5.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dbed54ccb2b2416d995b3723602e398bc809165470838dea78a2f049f6b239e9
MD5 5f335ef22e9d331d4c56000b72908d55
BLAKE2b-256 44b01f93ccbc7da45861987f78a5e7f08d6153cda4d57cbd89214af1cadede87

See more details on using hashes here.

File details

Details for the file spatialdyn-1.5.2-cp38-cp38-macosx_10_14_universal2.whl.

File metadata

File hashes

Hashes for spatialdyn-1.5.2-cp38-cp38-macosx_10_14_universal2.whl
Algorithm Hash digest
SHA256 755f60ab12cbc27d645ca0692f7fb97d4f83bd417fddc77da20e67d0b04b926d
MD5 0b0e3e5d2ec919354751628d6d2ff98b
BLAKE2b-256 59f7c268dbc5505230b402f929843efe42bb447ce9dbc9ad55aadd3fc36f11de

See more details on using hashes here.

File details

Details for the file spatialdyn-1.5.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for spatialdyn-1.5.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f8105267629ada091da84d047e1505fcd3fae1aa669147d75515be675404e80c
MD5 48f0a65cc2496a74bfc2b245c16af178
BLAKE2b-256 d67808d48e5ea7e35acef28f598f5a1f40adf2a90a90877e5f3d9714679c4ae1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page