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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for spatialdyn-1.5.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 76f467c3dc8a9dd90e0a114c95c51a8e0897cd007652b2787e98f909debe776d
MD5 f456a77d4b0efeb4d5a4c7a03c9bcfa6
BLAKE2b-256 3a54c36168a389d6202e8ff046cbdc70032c5d1d860b47d528152e3f5926b2db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spatialdyn-1.5.1-cp310-cp310-macosx_10_14_universal2.whl
Algorithm Hash digest
SHA256 d25ea6da3eb1b9c9a893fb0edcc8ec66df084581d617430c0bc491b2310d8343
MD5 a56fc70f34cb574765f25b908fe7ed6b
BLAKE2b-256 a3e8c12c30328cdacf6b1c779d953207aa2031e9dbd76e32b9340d7b0d03719c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spatialdyn-1.5.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e5b2a0b7cb15df959a441d37bc2814bd21bbe37098796b9cc68cda966e25886a
MD5 aee70e2060448736bc082551324d5757
BLAKE2b-256 78df8b0097b0aa4167284f0386ec8e5ab8ba7613495b07b873ac62cc311e14f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spatialdyn-1.5.1-cp39-cp39-macosx_10_14_universal2.whl
Algorithm Hash digest
SHA256 9e35b8ec8d87e348589281bbb8f3478f6a82e5cc6e159b2cf698a66a3cdbf122
MD5 c1a0af7ec5307fb97e01b57f65ddac0d
BLAKE2b-256 d89c18240017aa898eeebb44e686f5aa897917f00f78d644019da0fc10004a67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spatialdyn-1.5.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c256fd0d45d151192233a19d1f6c51225465cb293d18f5736abf3f9b4f7121a2
MD5 8f90295e84f709a6eb948023e5304d80
BLAKE2b-256 6ac9864c2661096518ae2df34216958e3deab9eda5bc0135e5aeb24c4233d553

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spatialdyn-1.5.1-cp38-cp38-macosx_10_14_universal2.whl
Algorithm Hash digest
SHA256 fb0e3bcf3579215f6b00abf157f31be9abda6d4499681394c14a1eb8086320c1
MD5 c1c7e2956600332552c0e3946c190dac
BLAKE2b-256 db57ca1048b52286a454f6445f6d5ecf79fbeb390d85f1f1814c08276933006e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spatialdyn-1.5.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 721444bb48036793e1a1d180a111b75b65bbccf28270799428a0e86cd9f83c62
MD5 7053e4fe1f5ab26b43a414625ea645d9
BLAKE2b-256 95ba43f4e38d96ab5c859bf8cb42b6327ad6805bf36495492910f549b95d7d67

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