Code Monkey home page Code Monkey logo

djiros's Introduction

This is a modified version of Onboard-SDK-ROS, which uses standard ros message types, providing limited function of dji-sdk.

Usage

  • Modify CMakeLists.txt to add Eigen3 to the include directories. It depends on which version of Eigen your are using ( from apt-get, manually installed or other situation)

  • If you don't need mvBlueFOX synchronization, just set ENABLE_DJIFOX to false to eliminate compile errors about mvBlueFOX drivers.

  • launch/djiros.launch will use environment variables to get APPID and ENCKEY. You can add your id and key in your launch file / set it to the environment / hardcode it in the source code.

  • Configure A3 SDK as below A3 Configuration

ROS Interfaces

Parameters

  • serial_name [string] : Path to the serial port device (e.g. /dev/ttyUSB0)
  • baud_rate [int] : Baudrate for serial port
  • app_id [int] : App Id for dji sdk
  • enc_key [string] : App Key for dji sdk
  • only_broadcast [bool] : No activation and control is needed, just broadcast imu, rc, gps, ...
  • align_with_fmu [bool] : Use ticks from FMU/ ros::Time::now() when data is received.
  • gravity [double] : scale multiplied on accelerometer output
  • ctrl_cmd_stream_timeout [double] : timeout for judging if control command is streaming in or stopped
  • ctrl_cmd_wait_timeout [double] : timeout for waiting for control command after switch into api mode

Topics

  • See the code and official documents for published topics and their details.
  • Subscriber "~ctrl" for control the drone
  • Subscriber "~gimbal_ctrl" and "~gimbal_speed_ctrl" for control the gimbal

djiros's People

Contributors

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