This repository is a customized setup based on locosim and lab-docker projects. It utilizes configurations from docker-stuffs and linux-stuffs repositories.
-
Install Docker:
-
Linux:
curl -fsSL https://raw.githubusercontent.com/lomcin/linux-stuffs/master/install/docker -o install_docker.sh chmod +x install_docker.sh ./install_docker.sh
- To use NVIDIA GPUs, follow the instructions provided in Installing the NVIDIA Container Toolkit (Installing with Apt , Configuring Docker).
-
Windows:
- Install Windows Subsystem for Linux (WSL) by following the Install Linux on Windows with WSL instructions.
- Install Docker by following the Turn on Docker Desktop WSL 2 instructions.
- Launch Docker Desktop.
- Launch WSL.
- To navigate to the home directory in WSL, simply run:
cd ~
- Open port:
sudo ufw allow 8888 sudo ufw enable
-
-
Clone this repository and run
prepare.sh
:git clone https://github.com/gbrlb/locosim_jupyter.git cd locosim_jupyter ./prepare.sh
-
In a terminal, navigate to
locosim_jupyter
, if it is in the home directory:cd ~/locosim_jupyter
-
Run Docker with:
-
Linux:
./run_linux.sh
-
Linux+gpu: You need to have NVIDIA drivers and the NVIDIA Container Toolkit installed already.
./run_linux_gpu.sh
-
Windows WSL:
./run_wsl.sh
-
-
Inside the Docker container, execute:
lab
-
Access the Jupyter Lab interface by opening http://localhost:8888/ in a web browser.
-
Password Token for Jupyter Lab:
locosim
-
In the Jupyter Lab, navigate to L1_kinematics.ipynb located at
robot_control/lab_exercises/
to access the example exercise.
-
To ensure compatibility you may need to disable Secure Boot in your BIOS.
-
If you encounter an error while running
./prepare.sh
related to downloading therobot_control
orros_impedance_controller
packages, you can manually clone the repositories as follows:- Clone the
robot_control
repository:
git clone https://github.com/gbrlb/robot_control.git -b jupyter "$(pwd)/$USER/ros_ws/src/locosim/robot_control"
- Clone the
ros_impedance_controller
repository:
git clone https://github.com/gbrlb/ros_impedance_controller.git "$(pwd)/$USER/ros_ws/src/locosim/ros_impedance_controller"
Then run the Docker script, and inside the Docker container, rebuild ROS as follows:
source /opt/ros/noetic/setup.bash cd $HOME/ros_ws catkin build source $HOME/ros_ws/devel/setup.bash
- Clone the