Giter Club home page Giter Club logo

cockpit's Introduction



An intuitive and customizable cross-platform ground control station for remote vehicles of all types.

Development

Installing Cockpit

Cockpit is typically installed as an Electron application or BlueOS Extension, but for development purposes it is valuable to run it locally.

To start, clone the repository and its submodules. The submodules are required components for Cockpit to be able to run:

git clone --recurse-submodules [email protected]:bluerobotics/cockpit.git

Next, install bun. Following their documented instructions is strongly recommended - we have received reports that installing bun from alternatives like Snap did not work properly.

With bun installed, you can enter the repository folder and follow the steps below:

bun install

and then run the server locally with:

bun run dev --host

Then you should see a prompt with the local IP and port that can be accessed through a browser, such as localhost:5173.

Installing backend providers

Cockpit is currently a frontend-only application. That means it relies on data offered by other backend solutions, which are not built-in.

If you have a BlueOS instance running, there's no need to install any backend, as BlueOS already provides everything.

If that's not your case and you want to install the necessary backends, follow the instructions below:

  1. Install a MAVLink router. We recommend mavp2p or MAVLink Router.
  2. Run the MAVLink router, connecting it to your vehicle or SITL instance.
  3. Install mavlink2rest.
  4. Run mavlink2rest, pointing it to the endpoint provided by the MAVLink router. Remember to serve the API over the 6040 port by running it with --server 0.0.0.0:6040.
  5. [Optional] If you want to work with video streaming, install Mavlink Camera Manager.

Connecting to your vehicle

Follow the instructions provided here to connect Cockpit to your vehicle.

If you're running a BlueOS instance, just put the IP address of it in "Global vehicle address" and click the "apply" button.

If you're serving mavlink2rest in the same machine as Cockpit, activate the checkmark for "Mavlink2Rest connection" and use ws://127.0.0.1:6040/v1/ws/mavlink there (if you're running a mavlink2rest version before 0.11.15, omit the /v1 in the URL).

If you're serving mavlink-camera-manager in the same machine as Cockpit, activate the checkmark for "WebRTC connection" and use ws://127.0.0.1:6020 there.

cockpit's People

Contributors

ericjohnson97 avatar es-alexander avatar joaoantoniocardoso avatar patrickelectric avatar rafaellehmkuhl avatar rjehangir avatar wandersonsousa avatar williangalvani 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.