GithubHelp home page GithubHelp logo

duguyifei / dronesimulatormonitor Goto Github PK

View Code? Open in Web Editor NEW
21.0 1.0 4.0 214.96 MB

Use cesium.js, cesium for unreal, Microsoft Airsim, Nodejs to build a drone simulator game and use browser to monitor the drone.

C++ 98.83% Batchfile 0.01% C# 0.29% C 0.01% Python 0.38% JavaScript 0.06% EJS 0.43%

dronesimulatormonitor's Introduction

README

image

Description

Project structure:

  1. UE + Cesium + Miscroft AirSim => Flight Simulator
  2. Python (Airsim API + PyGame) => Flight Controller
  3. Node.js (Express + Socket.io) => Server
  4. Cesium.js => Client

Installation

  1. FlightSimulator.exe can be found in release.
  2. Controller need pip install -r requirements.txt
  3. Server and Client need Node app.js to run it.

Usage

  1. If you have XBox controller, you can use it to control the drone without python script. From my side, it is not work very well, but maybe because I use PS4 controller to simulate XBox controller.
  2. If you use XBox controller or use PS4 controller to simulate XBox controller, you can use python stick_controller_xbox.py.py to start the controller.
    1. Click X in PS4 or A in XBox to take off the drone.
    2. Click O in PS4 or B in XBox will make the drone land.
  3. If you use keyboard directly, which will not have different velocity, use python controller.py. Btw, it use opencv im.show to see some image from drone camera.
  4. Nodde app.js to start the server, and the client will be start in the port 3000.
  5. When you start FlightSimulator.exe, it will load the tile map from google api, so you need wait 15 seconds to load the map.
  6. In client, click follow view will follow the move or freely move the camera.
  7. In client, click google map will show / hide the 3d tiles.

Keyboard or Gamepad

  1. wasd or left stick move forward/back or left/right.
  2. arrow key or right stick move up/down or rotate in yaw.
  3. k in keyboard / x in PS4 / A in XBOX take off
  4. l in keyboard / x in PS4 / A in XBOX land
  5. esc / left spcial key in game pad quit game.

Other Information

  1. stick_controller.py is used for PS4 controller, but I have no time to fix bug in it.
  2. Google tile map api will be deprecated by me in the future, so if you want to use it in the future, you need rebuild the project.

dronesimulatormonitor's People

Contributors

duguyifei avatar

Stargazers

 avatar Zipeng Dai avatar  avatar Zinnia avatar  avatar  avatar 小小冰绿豆 avatar jhzhang avatar  avatar Awais Ali avatar  avatar Paul.... avatar Liu Tianrui avatar fishpro avatar  avatar Oscar Yuh avatar  avatar  avatar gongbin avatar  avatar Chu avatar

Watchers

 avatar

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.