- Introduction
- Goal
- Requirements
- How to use the software
- Sofware screenshots
- What can be improved
- Conclusion
- Internship work for the conclusion of my Software Application Development course at TESP.
- This project was developed during my professional internship at Capgemini Engineering, where I had the opportunity to participate in the V2X initiative at the Embedded and Software Critical Systems unit.
The goals of the project are:
- Visualize the paths of the vehicles.
- Visualize information's about speed, braking, gear, steer and throttle of the vehicles depending on the tick in which we are.
- Move through the tick to see the data of both cars at that moment.
The steps below were used with Ubuntu 20.04
Update OS repositories
$ sudo apt update
Add new repository
$ sudo apt install software-properties-common
$ sudo add-apt-repository ppa:deadsnakes/ppa
Install Python 3.7
$ sudo apt-get install python3.7
Install Pip3
$ sudo apt-get -y install python3-pip
Install Pygame
$ sudo apt install python3.7-distutils
$ python3.7 -m pip install -U pygame==1.9.6 --user
Install Tkinter
$ sudo apt-get install python3.7-tk
Install Pandas
$ python3.7 -m pip install -U pandas --user
- Get the "requirements.txt" file from the repository.
- Inside the folder where you have the "dre2.py" file paste the "requirements.txt" file.
- Right mouse click inside folder and click "Open in terminal".
- Paste the following code and execute it.
$ python3.7 -m pip install -r requirements.txt
- Create a new folder and inside it extract all the files
- Right mouse click inside folder and click "Open in terminal".
- To run the program paste the following code and execute it.
$ python3.7 dr2.py
- The software will open a window for you to choose a ZIP file.
- In the "ZIP" folder we provide there are already some examples for the user to try.
- After the ZIP file is loaded the software initially opens with the path of two cars have taken.
- With the arrows, up and down, you can change between normal mode and edit mode.
- Inside edit mode you can control the car's path with the right and left arrow keys, thus moving through the different path positions of both cars.
- Using the 1,2 and 4 key you can control the value to be added to the tick.
- On edit mode if you press the P key you have access to an automatic player of the path of the two cars.
- You can also control the playback speed with the 1,3 and 7 keys.
All keybinds to use software are spelled out in the program screen!
Using the mouse it is possible to click on two points on the screen and see the distance between them.
This feature, to get correct values, should only be used between points on the same car path
This is the first window you will see when run the software.
This is the normal mode, where you can see all path of both cars.
This is the edit mode, where you can control the position of cars on path.
This is the information you can see about the two cars on a certain position.
This is the automatic player.
To create your own ZIP file access the following link that will take you to the repository of the software that is required for its creation and follow the steps described there.
One of the future details that could be applied to the project would be the implementation of a map of CARLA seen from above behind each path of the cars, so that we could also see where on the map the path of the car took place.
This software emerged as part of Capgemini's V2X initiative project, with the ultimate goal of providing a 2D visualization of the data and paths taken by the cars during the CARLA simulation without the need to use it.
In this project I had the help and collaboration of Frederico Martins, Daniel Sader and Rédi Vildo from Capgemini.