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

ira's profile - activity

2014-08-05 20:23:51 -0500 received badge  Famous Question (source)
2014-01-28 17:26:32 -0500 marked best answer error installing rosjava using rosws

Hi all

I tried to follow the instruction here (http://docs.rosjava.googlecode.com/hg/rosjava_core/html/installing.html) to install rosjava using rosws and got an error during the last step : rosws update

Error shows:

ERROR: Error processing 'rosjava_core' : checkout() got an unexpected keyword argument 'verbose'

Any idea of this problem? Thanks a lot.

2014-01-28 17:26:30 -0500 marked best answer Get OutOfMemoryError when using OccupancyGridLayer to display map

Hi all,

I run my program on a real device with 1GB memory. I tried to use OccupancyGridLayer to display map message i got from robot. However, after about 10s processing, I got OutOfMemoryError and the app was forced to stop. Does anyone have the same problem? Is there any way to solve this problem?

Thanks a lot!

2014-01-28 17:26:14 -0500 marked best answer use point to present laserscan data?

Hi,

I am new to opengl, and I have some questions about presenting laserscan data on android. In the tutorial code (android_tutorial_teleop), triangle fan shape is used to present laser scan data. Why triangle fan shape is chosen here to present the data? Can we use just point shape instead?

2014-01-28 17:26:05 -0500 marked best answer problem with visualizing laserscan message on android

Hi,

I am trying to visualize laserscan message on android according to the ros_android_teleop_tutorial. However, what I got was always a dotted diagonal no matter what bag file I use.

I try to modify LaserScanLayer and log the vertices I receive. I do it like this:

String msg = "";
...
public void onNewMessage(LaserScan laserScan) {
    ...
    for (int i = 0; i < ranges.length; i++) {
    ...
        msg += "(" + vertices[3 * i + 3] + "," + vertices[3 * i + 4] + "," + vertices[3 * i + 5]+ ")\n";
    ...
    }
    Log.i(TAG, msg);
}

However, according to the log, it seems that the program can not go through the whole for loop, but been cut rudely in the midway. If the ranges.length is 380, only about half of it can be logged, which is shown in the msg log below.

Each complete msg looks like the following, at the end of which we can see that the msg is cut rudely :

06-11 10:09:24.197: I/LaserScan(664): (-1.7374197,-1.7374197,0.0)
06-11 10:09:24.197: I/LaserScan(664): (-1.7249954,-1.7553679,0.0)
06-11 10:09:24.197: I/LaserScan(664): (-13.893168,-14.386794,0.0)
06-11 10:09:24.197: I/LaserScan(664): (-13.767094,-14.507485,0.0)
06-11 10:09:24.197: I/LaserScan(664): (-13.63997,-14.627071,0.0)
06-11 10:09:24.197: I/LaserScan(664): (-2.1781359,-2.3770168,0.0)
06-11 10:09:24.197: I/LaserScan(664): (-2.1432586,-2.3803282,0.0)
06-11 10:09:24.197: I/LaserScan(664): (-2.102527,-2.3764727,0.0)
06-11 10:09:24.197: I/LaserScan(664): (-2.0666199,-2.3773723,0.0)
06-11 10:09:24.197: I/LaserScan(664): (-2.0302088,-2.3770669,0.0)
06-11 10:09:24.197: I/LaserScan(664): (-1.992676,-2.3747764,0.0)
06-11 10:09:24.197: I/LaserScan(664): (-1.9540671,-2.3704703,0.0)
06-11 10:09:24.197: I/LaserScan(664): (-1.988056,-2.4550416,0.0)
06-11 10:09:24.197: I/LaserScan(664): (-1.9603313,-2.4644709,0.0)
06-11 10:09:24.197: I/LaserScan(664): (-1.9011965,-2.433417,0.0)
06-11 10:09:24.197: I/LaserScan(664): (-1.8567567,-2.4197686,0.0)
06-11 10:09:24.197: I/LaserScan(664): (-1.838579,-2.4398727,0.0)
06-11 10:09:24.197: I/LaserScan(664): (-1.7981837,-2.4301014,0.0)
06-11 10:09:24.197: I/LaserScan(664): (-1.7833744,-2.4545996,0.0)
06-11 10:09:24.197: I/LaserScan(664): (-1.781049,-2.4969337,0.0)
06-11 10:09:24.197: I/LaserScan(664): (-1.7838547,-2.5476031,0.0)
06-11 10:09:24.197: I/LaserScan(664): (-1.7944058,-2.6108708,0.0)
06-11 10:09:24.197: I/LaserScan(664): (-1.7983943,-2.6662228,0.0)
06-11 10:09:24.197: I/LaserScan(664): (-1.7899609,-2.704329,0.0)
06-11 10:09:24.197: I/LaserScan(664): (-1.7951585,-2.7642944,0.0)
06-11 10:09 ...
(more)
2014-01-28 17:25:51 -0500 marked best answer rosjava test failed to pass

Hi,

I followed the instruction on this page http://docs.rosjava.googlecode.com/hg/rosjava_core/html/index.html tried to install and build rosjava. Everything went well until the test step. I executed the command "./gradlew test" and got the following failing message:

Test org.ros.internal.message.MessageSerializationTest FAILED
131 tests completed, 16 failures

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':rosjava:test'.
> There were failing tests. See the report at /home/iratao/my_workspace/rosjava_core/rosjava/build/reports/tests.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Does anyone has an idea about this failure?

2014-01-28 17:25:47 -0500 marked best answer about running rosjava on android emulator

hi all,

I would like to ask a general question. Right now, i am trying to test ros android examples on android emulator. I would like to know how well android emulator support those examples? Do i need a real android phone to test those examples?

Thanks

2014-01-28 17:25:46 -0500 marked best answer got dx warning while building android_tutorial_teleop in android_core

Hi,

I followed the instructions on the webpage(http://docs.rosjava.googlecode.com/hg/rosjava_core/html/index.html and http://docs.rosjava.googlecode.com/hg/android_core/html/index.html) to download, install and build rosjava and android_core on my computer. I got 100% "BUILD SUCCESSFUL" except a bunch of warnings while building android_tutorial_% package. The warning all look like these:

[dx] warning: Ignoring InnerClasses attribute for an anonymous inner class
[dx] (jnamed$1) that doesn't come with an
[dx] associated EnclosingMethod attribute. This class was probably produced by a
[dx] compiler that did not target the modern .class file format. The recommended
[dx] solution is to recompile the class from source, using an up-to-date compiler
[dx] and without specifying any "-target" type options. The consequence of ignoring
[dx] this warning is that reflective operations on this class will incorrectly
[dx] indicate that it is *not* an inner class.

Also, when I import the android_tutorial_image_transport into eclipse, I can not launch it in the emulator and got the following errors:

E/AndroidRuntime(428): FATAL EXCEPTION: main

E/AndroidRuntime(428): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{org.ros.android.android_tutorial_image_transport/org.ros.android.android_tutorial_image_transport.MainActivity}: java.lang.ClassNotFoundException: org.ros.android.android_tutorial_image_transport.MainActivity in loader dalvik.system.PathClassLoader[/data/app/org.ros.android.android_tutorial_image_transport-1.apk]

E/AndroidRuntime(428):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1569)
E/AndroidRuntime(428):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
E/AndroidRuntime(428):  at android.app.ActivityThread.access$1500(ActivityThread.java:117)
E/AndroidRuntime(428):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
E/AndroidRuntime(428):  at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(428):  at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(428):  at android.app.ActivityThread.main(ActivityThread.java:3683)
E/AndroidRuntime(428):  at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(428):  at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime(428):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
E/AndroidRuntime(428):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
E/AndroidRuntime(428):  at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime(428): Caused by: java.lang.ClassNotFoundException: org.ros.android.android_tutorial_image_transport.MainActivity in loader dalvik.system.PathClassLoader[/data/app/org.ros.android.android_tutorial_image_transport-1.apk]

E/AndroidRuntime(428):  at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
E/AndroidRuntime(428):  at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
E/AndroidRuntime(428):  at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
E/AndroidRuntime(428):  at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
E/AndroidRuntime(428):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1561)
E/AndroidRuntime(428):  ... 11 more
2014-01-28 17:25:06 -0500 marked best answer rosjava install uri

I found two different rosjava install uri

The one in the rosjava tutorial: https://rosjava.googlecode.com/hg

AND

The one in googlecode page: https://code.google.com/p/rosjava/

Is there any difference between these two uris and which one should i use?

Thanks a lot :>

2014-01-28 17:25:01 -0500 marked best answer Problems with importing android_gingerbread into eclipse

I tried to build android app on ros. I followed the steps listed in this page: http://answers.ros.org/question/2178/rosjavajar-missing-certain-packages#3713

When I am trying to import android_gingerbread into eclipse, I got errors in class org.ros.android.views.PublishingPreviewCallback. Eclipse has problems to resolve the type org.ros.message.std_msgs.Header.

The problem code is like this

**image.header.stamp** = node.getCurrentTime();

And the full error message from eclipse is like this:

Multiple markers at this line - The type org.ros.message.std_msgs.Header cannot be resolved. It is indirectly referenced from required .class files - Header cannot be resolved to a type

Can anyone help with this problem? Thanks a lot.

2013-04-04 05:37:47 -0500 received badge  Famous Question (source)
2013-03-24 22:13:11 -0500 marked best answer build rosjava failed

Hi,

Recently i tried to build rosjava on a different computer with ROS Diamondback installed.

I checkout rosjava today with this command hg clone https://code.google.com/p/rosjava/ Then skipped the install step and go directly to this page (http://docs.rosjava.googlecode.com/hg/rosjava_core/html/building.html), try to build rosjava on my computer. And I got following failure message:

> Building > :rosjava_bootstrap:compileJava > Resolving dependencies ':rosjava_b:rosjava_bootstrap:compileJava
/home/nifti/Workspace/rosjava/rosjava_bootstrap/src/main/java/org/ros/internal/message/MessageContextFactory.java:69: cannot find symbol
symbol  : method parseFromString(java.lang.String)
location: class org.ros.internal.message.PrimitiveFieldType
            primitiveFieldType.parseFromString(value));
                              ^
Note: /home/nifti/Workspace/rosjava/rosjava_bootstrap/src/main/java/org/ros/internal/message/MessageImpl.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':rosjava_bootstrap:compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Any idea what went wrong? Is it because I was building on ros dimondback?

2013-03-04 06:03:57 -0500 received badge  Famous Question (source)
2013-03-04 06:03:57 -0500 received badge  Popular Question (source)
2013-03-04 06:03:57 -0500 received badge  Notable Question (source)
2013-02-11 13:57:51 -0500 received badge  Taxonomist
2013-02-06 12:35:18 -0500 received badge  Famous Question (source)
2013-02-05 06:16:40 -0500 received badge  Popular Question (source)
2013-02-05 06:16:40 -0500 received badge  Famous Question (source)
2013-02-05 06:16:40 -0500 received badge  Notable Question (source)
2013-02-05 06:00:50 -0500 received badge  Notable Question (source)
2013-01-29 17:48:35 -0500 received badge  Notable Question (source)
2013-01-29 17:48:35 -0500 received badge  Famous Question (source)
2013-01-29 17:48:35 -0500 received badge  Popular Question (source)
2012-12-19 05:51:09 -0500 received badge  Notable Question (source)
2012-12-19 05:51:09 -0500 received badge  Popular Question (source)
2012-11-17 02:25:27 -0500 received badge  Famous Question (source)
2012-11-02 09:56:25 -0500 received badge  Popular Question (source)
2012-11-02 09:56:25 -0500 received badge  Notable Question (source)