ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Can't run a ros package created with rosjava

asked 2011-09-08 21:54:29 -0600

Damien Cassou gravatar image


I'm using rosjava from mercurial and ros electric from Ubuntu repository. I created a ros package following instructions. I try to execute it with:

$ rosrun rosjava_bootstrap diarobot diarobot.scenario.diarobot.deploy.Deploy

but I get the following output:

Buildfile: /home/cassou/Documents/robotics/stacks/diarobot/dependencies.xml


Total time: 1 second
Executing command: ['java', '-classpath', u'/home/cassou/.ros/rosjava/lib/org.ros.rosjava.test_ros-0.0.0.jar:/home/cassou/.ros/rosjava/lib/org.ros.rosjava.roscpp-0.0.0.jar:/home/cassou/.ros/rosjava/lib/org.ros.rosjava.topic_tools-0.0.0.jar:/home/cassou/Documents/robotics/stacks/rosjava_bootstrap/apache_xmlrpc/target/org.ros.rosjava.apache-xmlrpc-3.1.3.jar:/home/cassou/Documents/robotics/stacks/rosjava_bootstrap/rosjava_bootstrap/target/org.ros.rosjava.rosjava_bootstrap-0.0.0.jar:/home/cassou/.ros/rosjava/lib/org.ros.rosjava.std_msgs-0.0.0.jar:/home/cassou/Documents/robotics/stacks/rosjava_bootstrap/rosjava/target/org.ros.rosjava-0.0.0.jar:/home/cassou/.ros/rosjava/lib/org.ros.rosjava.rosgraph_msgs-0.0.0.jar:/home/cassou/.ros/rosjava/lib/org.ros.rosjava.geometry_msgs-0.0.0.jar:/home/cassou/Documents/robotics/stacks/rosjava_bootstrap/apache_commons_util/target/', 'org.ros.RosRun', 'diarobot.scenario.diarobot.deploy.Deploy']
Loading node class: diarobot.scenario.diarobot.deploy.Deploy
Unable to locate node: diarobot.scenario.diarobot.deploy.Deploy
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-09-20 20:52:38 -0600

damonkohler gravatar image

It looks like there may be a missing dependency in your manifest.xml or that your build.xml is not generating a jar for your package. You can debug this by looking at the classpath in the executed command. It should include the jar that has your class in it.

edit flag offensive delete link more


You are right, no jar were being constructed. Thank you
Damien Cassou gravatar image Damien Cassou  ( 2011-09-24 22:36:06 -0600 )edit
I also had similar issue and `rosdep install rosjava_bootstrap` solved the problem
Kei Okada gravatar image Kei Okada  ( 2011-10-11 19:52:05 -0600 )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


Asked: 2011-09-08 21:54:29 -0600

Seen: 417 times

Last updated: Sep 20 '11