Skip to content

corradosantoro/RoboticSystems

Repository files navigation


arslogo

RoboticSystems

Software Simulation Environment for the Robotic Systems Course @ UniCT by Prof. Santoro Corrado


Table of Contents
  1. Install
  2. Usage

Install

The simulation environment can be installed in many ways, choose your preferred one.

First of all, you need to download this repository on your machine. You can download this repository as a zip file or use git clone command:

  git clone https://github.com/corradosantoro/RoboticSystems

(back to top)

Pythonic Way for Linux-Windows-macOS

We are going to create a virtual environment to contains all the dependencies.

  1. Install Python 3 on your system, at the time of writing it is recommended Python 3.9 or newer:

    • Linux (Debian-based):

      sudo apt install python3 python3-pip
    • Linux (RHEL-based):

      sudo dnf install python3 python3-pip
    • Windows and macOS:

      Use the proper installed provided on the official Python website
      
  2. Create a virtual environment, open a terminal inside the RoboticSystems folder and execute the following command:

     python -m venv ./venv
    
  3. Activate the virtual environment:

    • Linux (bash shell) or macOS:
      source ./venv/bin/activate
    • Windows (cmd.exe):
      ./venv/Scripts/activate.bat
  4. Install the required dependencies using pip:

    python -m pip install -r requirements.txt
    

(back to top)

Windows with WSL

Depending on your Windows and WSL version you may need to install a Xorg server on your machine.

Windows 11 and later

On Windows 11 you can install WSL from Microsoft Store which contains WSLg, needed to run graphical applications on WSL.

  1. Install Windows Subsystem for Linux from here
  2. Install a WSL Linux disto, Ubuntu 22.04 LTS or later is recommended
  3. Follow the Pythonic Way steps for a Debian-based distro, you may need to clone this repository inside Linux filesystem

Windows 10 Build 19041 or later

On Windows 10 you can enable the embedded WSL system-binary, but you will need to install a Xorg server to run graphical applications on WSL.

  1. Enable WSL system-binary running the following command, be sure to run with administrator privileges:

      wsl --install
    
  2. Install a WSL Linux disto, Ubuntu 22.04 LTS or later is recommended

  3. Download and install VcXsrv.

  4. Open VcXsrv and follow these steps:

    Show steps
  5. Open a terminal and execute:

    cat /etc/resolv.conf

    Take note of the nameserver.

  6. Add environment variables on your bashrc profile:

    cd $HOME && nano .bashrc

    At the end insert:

    export DISPLAY=<nameserver>:0.0
    export LIBGL_ALWAYS_INDIRECT=1

    Use CTRL+X and then press Y to save and exit.

  7. Logout and login from the current session or refresh bash profile running:

    source $HOME/.bashrc
  8. Follow the Pythonic Way steps for a Debian-based distro, you may need to clone this repository inside Linux filesystem

Usage

Before running any script you need to activate the virtual environment containing the required dependencies:

  • Linux (bash shell) or macOS:
    source ./venv/bin/activate
  • Windows (cmd.exe):
    ./venv/Scripts/activate.bat

You can now run any scripts of the simulation environment, example:

python ./tests/card_1d/test_card_gui.py

About

Software for the Robotic Systems Course @ UniCT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published