Skip to content

groundmelon/djiros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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