Giter Club home page Giter Club logo

spatial-dyn's Introduction

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

spatial-dyn's People

Contributors

actions-user avatar dependabot[bot] avatar tmigimatsu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.