Onboard-SDK-ROS icon indicating copy to clipboard operation
Onboard-SDK-ROS copied to clipboard

waypoint ? google map ?

Open ghost opened this issue 3 years ago • 5 comments

is there any easy way to create waypoints for ros osdk? as if we compare it to msdk it was a lot easy to generate waypoints in the mobile application but how to generate it for ros osdk ? is there any way to create google api which can be linked with our code ?

ghost avatar Oct 24 '22 15:10 ghost

Agent comment from kyle.cai in Zendesk ticket #72378:

For the M300, the OSDK side uploads the waypoint coordinates through the API. Developers need to develop and generate the waypoints by themselves. For example, import the waypoint file, parse the coordinates in the file and then upload it through the OSDK API.

°°°

dji-dev avatar Oct 25 '22 03:10 dji-dev

can I use tktiner to make waypoints ?

ghost avatar Oct 25 '22 05:10 ghost

image

is there any possible way to make this type of api in ros ? or any program which we can implement this ?

ghost avatar Oct 25 '22 05:10 ghost

This is not a question related to this ROS package but I will give you some insight on how to move forward.

You can use folium or requests on a map API (such as Google maps or Mapbox) to get a map image in Python and present it in a GUI. Then, using some maths transform pixel coordinates to latitude and longtitude. I think it is easier to integrate ROS with Qt instead of Tkinter in Python. Then you need a way to pass the generated coordinates from Qt to a waypoint mission and send it to the aircraft. A solution would be to save these coordinates in a file and then read them from a custom version of waypointV2_node or just transmit them using a ROS message.

frank20a avatar Nov 29 '22 12:11 frank20a

Thankyou for the suggestion, I will look into it.


From: Frank Fourlas @.> Sent: Tuesday, November 29, 2022 5:54 PM To: dji-sdk/Onboard-SDK-ROS @.> Cc: Haroon Rasheed @.>; Author @.> Subject: Re: [dji-sdk/Onboard-SDK-ROS] waypoint ? google map ? (Issue #516)

This is not a question related to this ROS package but I will give you some insight on how to move forward.

You can use folium or requests on a map API (such as Google maps or Mapbox) to get a map image in Python and present it in a GUI. Then, using some maths transform pixel coordinates to latitude and longtitude. I think it is easier to integrate ROS with Qt instead of Tkinter in Python. Then you need a way to pass the generated coordinates from Qt to a waypoint mission and send it to the aircraft. A solution would be to save these coordinates in a file and then read them from a custom version of waypointV2_node or just transmit them using a ROS message.

— Reply to this email directly, view it on GitHubhttps://github.com/dji-sdk/Onboard-SDK-ROS/issues/516#issuecomment-1330609498, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWFQRH2LXYWGSJPCDUVMVOLWKX4H3ANCNFSM6AAAAAARNDXV3Y. You are receiving this because you authored the thread.Message ID: @.***>

ghost avatar Dec 03 '22 08:12 ghost