Giter VIP home page Giter VIP logo

sofa-haptic-bunny's Introduction

SOFA demos

This repository contains some simple haptic demos in SOFA to use for demonstrations or university tours. It requires from a 3DSystem Haptic device. The demo has been tested using the TouchX device. It can be adapted to be used with a Novint Falcon, but it will require additional work and a different SOFA plugin.

simualtion snapshot

Pre-requisites

This demo requires SOFA to be installed with some additional plugins. For this reason, it is necessary to build it from source. Follow the instructions for your OS from their official webpage Windows or Linux. During the installation, you will have to activate the Geomagic plugin and the SofaPython3 plugin. Geomagic requires from OpenHaptics, you can find how to install it from the official website or you can follow the first section of my own tutorial on how to setup the ToucX device with OpenHaptics.

Once you have SOFA installed, I recommend installing Miniconda3 to handle the different Python packages. First, add the SofaPython3 site-packages to the $PYTHONPATH so any of your python executable has access to the libraries. If you are using Linux, use the following commands to add it to the ~/.bashrc file:

echo "export PYTHONPATH=/pathtoSofa/lib/python3/site-packages:$PYTHONPATH" >> ~/.bashrc
conda create -n pySOFA python=3.9 -y
conda activate pySOFA
pip install -r requirements.txt

Running the simulation

Open a terminal, activate the pySOFA conda environment and run the python file. python pathtofolder/haptic_demo.py.

Resources

  1. SOFA
  2. SofaPython3
  3. SoftRobots plugin
  4. OpenHaptics

sofa-haptic-bunny's People

Contributors

mikelitu avatar

Watchers

 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.