Support chat: https://matrix.to/#/#jnrh2023-tuto:laas.fr
Slides: https://gepettoweb.laas.fr/talks/jnrh2023/
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:
-
create an environment:
python -m venv .venv
-
activate it:
source .venv/bin/activate
-
update pip:
pip install -U pip
-
install dependencies:
pip install example-robot-data-jnrh2023 jupyterlab meshcat scipy ipywidgets matplotlib
-
start
PYTHONPATH=. jupyter-lab
-
update conda:
conda update -n base -c defaults conda
-
create an environment:
conda create -n jnrh-2023 python=3.9
-
activate it :
conda activate jnrh-2023
-
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 messageWarning: 'conda-forge' already in 'channels' list, moving to the top
. You can simply discard it. -
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. -
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.
-
install regular dependencies:
conda install -c conda-forge jupyterlab meshcat-python scipy ipywidgets matplotlib
-
start JupyterLab:
Be sure that you are still in the
jnrh2023
root directory of the repository that you cloned at the Getting started step.PYTHONPATH=. jupyter-lab
jupyter-lab
- start
docker run -v ./:/tuto --net=host -it nim65s/jnrh2023
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.