Ask Your Question
1

rosjava (on android) dependancies producing run-time errors

asked 2011-09-21 01:01:54 -0500

I've recently started working with ROS java and I've had decent success so far, however nav_msgs are not working. In my Android project I'm attempting to use OccupancyGrid from nav_msgs. I included nav_msgs as a dependency in my manifest, ran rosmake, and have a nav_msgs jar file. I can reference the jar from my project and build the Andorid app, however, in run-time I get ClassNotFound exceptions when it tries to use nav_msgs.

Is there anything special that needs to be done to build jars for android? My project used geometry_msgs and std_msgs without a problem. Also, if I remove support for my map, thus eliminating the need for nav_msgs, my code base runs perfectly fine and the subscribers and publishers work as expected.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2011-09-21 07:27:25 -0500

It turns out the jar is not bad after all. I can create and use objects in nav_msgs without runtime errors. The errors only occurred when I was trying to use OccupancyGrid with a service to retrieve a map.

This seems to be a problem with rosjava services and not with the compiled jar.

edit flag offensive delete link more

Comments

Do you have a stack trace by chance?
damonkohler gravatar imagedamonkohler ( 2011-09-23 01:15:39 -0500 )edit
I don't have one at the moment, but when I get a chance I'll try and post one.
johnfertitta gravatar imagejohnfertitta ( 2011-09-30 02:35:23 -0500 )edit

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-09-21 01:01:54 -0500

Seen: 215 times

Last updated: Sep 21 '11