Skip to content

anr-multitrans/Virtualization-Framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GUI of the Virtualization Platform

We built the graphical interface using PyQt5, which allows the user to interact with a simulation environment created with the CARLA Python API. The interface provides various functionalities such as selecting labels for city object detection, recording the simulation, and controlling the simulation's execution (start, pause, stop).

The interface displays three different images, RGB, segmented, and bounding box. The RGB image displays the simulation's environment as seen by a camera. The segmented image shows the environment with different objects separated into classes using different colors. The bounding box image shows the RGB image with bounding boxes around the selected city objects.

Additionally, the interface contains several buttons for adding, selecting, modifying, and removing events, as well as a timeline for displaying the recorded events. The user can select city object labels for detection using checkboxes provided in a group box.

Requirements

  • Carla simulator (version 0.9.14 or later)
  • Python 3.x (tested on 3.7.9)
  • PyQt5
  • carla
  • keyboard
  • matplotlib
  • numpy
  • opencv-python
  • psutil

Installation

  1. Install Python 3.x if it is not already installed. You can download the latest version from the official website: https://www.python.org/downloads/

  2. Install CARLA simulator by following the instructions on their official website: https://carla.readthedocs.io/en/latest/start_quickstart/

  3. Clone the repository:

git clone https://github.com/anr-multitrans/Virtualization-Framework.git

  1. Open the terminal and navigate to the directory where you cloned the repository.

  2. Install required packages using pip:

pip install -r requirements.txt

If you face problems in installing PyQt5 try installing it using apt

sudo apt install python3-pyqt5

for other requirements please refer to their documentations. Then to make sure all requirements are installed please repeate the pip install -r requirements.txt

  1. Navigate using the terminal to the sub-directory "Python":

cd Python

  1. Open the file 'config.ini' in any text editor, under [Carla] entry, change the value of path to the path of CARLA installation directory

  2. Run the following command to launch the framework:

python new_ui.py

Note: The script will check if CARLA simulator is running, if not it will pass a command to launch it and wait for its availability for connecting clients before launching the framework.

This user interface allow launching simulation scenarios and frgitering sensor data in form of (rgb, semantic_segmentation, and instance segmentation) images in addition to JSON files describing the nature of each object in ths simulation at avery tick

  1. after running the simulation, if labels are not generated automatically, you may need to run the post processing script, that post-process the images and associate each of them them with a JSON file labeling the bounding boxes of every simulation object appearing in the image.

    python new_ui.py

In case of any issues with the installation or running the framework, refer to the documentation or raise an issue on the Github repository.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages