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

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

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


Do you have a stack trace by chance?
damonkohler gravatar image damonkohler  ( 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 image johnfertitta  ( 2011-09-30 02:35:23 -0500 )edit

Question Tools


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

Seen: 307 times

Last updated: Sep 21 '11