Skip to content

Threads concurrency and synchronization example, written in C++ using Qt.

Notifications You must be signed in to change notification settings

hugoassisj/movingRobots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

HitCount

movingRobots

Threads concurrency and synchronization example, written in C++ using Qt.

Instructions

Consider a system that receives the positions of three robots, which move in a room, from three different sources (for example: IMU, GPS and Odometry).

These sources spend a time between 100 ms and 4000 ms to capture the position of each robot, and then insert this information concurrently in a buffer of finite size N.

After the system receives the position of a robot from all three sources, it must process the average position and insert the result into a data structure that stores the position of each robot separately. Finally, the system must present the positions of the robots in a graphical user interface.

asd

The goal is to create a C ++ program using threads and semaphores that allow the capture, processing, and presentation of each robot's movement to occur concurrently and synchronously.

The initial position of the robots can be generated randomly. In order to generate their trajectory, consider that each new position consists of the previous position plus a random value in a given interval ( -P < Position < P), for each component (x and y).

Required

ubuntu
QtCreator

Install QtCreator

Open terminal and run:

sudo apt-get install build-essential

sudo apt-get install qtcreator

sudo apt-get install qt5-default

Open Project

Open terminal and run:

qtcreator 

After that, select Open Project and then the *.PRO file.

About

Threads concurrency and synchronization example, written in C++ using Qt.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published