Open chadrockey opened 11 years ago
From jaeh...@gmail.com on May 05, 2012 05:26:56 I had same problem in the tutorial. I guess... A Message "currentVelocityCommand" for virtual joystick is null. I tried... " currentVelocityCommand =publisher.newMessage();"
It works..
Original author: Allspa...@gmail.com (April 26, 2012 03:22:35)
What steps will reproduce the problem? 1.Install and Build rosjava_core and android_core as per insctructions 2.Install android_tutorial_teleop (adb install MainActivity-debug.apk) 3.Run Application, connect to roscore. Touch virtual joystick
What is the expected output? What do you see instead? Joystick should react to touch event, send messages over cmd_vel topic instread application crashes, and logcat says
FATAL EXCEPTION: main java.lang.NullPointerException at org.ros.android.view.VirtualJoystickView.publishVelocity(VirtualJoystickView.java:799) org.ros.android.view.VirtualJoystickView.onContactMove(VirtualJoystickView.java:698) org.ros.android.view.VirtualJoystickView.onTouchEvent(VirtualJoystickView.java:356) android.view.View.dispatchTouchEvent(View.java:5546)
What version of the product are you using? On what operating system? I have tried with several versions to get the same result, including 400149595dba. Also used on three different machines, all running Ubuntu.
Please provide any additional information below. The application correctly connects to roscore, touch events on the screen work just fine however when you touch the joystick it fires a null pointer exception.
Original issue: http://code.google.com/p/rosjava/issues/detail?id=109