android_tutorial_image_transport crashed in android

asked 2018-06-26 09:53:54 -0600

star gravatar image

updated 2018-06-26 16:15:52 -0600

jayess gravatar image

Hi all,

I successfully build and install rosjava and rosjava.android on my computer with ROS kinetic installed. I also successfully compiled android_tutorial_image_transport in android studio 3.0 on the same computer.

Then I tried to run this app on android with master_uri set to the address of another computer which runs roscore of version kinetic.

According to the catlog, topic and subscriber are registered successfully,but errors popped up after that:

E/AndroidRuntime: FATAL EXCEPTION: main
                  Process: org.ros.android.android_tutorial_image_transport, PID: 27835
                  java.lang.IllegalArgumentException
                      at com.google.common.base.Preconditions.checkArgument(Preconditions.java:76)
                      at org.ros.android.BitmapFromImage.call(BitmapFromImage.java:32)
                      at org.ros.android.BitmapFromImage.call(BitmapFromImage.java:28)
                      at org.ros.android.view.RosImageView$1$1.run(RosImageView.java:81)
                      at android.os.Handler.handleCallback(Handler.java:754)
                      at android.os.Handler.dispatchMessage(Handler.java:95)
                      at android.os.Looper.loop(Looper.java:163)
                      at android.app.ActivityThread.main(ActivityThread.java:6365)
                      at java.lang.reflect.Method.invoke(Native Method)
                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901)
                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:791)

I dont know why there could be a Exception there, does anyone have any idea about this.

edit retag flag offensive close merge delete