All Projects → ipc-sim → ipc-toolkit

ipc-sim / ipc-toolkit

Licence: MIT license
A set of reusable functions to integrate IPC into an existing simulation.

Programming Languages

C++
36643 projects - #6 most used programming language
CMake
9771 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to ipc-toolkit

beems
a bee-queue based minimalist toolkit for building fast, decentralized, scalable and fault tolerant microservices
Stars: ✭ 33 (-60.71%)
Mutual labels:  toolkit
Standard-Toolkit
An update to Component factory's krypton toolkit to support .NET Framework 4.6.2 - 4.8.1 to .NET Core/.NET
Stars: ✭ 194 (+130.95%)
Mutual labels:  toolkit
axion
A toolkit for CTFs
Stars: ✭ 15 (-82.14%)
Mutual labels:  toolkit
OpenpilotToolkit
Openpilot Toolkit (OPTK) is a class library and toolkit for interacting with your openpilot / commaai devices.
Stars: ✭ 55 (-34.52%)
Mutual labels:  toolkit
creative-coding-notebooks
🎨 An authorial collection of fundamental recipes on Creative Coding and Recreational Programming.
Stars: ✭ 17 (-79.76%)
Mutual labels:  physics-simulation
Libbulletjme
A JNI interface to Bullet Physics and V-HACD
Stars: ✭ 55 (-34.52%)
Mutual labels:  physics-simulation
Krypton-Toolkit-Suite-NET-Core
A update to Component factory's krypton toolkit to support .NET Framework 3.5 to .NET Core
Stars: ✭ 27 (-67.86%)
Mutual labels:  toolkit
RaiSimUnity
A visualizer for RaiSim based on Unity
Stars: ✭ 31 (-63.1%)
Mutual labels:  physics-simulation
terran
A human perception library
Stars: ✭ 98 (+16.67%)
Mutual labels:  toolkit
simppl
simppl::dbus - an easy-to-use C++ D-Bus wrapper
Stars: ✭ 51 (-39.29%)
Mutual labels:  ipc
sweekt
🍭 Some sugar to sweeten Kotlin development.
Stars: ✭ 35 (-58.33%)
Mutual labels:  toolkit
pure-orm
A pure ORM for writing native SQL queries yielding pure business objects
Stars: ✭ 349 (+315.48%)
Mutual labels:  toolkit
arcgis-runtime-toolkit-java
Runtime Java SE toolkit
Stars: ✭ 16 (-80.95%)
Mutual labels:  toolkit
TCSTK-Angular
TIBCO Cloud™ Composer - Angular Libraries
Stars: ✭ 12 (-85.71%)
Mutual labels:  toolkit
framestack
Tools, Frameworks & Libraries to help you build your projects ✨
Stars: ✭ 27 (-67.86%)
Mutual labels:  toolkit
ctx-core
A composable monorepo web-service/front-end toolkit
Stars: ✭ 25 (-70.24%)
Mutual labels:  toolkit
com.xrtk.oculus
The Oculus platform components for the XRTK
Stars: ✭ 11 (-86.9%)
Mutual labels:  toolkit
coreipc
WCF-like service model API for communication over named pipes and TCP. .NET and node.js clients.
Stars: ✭ 22 (-73.81%)
Mutual labels:  ipc
pg-ipc
IPC over PostgreSQL LISTEN/NOTIFY/UNLISTEN exposed as an EventEmitter
Stars: ✭ 27 (-67.86%)
Mutual labels:  ipc
socket
Dazzle Async Socket
Stars: ✭ 19 (-77.38%)
Mutual labels:  ipc

IPC Toolkit

Build Python Docs License

Description

IPC Toolkit is a set of reusable functions to integrate Incremental Potential Contact (IPC) into a simulation.

Features

  • IPC barrier function and its derivatives and adaptive barrier stiffness algorithm
  • Broad-phase and narrow-phase continuous collision detection (CCD)
  • Distance computation and derivatives between edges in 2D and triangles in 3D
  • Distance barrier potential and its derivatives
  • Smooth and lagged dissipative friction potential and its derivatives

Limitations

This is not a full simulation library. As such it does not include any physics or solvers. For a full simulation implementation, we recommend PolyFEM (a finite element library) or Rigid IPC (rigid-body dynamics) both of which utilize the IPC Toolkit.

Build

The easiest way to add the toolkit to an existing CMake project is to download it through CMake. CMake provides functionality for doing this called FetchContent (requires CMake ≥ 3.14). We use this same process to download all external dependencies.

For example,

include(FetchContent)
FetchContent_Declare(
    ipc_toolkit
    GIT_REPOSITORY https://github.com/ipc-sim/ipc-toolkit.git
    GIT_TAG ${IPC_TOOLKIT_GIT_TAG}
    GIT_SHALLOW TRUE
)
FetchContent_MakeAvailable(ipc_toolkit)

where IPC_TOOLKIT_GIT_TAG is set to the version of the toolkit you want to use. This will download and add the toolkit to CMake. The toolkit can then be linked against using

# Link against the IPC Toolkit
target_link_libraries(${PROJECT_NAME} PUBLIC ipc::toolkit)

where PROJECT_NAME is the name of your library/binary.

Dependencies

All required dependencies are downloaded through CMake depending on the build options.

The following libraries are used in this project:

  • Eigen: linear algebra
  • libigl: basic geometry functions and predicates
  • TBB: parallelization
  • Tight-Inclusion: correct (conservative) CCD
  • spdlog: logging information
  • robin-map: faster hash set/map than std::unordered_set/std::unordered_map
  • Abseil: hashing utilities

Optional

  • GMP: rational arithmetic used for exact intersection checks
    • Enable by using the CMake option IPC_TOOLKIT_WITH_RATIONAL_INTERSECTION
    • GMP must be installed at a system level
  • Etienne Vouga's Collision Detection Library: inexact CCD
    • Included for comparison with the original IPC library
    • Enable by disabling the CMake option IPC_TOOLKIT_WITH_CORRECT_CCD
    • Replaces the default Tight-Inclusion CCD

Usage

The main functionality is provided in the ipc.hpp header. Use the prefix directory ipc to include all header files (e.g. #include <ipc/ipc.hpp>).

Unit Tests

We provide unit tests for ensuring the correctness of our algorithmic pieces. To enable the unit tests use the CMake option IPC_TOOLKIT_BUILD_UNIT_TESTS.

Dependencies

The following are downloaded when unit tests are enabled (IPC_TOOLKIT_BUILD_TESTS)

Python Bindings

We provide Python bindings for functions in the toolkit using pybind11.

For more information see the Python documentation.

Contributing

This project is open to contributors! Contributions can come in the form of feature requests, bug fixes, documentation, tutorials and the like. We highly recommend filing an Issue first before submitting a Pull Request.

Simply fork this repository and make a Pull Request! We would appreciate:

  • Implementation of new features
  • Bug Reports
  • Documentation
  • Testing

Citation

If you use the IPC Toolkit in your project, please consider citing our work:

@software{ipc_toolkit,
  author = {Zachary Ferguson and others},
  title = {{IPC Toolkit}},
  url = {https://ipc-sim.github.io/ipc-toolkit/},
  year = {2020},
}

Additionally, you can cite the original IPC paper:

@article{Li2020IPC,
    author = {Minchen Li and Zachary Ferguson and Teseo Schneider and Timothy Langlois and
        Denis Zorin and Daniele Panozzo and Chenfanfu Jiang and Danny M. Kaufman},
    title = {Incremental Potential Contact: Intersection- and Inversion-free Large Deformation Dynamics},
    journal = {{ACM} Trans. Graph. (SIGGRAPH)},
    year = {2020},
    volume = {39},
    number = {4},
    articleno = {49}
}

License

MIT License © 2020, the IPC-Sim organization (See LICENSE for details)

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].