dji-sdk / Onboard-SDK-ROS

Official ROS packages for DJI onboard SDK.
443 stars 309 forks source link

How can i get IR sensor data with m300 in ROS? #502

Open HYUiv-JinYoung opened 2 years ago

HYUiv-JinYoung commented 2 years ago

I'm using OSDK ROS 4.1.0 and trying to get IR sensor data for avoiding obstacles with m300 in ROS

https://sdk-forum.dji.net/hc/en-us/articles/900006770523-Is-it-possible-for-OSDK-to-obtain-UAV-obstacle-avoidance-data- I found i can get fusioned sensor data about it and the code at " dji_telemetry.hpp " but i don't know how i subscribe to TOPIC_AVOID_DATA

is there any ros-code to understand the way about using this? please help me what i to do I am beginner about OSDK and ROS If you solve my problem, i will very grateful about you and pray everyday for you ㅠ.ㅠ

xaedes commented 1 year ago

This is how you add publisher for IR sensor data:

https://github.com/xaedes/Onboard-SDK-ROS/commit/d5c1a7822ca2a2b405fd8fafc466ee86426666d5