Giter VIP home page Giter VIP logo

fluid's Introduction

README

Installation

What you need

  1. ROS Melodic (or Noetic)
  2. MAVROS
  3. AirSim (or plain Gazebo with PX4)

Architecture

Fluid FSM is built around a client-server architecture with ROS services, where a client requests the server to do something through ROS services. In other words, we (the client) ask the drone (the server) to do operations.

Have a look at Flow and Operations for more details.

Use

Run instructions for simulator

  1. Make sure you have MAVROS installed and PX4 and gazebo built.

    MAVROS for Noetic: sudo apt install ros-noetic-mavros ros-noetic-mavros-msgs
    then: /opt/ros/noetic/lib/mavros/install_geographiclib_datasets.sh

    PX4: git clone https://github.com/PX4/PX4-Autopilot PX4

    Gazebo needs gstreamer-library: sudo apt-get install libgstreamer-plugins-base1.0-dev

  2. Clone fluid into your catkin workspace in the src-folder.

  3. Run source devel/setup.bash and catkin build at root of the catkin workspace.

  4. Start Airsim. If you're using gazebo and PX4, start both by running make px4_sitl gazebo from the PX4 folder.

  5. Start fluid server: roslaunch fluid simulator.launch.

  6. Start your client.

There are some example clients in the src/examples folder.

Run instructions for physical drone with Pixhawk flight controller

  1. Clone fluid into the catkin workspace on the drone.
  2. Run source devel/setup.bash and catkin build at root of the catkin workspace.
  3. Start fluid server via the roslaunch file: roslaunch fluid pixhawk.launch.
  4. Launch your client node.

Writing clients

You have to use ROS services in order to communicate with the state machine. Have a look at the python and C++ examples in the src/examples folder.

fluid's People

Contributors

akselaase avatar eivinm avatar eliasp525 avatar erlendb avatar marcuslerfald avatar mbheir avatar nadiawangberg avatar simengangstad avatar sindre-nord avatar theodu33160 avatar vegarab avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.