ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

ROS1-ROS2 bridge for DJI Onboard SDK ROS 4.1.0?

asked 2022-03-15 14:21:34 -0500

tompe17 gravatar image

updated 2022-03-15 14:24:43 -0500

Have anybody done a mapping between ROS1 and ROS2 for the new dji_sdk ROS API (version 4+, the one supporting more things in the DJI SDK)?

See: https://github.com/dji-sdk/Onboard-SD...

I thought it would be doable to run the main programs in ROS2 and bridge to the DJI program written in ROS1 (which works very well for the old DJI ROS API). But DJI have used small letters in constant names for messages and services and capital letters in field names. I started to manually convert messages and write mapping rules but I though i was going to ask if anybody have done this work or have another solution?

Have anybody forked the DJI SDK ROS and fixed the names? Or is mapping rules the way to go? But i found a question indication that there is still a bug in ROS2 for mapping field names for types like uint8. Is that still the case?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2023-04-17 10:13:44 -0500

mudrole1 gravatar image

Hi, I wonder if you managed to test this? Does it work?

edit flag offensive delete link more

Comments

Yes it did work when the bridge code was fixed. i tried to get the patch for the bridge code into the release but I do not know what happened and I lost interest since we went with Ubuntu 22.04 and just ROS2. So I instead ported the DJI SDK for M300 ro ROS2 as a solution and I am planning to finnish a port of version 3.8 also for M100.

tompe17 gravatar image tompe17  ( 2023-04-27 11:08:13 -0500 )edit
0

answered 2022-04-04 03:24:49 -0500

tompe17 gravatar image

So I did write a script to generate message files and rules for translation so I can use ROS2 for DJI Onboard SDK ROS 4.1.0 and use all new things. Not yet fully tested since we wait for the new platform to arrive so i do not know if it is complete but for people interested you can find the new messages and service and the rule file here:

https://gitlab.liu.se/lrs2/ros2_dji_o...

Unfortunately the ROS1-ROS2 bridge does not work for this. I have made a Pull Request for a patch here:

https://github.com/ros2/ros1_bridge/p...

With these changes the generated rules file works.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2022-03-15 14:21:34 -0500

Seen: 343 times

Last updated: Apr 17 '23