Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i get camera data with m300 in ROS? #501

Open
HYUiv-JinYoung opened this issue Apr 18, 2022 · 1 comment
Open

How can i get camera data with m300 in ROS? #501

HYUiv-JinYoung opened this issue Apr 18, 2022 · 1 comment

Comments

@HYUiv-JinYoung
Copy link

HYUiv-JinYoung commented Apr 18, 2022

I'm using OSDK ROS 4.1.0 and trying to get camera image data with m300 in ROS

I executed launch file with ' roslaunch dji_osdk_ros dji_vehicle_node.launch '
then i can find topics like /dji_osdk_ros/stereo_240p_down_back_images
but i couldn't find any signals about that topic

I saw that i have to call setup_camera_stream service
but when i execute -> rosservice call setup_camera_stream "cameraType: 1 start: 1"
and I get an error like -> ERROR: service [/setup_camera_stream] responded with an error:

please help me what i to do
I am beginner about programming and m300
If you solve my problem, i will very grateful about you and pray everyday for you

@ibnHatab
Copy link

ibnHatab commented Jun 6, 2022

I second this request. It looks like stereo_240p_down_back_images implemented for m210 but not m300rtk.
In the Onboard-SDK samples 240p image obtained using vehicle->advancedSensing->subscribePerceptionImage which select m300 call to perception->subscribePerceptionImage (see AdvancedSensing::subscribePerceptionImage).
In ROS it uses vehicle->advancedSensing->subscribeStereoImages which doesn't switch from m210 and m300.

SDK ROS has to switch from subscribeStereoImages to subscribePerceptionImage then both platforms will work correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants