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

Revision history [back]

click to hide/show revision 1
initial version

Two ways that I can think of, though I haven't really tried this out much myself, so let me know how they go.

You can create shell scripts to executable jars that can then be used in roslaunch. Damon does this with his test scripts in rosjava_core. e.g.

#!/bin/sh
exec java -jar `rospack find rosjava`/dist/rosjava.jar org.ros.ParameterServerTestNode $@

Alternatively, you should be able to put those installApp scripts directly into a roslaunch:

<node pkg="my_pub_sub_tutorial" type="" name="my_pub_sub_tutorial " args="com.github.rosjava_catkin_package_a.my_pub_sub_tutorial.Talker"/>

Two ways that I can think of, though I haven't really tried this out much myself, so let me know how they go.

You can create shell scripts to executable jars that can then be used in roslaunch. Damon does this with his test scripts in rosjava_core. e.g.

#!/bin/sh
exec java -jar `rospack find rosjava`/dist/rosjava.jar org.ros.ParameterServerTestNode $@

Alternatively, you should be able to put those installApp scripts directly into a roslaunch:

<node pkg="my_pub_sub_tutorial" type="" name="my_pub_sub_tutorial " type="my_pub_sub_tutorial" name="my_pub_sub_tutorial" args="com.github.rosjava_catkin_package_a.my_pub_sub_tutorial.Talker"/>

Two ways that I can think of, though I haven't really tried this out much myself, so let me know how they go.

You can create shell scripts to executable jars that can then be used in roslaunch. Damon does this with his test scripts in rosjava_core. e.g.

#!/bin/sh
exec java -jar `rospack find rosjava`/dist/rosjava.jar org.ros.ParameterServerTestNode $@

Alternatively, you should be able to put those installApp scripts directly into a roslaunch:roslaunch (is this how you were trying?):

<node pkg="my_pub_sub_tutorial" type="my_pub_sub_tutorial" name="my_pub_sub_tutorial" args="com.github.rosjava_catkin_package_a.my_pub_sub_tutorial.Talker"/>