ros2-java / ros2_java

Java and Android bindings for ROS2
Apache License 2.0
162 stars 91 forks source link

Support for Android SDK 30+ #225

Closed jtabraham123 closed 1 year ago

jtabraham123 commented 1 year ago

Hi, I am currently building an app that targets android sdk 30+ with ros2_java. However, for some reason I cannot get ros2 talker and listener nodes to communicate in sdk 30+. It works over wifi network in sdk 29 and below (I have followed example from https://github.com/YasuChiba/ros2-android-test-app). But in sdk 30, the talker and listener node can only communicate locally on the app and not over the network. Has anyone else had this issue with sdk 30+ and know a workaround?

jtabraham123 commented 1 year ago

I have a few ideas as to why this is happening, could be the middleware (in which case this issue would be better suited for one of those repos) or the socket layer.

YasuChiba commented 1 year ago

I'm wondering if this is the cause. (Though I have not tried yet)

https://github.com/eProsima/Fast-DDS/pull/2677

jtabraham123 commented 1 year ago

Yes it is Thank you YasuChiba so much for pointing this out! Just had to update the repos file to Fast-DDS 2.8.0 (version with this commited) and Fast CDR to v1.0.25.