Ask Your Question
0

Can I just include rosjava.jar and develop in eclipse?

asked 2011-11-07 10:09:03 -0500

mouser58907 gravatar image

updated 2011-11-07 15:22:57 -0500

I have been trying to do this all day. I've had my android development environment set up and running in Windows and I have limited experience in ubuntu. I've spent the better part of the last 18 hours trying to get a simple example working in Android. The only way I could get a .jar to show up was by downloading through debian. However it does not have all the libraries I need such as org.ros.messages.std_msgs. I've tried just recreating the two classes from the Google+WG Demo talk at Google IO, but have not been able to without the std_msgs.

Any tips or hints are appreciated.

Edit - I am trying to work on android

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
1

answered 2011-11-07 22:21:11 -0500

damonkohler gravatar image

You should try install rosjava from source. Then, you can try to get one of the examples running (e.g. rosjava_tutorial_pubsub, android_tutorial_pubsub). After running rosmake in one of these packages, you should be able to import it as an Eclipse project (the project files are generated via rosmake). For Android, you'll also need to rosmake and import at least the android_gingerbread library project.

edit flag offensive delete link more
0

answered 2011-11-08 04:35:08 -0500

mouser58907 gravatar image

Thank you Damon, I've managed to get 'rosmake rosjava' to work, as well as the pubsub tutorial (At least I can import it to eclipse). However when I try to 'rosmake rosjava.android' I get this error:

roslib.packages.InvalidROSPkgException: Cannot locate installation of package parsec_msgs: [rospack] couldn't find package [parsec_msgs]. ROS_ROOT[/opt/ros/electric/ros] ROS_PACKAGE_PATH[/home/craig/ros_workspace:/opt/ros/electric/stacks]

it comes underneath the header:

rosrun rosjava_bootstrap make.py android_rosserial

Do you have any idea what could cause this?

edit flag offensive delete link more
0

answered 2011-11-09 19:27:48 -0500

damonkohler gravatar image

Please accept the first answer if you're happy with it. This should probably have been a second question.

First, you should checkout the android stack as "android_core."

However, the problem is caused by a temporary dependency on a different stack I'm working on. I suggest avoiding android_rosserial package for now as it is designed to work with a fork of rosserial that is part of the parsec stack (where android_rosserial should live at the moment).

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

Stats

Asked: 2011-11-07 10:09:03 -0500

Seen: 1,184 times

Last updated: Nov 09 '11