You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JNI ERROR of sensor_msgs.msg.Image on Android side but solved on ROS side #224
The crash message JNI ERROR (app bug): expected jbyte but got value of 206 as argument 1 to void java.lang.Byte.(byte)
The crash message on android side showed that the received data from ros is unsigned byte (0-255) but the byte of java is signed (-128, 127).
Therefore, the proper way to solve this problem should be on android side to disable the check of data type. https://android.googlesource.com/platform/art/+/master/runtime/reflection.ccline417
Hi, I'm currently working on porting ROS-Mobile-Android to ROS2 using rcljava. (https://github.com/YasuChiba/ROS2-Mobile-Android)
I encountered this JNI Error problem while implementing the function to display std_msgs.msg.Image in the app.
As a temporary workaround, I have confirmed that the error no longer occurs once I rewrite the msg.cpp.em file like this. (though performance is quite poor).
In my understanding, the osrf/ros2_java repository has resolved this issue, but are there any plans to merge the changes into
this repository?
@ivanpauno@jacobperron
I'm really sorry to mention both of you. Could you please tell me if you are planning to update this repository?
If not, I will try to implement it by my self :)
Activity
YasuChiba commentedon Feb 7, 2023
Hi, I'm currently working on porting ROS-Mobile-Android to ROS2 using rcljava. (https://github.com/YasuChiba/ROS2-Mobile-Android)
I encountered this JNI Error problem while implementing the function to display
std_msgs.msg.Imagein the app.As a temporary workaround, I have confirmed that the error no longer occurs once I rewrite the
msg.cpp.emfile like this. (though performance is quite poor).In my understanding, the
osrf/ros2_javarepository has resolved this issue, but are there any plans to merge the changes intothis repository?
@ivanpauno @jacobperron
I'm really sorry to mention both of you. Could you please tell me if you are planning to update this repository?
If not, I will try to implement it by my self :)