All Projects → ignitionrobotics → ign-physics

ignitionrobotics / ign-physics

Licence: Unknown, Apache-2.0 licenses found Licenses found Unknown LICENSE Apache-2.0 COPYING
Abstract physics interface designed to support simulation and rapid development of robot applications.

Programming Languages

C++
36643 projects - #6 most used programming language
c
50402 projects - #5 most used programming language
CMake
9771 projects

Projects that are alternatives of or similar to ign-physics

ign-rendering
C++ library designed to provide an abstraction for different rendering engines. It offers unified APIs for creating 3D graphics applications.
Stars: ✭ 34 (-15%)
Mutual labels:  gazebo, robotics-simulation, ignition-robotics
ign-sensors
Provides numerous sensor models designed to generate realistic data from simulation environments.
Stars: ✭ 30 (-25%)
Mutual labels:  gazebo, robotics-simulation, ignition-robotics
ign-math
General purpose math library for robot applications.
Stars: ✭ 35 (-12.5%)
Mutual labels:  gazebo, robotics-simulation, ignition-robotics
Physac
2D physics header-only library for videogames developed in C using raylib library.
Stars: ✭ 151 (+277.5%)
Mutual labels:  physics, physics-engine
Physics3d
A 3D physics engine
Stars: ✭ 101 (+152.5%)
Mutual labels:  physics, physics-engine
Nphysics
2 and 3-dimensional rigid body physics engine for Rust.
Stars: ✭ 1,530 (+3725%)
Mutual labels:  physics, physics-engine
physx-js
PhysX for JavaScript
Stars: ✭ 80 (+100%)
Mutual labels:  physics, physics-3d
P2.js
JavaScript 2D physics library
Stars: ✭ 2,367 (+5817.5%)
Mutual labels:  physics, physics-engine
Py3ODE
Port of PyODE for Python 3
Stars: ✭ 29 (-27.5%)
Mutual labels:  physics, physics-engine
Libbulletjme
A JNI interface to Bullet Physics and V-HACD
Stars: ✭ 55 (+37.5%)
Mutual labels:  physics, physics-3d
Legion-Engine
Rythe is a data-oriented C++17 game engine built to make optimal use of modern hardware.
Stars: ✭ 502 (+1155%)
Mutual labels:  physics, physics-engine
Torque
2d 纯计算高性能刚体物理引擎
Stars: ✭ 62 (+55%)
Mutual labels:  physics, physics-engine
Specs Physics
nphysics integration for the Specs entity component system
Stars: ✭ 94 (+135%)
Mutual labels:  physics, physics-engine
Matter Js
a 2D rigid body physics engine for the web ▲● ■
Stars: ✭ 12,522 (+31205%)
Mutual labels:  physics, physics-engine
bevy verlet
Verlet physics plugin for bevy.
Stars: ✭ 29 (-27.5%)
Mutual labels:  physics, physics-3d
kosm
Kosm for Android source code
Stars: ✭ 33 (-17.5%)
Mutual labels:  physics, physics-engine
gazebo tutorials
Tutorials for gazebo
Stars: ✭ 78 (+95%)
Mutual labels:  gazebo, robotics-simulation
magpylib
Python package for computation of magnetic fields of magnets, currents and moments.
Stars: ✭ 95 (+137.5%)
Mutual labels:  physics
hypergravity
Gravity simulation in Hyper terminal
Stars: ✭ 22 (-45%)
Mutual labels:  physics
maelstrom
Numerical simulation of magnetohydrodynamics.
Stars: ✭ 28 (-30%)
Mutual labels:  physics

Ignition Physics : Physics classes and functions for robot applications

Maintainer: scpeters AT openrobotics DOT org

GitHub open issues GitHub open pull requests Discourse topics Hex.pm

Build Status
Test coverage codecov
Ubuntu Bionic Build Status
Homebrew Build Status
Windows Build Status

Ignition Physics, a component of Ignition Robotics, provides an abstract physics interface designed to support simulation and rapid development of robot applications.

Table of Contents

Motivation

Features

Install

Usage

Folder Structure

Code of Conduct

Contributing

Versioning

License

Motivation

Many physics simulation software libraries have been designed for different applications (gaming, robotics, science) and with different features (rigid or deformable contact, 2d or 3d). Ignition Physics is designed on the premise that there is not a single physics engine that is universally best for all simulation contexts. It should be possible to support a different set of features for each physics engine according to its capabilities. A physics engine can then be chosen for each application based on its context.

Features

Ignition Physics provides the following functionality:

  • Granular definition of physics engine features as optional API's.
  • Plugin interface for loading physics engines with requested features at runtime.
  • Features for common aspects of rigid body dynamic simulation
    • Construct model from SDFormat file.
    • Collision shapes (such as box, sphere, cylinder, capsule, ellipsoid, mesh, heightmap).
    • Joint types (such as revolute, prismatic, fixed, ball, screw, universal).
    • Step simulation, get/set state, apply inputs.
  • Reference implementation of physics plugin using dartsim.
  • A custom physics engine focused on fast kinematics of large environments, the Trivial Physics Engine.
  • CompositeData structures for efficiently using native types in API.

Install

See the installation tutorial.

Usage

Please refer to the examples directory.

Documentation

API and tutorials can be found at https://ignitionrobotics.org/libs/physics.

You can also generate the documentation from a clone of this repository by following these steps.

  1. You will need Doxygen. On Ubuntu Doxygen can be installed using

    sudo apt-get install doxygen
    
  2. Clone the repository

    git clone https://github.com/ignitionrobotics/ign-physics -b ign-physics5
    
  3. Configure and build the documentation.

    cd ign-physics; mkdir build; cd build; cmake ../; make doc
    
  4. View the documentation by running the following command from the build directory.

    firefox doxygen/html/index.html
    

Testing

Follow these steps to run tests and static code analysis in your clone of this repository.

  1. Follow the source install instruction.

  2. Run tests.

    make test
    
  3. Static code checker.

    make codecheck
    

Folder Structure

Refer to the following table for information about important directories and files in this repository.

ign-physics
├── bullet                    Files for bullet plugin component.
├── dartsim                   Files for dartsim plugin component.
├── example                   Examples about how to use the library
├── heightmap                 Heightmap related header files.
├── include/ignition/physics  Header files.
├── mesh                      Files for mesh component.
├── resources                 Model and mesh resource files used by tests.
├── sdf                       Files for sdf component.
├── src                       Source files and unit tests.
├── test
│    ├── benchmark            Benchmark tests.
│    ├── integration          Integration tests.
│    ├── performance          Performance tests.
│    ├── plugins              Plugins used in tests.
│    ├── regression           Regression tests.
│    └── static_assert        Tests involving compilation failures.
├── tpe
│    ├── lib                  Implementation of TPE engine.
│    └── plugin               Files for TPE plugin component.
├── tutorials                 Tutorials, written in markdown.
├── Changelog.md              Changelog.
└── CMakeLists.txt            CMake build script.

Contributing

Please see the contribution guide.

Code of Conduct

Please see CODE_OF_CONDUCT.md.

Versioning

This library uses Semantic Versioning. Additionally, this library is part of the Ignition Robotics project which periodically releases a versioned set of compatible and complimentary libraries. See the Ignition Robotics website for version and release information.

License

This library is licensed under Apache 2.0. See also the LICENSE file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].