Skip to content

Library for a searching shortest way in a field of obstacles

Notifications You must be signed in to change notification settings

nikto-b/fantastic-train

Repository files navigation

fantastic-train

Library for searching shortest way in a field of obstacles using Dijkstra's algorithm

How to add this thing to your CMake project:

  • Install dependences:
    • FTGL (optional)
    • GLUT (optional)
    • freetype2 (optional)
    • Cmake
    • JetBrains Mono TTF (optional)
  • Clone project
    $ git clone https://github.com/niktob560/fantastic-train 
    
  • Get the waypointmanager library:
    $ git submodule init 
    $ git submodule update 
    
  • Compile waypointmanager library:
    $ mkdir waypointmanager/Build
    $ cd waypointmanager/Build
    $ cmake ..
    $ make waypointmanager
    $ cd -
    
  • Compile this library:
    $ mkdir Build
    $ cd Build
    $ cmake ..
    $ make fantastic-train
    
  • Change your CMakeLists.txt:
    • LINK_DIRECTORIES(/path/to/thing/Build/)
    • add_library(libfantastic-train SHARED IMPORTED)
    • add_dependencies(libfantastic-train /path/to/thing/Build/libfantastic-train.so)
    • target_link_libraries(target libfantastic-train.so)
  • Use Build/libfantastic-train.so
  • Be awesome

Example monitor:

  • Example code in main.cpp
  • Build with $ make in Build dir
  • Start main binary in Build dir

About

Library for a searching shortest way in a field of obstacles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published