Giter Site home page Giter Site logo

djiros's Introduction

djiros

由于原始项目使用的OSDK版本为3.3,稍作修改后适配自己使用的版本(N3飞控固件版本为1.7.7,OSDK版本为3.8)


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

For Beginners, Please Follow Step-by-Step Tutorial

TLDR for Experts

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
~sensor_mode             [bool]   : No activation and control is needed, just output 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

Camera Parameters

Please see KumarRobotics/bluefox2 as a reference

Topics

Publishers:

 ~imu  : [sensor_msgs/IMU]              IMU message at 400 Hz, in the [ROS REP 103](http://www.ros.org/reps/rep-0103.html) frame definition.
 ~rc   : [sensor_msgs/Joy]              RC joysticks at 50 Hz, remapped to [-1, +1]. See [include/djiros/DjiRos.h](include/djiros/DjiRos.h) for the direction.
 ~velo : [geometry_msgs/Vector3Stamped] Velocity message in NED frame.
 ~gps  : [sensor_msgs/NavSatFix]        GPS message.
 [SYNC] ~image: [sensor_msgs/Image]     Synchronized images from camera driver.
  • See the code and official documents for published topics and their details.
  • For other messages, please modify the code.
  • Pay attention to the frame_id of the published topics which represent the frame. Frame definition can be seen in include/djiros/DjiRos.h.

Subscribers:

~ctrl: [sensor_msgs/Joy] For controlling the drone

$ djiros_bluefox

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.