Code Monkey home page Code Monkey logo

tello_ros's Introduction

Tello_ros

tello_ros可以发送state和image信息到相应话题,将tello_ros文件夹下载到catkin_ws/src/下

Prerequisites

Installation

  • Linux (Ubuntu 14.04 and above) 安装依赖 1.sudo apt-get update -y 2.sudo apt-get install libboost-all-dev -y 3.sudo apt-get install libavcodec-dev -y 4.sudo apt-get install libswscale-dev -y 5.sudo apt-get install python-numpy -y 6.sudo apt-get install python-matplotlib -y 7.sudo pip install opencv-python 8.sudo apt-get install python-imaging-tk 有可能还需要安装一下python-libboost,ffmpeg 安装h264 cd h264decoder mkdir build cd build cmake .. make cp libh264decoder.so ../../

Run the project

  • Step1. Turn on Tello and connect your computer device to Tello via wifi.

  • Step2. Open project folder in terminal. Run:

    python tello_ros.py(第一次可能会报错,再运行一次)
    

Project Description

tello.py - class Tello

Wrapper class to interact with Tello drone. Modified from https://github.com/microlinux/tello

The object starts 3 threads:

  1. thread for receiving command response from Tello 端口8888
  2. thread for receiving video stream 端口11111
  3. thread for receiving state 端口8890

You can use read_frame() to read the last frame from Tello camera, and pause the video by setting video_freeze(is_freeze=True). You can use read_state() to read the state of Tello**.

h264decoder - class libh264decoder

From https://github.com/DaWelter/h264decoder.

A c++ based class that decodes raw h264 data. This module interacts with python language via python-libboost library, and its decoding functionality is based on ffmpeg library.

After compilation, a libh264decoder.so or libh264decoder.pyd file will be placed in the working directory so that the main python file can reference it.

If you have to compile it from source,with Linux or Mac,you can:


tello_ros's People

Contributors

jzstudent avatar

Watchers

James Cloos 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.