Giter Club home page Giter Club logo

symulacjadrona's Introduction

SymulacjaDrona

Simple submarine drone simulation with simple graphic interface. Drones can be moved and/or rotated using command line interface. Simulation detects collisions with other drones and obstacles. Counts also number of created and existing vectors.

Getting started

1. Install gnuplot nad pthread

sudo apt-get install -y gnuplot
sudo apt-get install libpthread-stubs0-dev

2.Build project

mkdir build 
cd build
cmake ..
make

3. Run

./SymulacjaDrona

Cmd interface

Output

Kolor drona: purple -> drone color
KOLIZJA z przeszkoda -> collision (after that user can only end app)
Utworzono: x wektorow -> created x vectors
Istnieje: x wektorow -> x vectors exist

Input

1 - Ruch -> Translate and rotate drone
2 - Obrot -> Rotate drone
3 - Zmiana drona -> switch drone
0 - koniec -> end
Podaj kat pod jakim ma plynac (w stopniach) -> give angle in degrees Podaj odległość na jaką ma płynąć dron -> give translation distance

Example

./SymulacjaDrona
gnuplot is running
Kolor drona: purple
MENU
 1 - Ruch
 2 - Obrot
 3 - Zmiana drona
 0 - koniec
 Twoj wybor: 1

Podaj kat pod jakim ma plynac (w stopniach)
30
Podaj odległość na jaką ma płynąć dron
5
KOLIZJA z przeszkoda

Utworzono: 112077 wektorow
Istnieje: 138 wektorow

Kolor drona: purple
MENU
 1 - Ruch
 2 - Obrot
 3 - Zmiana drona
 0 - koniec
 Twoj wybor: 0

Koniec dzialania programu
gnuplot stops running

Gnuplot window after above code

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.