Giter Site home page Giter Site logo

echandler5956f / huron_centroidal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nmansard/jnrh2023

2.0 0.0 0.0 377.45 MB

A light-weight and extensible C++ library for Guass-Legendre Pseudospectral Collocation of Switched Systems using Casadi and Pinocchio.

Python 30.00% Jupyter Notebook 0.03% PowerShell 0.01% Shell 0.01% CMake 0.24% C 2.69% C++ 64.56% SWIG 1.08% Cython 0.88% Batchfile 0.01% CSS 0.27% TeX 0.01% JavaScript 0.14% HTML 0.03% Lua 0.01% Makefile 0.01% Fortran 0.03% Forth 0.01% Jinja 0.03% Smarty 0.01%

huron_centroidal's Introduction

JNRH'2023: Pinocchio Tutorial

Support chat: https://matrix.to/#/#jnrh2023-tuto:laas.fr

Slides: https://gepettoweb.laas.fr/talks/jnrh2023/

Getting started

Start by cloning this repository:

git clone https://github.com/nmansard/jnrh2023
cd jnrh2023

After this, you have to choose one of the three following supported methods:

pip

  1. create an environment:

    python -m venv .venv

  2. activate it:

    source .venv/bin/activate

  3. update pip:

    pip install -U pip

  4. install dependencies:

    pip install example-robot-data-jnrh2023 jupyterlab meshcat scipy ipywidgets matplotlib

  5. start PYTHONPATH=. jupyter-lab

conda (Linux, macOS and Windows)

  1. update conda:

    conda update -n base -c defaults conda

  2. create an environment:

    conda create -n jnrh-2023 python=3.9

  3. activate it :

    conda activate jnrh-2023

  4. add conda-forge channel:

    conda config --add channels conda-forge

    Note: If you already have the conda-forge channel set-up in your config, this will have no effect and you will likely get the warning message Warning: 'conda-forge' already in 'channels' list, moving to the top. You can simply discard it.

  5. install specific dependencies:

    conda install -c olivier.roussel hpp-fcl example-robot-data pinocchio=2.99.0

    Note: Forcing the Pinocchio package version to 2.99.0 is not mandatory depending on your channel priority configuration, which can vary depending on your conda installation source.

  6. check your Pinocchio install:

    conda list

    Check for correct packages versions and source channel (4th column) in your output:

    example-robot-data    4.1.0     <some_hash>    olivier.roussel
    hpp-fcl               2.99.0    <some_hash>    olivier.roussel 
    pinocchio             2.99.0    <some_hash>    olivier.roussel
    

    If versions or source channel does not match this, then something gone wrong in your installation process.

  7. install regular dependencies:

    conda install -c conda-forge jupyterlab meshcat-python scipy ipywidgets matplotlib

  8. start JupyterLab:

    Be sure that you are still in the jnrh2023 root directory of the repository that you cloned at the Getting started step.

    Linux / macOS

    PYTHONPATH=. jupyter-lab

    Windows

    jupyter-lab

docker

  1. start docker run -v ./:/tuto --net=host -it nim65s/jnrh2023

Check your installation

Jupyter-lab should show you a couple links in https://localhost:8888 / https://127.0.0.1:8000: you should be able to open them, and in your webbrowser open and run 0_setup.ipynb to say hi to Talos.

huron_centroidal's People

Contributors

nmansard avatar nim65s avatar echandler5956f avatar stephane-caron avatar jcarpent avatar olivier-roussel avatar

Stargazers

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