yekigoc / rosjava

Automatically exported from code.google.com/p/rosjava
0 stars 0 forks source link

Bootstrapping the Classpath to run a Node #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Right now, there is no easy (documented) way to run a java node.  I have 
attached a patch which uses a modified get_claspath function of 
generate_properties.py  to generate the runtime class path for the node.  

The script is rosjava_bootstrap/scripts/run.  Its usage is :

This python script runs rosjava based jars and bootstraps the classpath
for the node by looking at its package manifest.

rosrun rosjava_bootstrap run <pkg> <node_class>  [args ... ]

Now, for  example, the tutorial Talker can be run by doing :
rosrun rosjava_bootstrap run rosjava org.ros.tutorials.pubsub.Talker

Original issue reported on code.google.com by *astamb...@willowgarage.com on 12 Jul 2011 at 11:46

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by damonkoh...@google.com on 27 Jul 2011 at 6:17