Ask Your Question

Problems with importing android_gingerbread into eclipse

asked 2012-03-12 05:04:28 -0500

ira gravatar image

I tried to build android app on ros. I followed the steps listed in this page:

When I am trying to import android_gingerbread into eclipse, I got errors in class 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.

edit retag flag offensive close merge delete


Are you using the deb release or building rosjava from source?

damonkohler gravatar image damonkohler  ( 2012-03-12 08:22:35 -0500 )edit

Hi! I am trying to build rosjava from source

ira gravatar image ira  ( 2012-03-21 06:41:31 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2012-03-21 06:40:46 -0500

ira gravatar image

finally with the help with these three links, i successfully import gingerbread

here is the link:

  1. This on gives a general idea of how to setup the environment for rosjava android development. But since rosmake does not work on the latest rosjava, i have to refer to the second link to figure out how to build rosjava

  2. With the help of this link i managed to build build rosjava. You can find the generated jar file under rosjava_core/rosjava/build/libs/rosjava-0.0.0-SNAPSHOT.jar

  3. With this link i got my sensor message compiled and solved the problem for not being able to import org.ros.message.sensor_msgs.CameraInfo and org.ros.message.sensor_msgs.CompressedImage.

PS: Three jar files needed to be imported 1. rosjava_core/rosjava_bootstrap/build/libs/rosjava_bootstrap-0.0.0-SNAPSHOT.jar 2. rosjava_core/rosjava/build/libs/rosjava-0.0.0-SNAPSHOT.jar 3. guava-11.0.2.jar (

Hope it helps!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-03-12 05:04:28 -0500

Seen: 1,215 times

Last updated: Mar 21 '12