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

ROSJava .launch files and parameters

asked 2013-01-14 09:18:58 -0600

amittleider gravatar image

I am wondering how to put a ROSJava node within a launch file. I also want to pass parameters to the ROSJava program, just like in C++ and Python nodes. I cannot find documentation on this problem (at least not a simple copy/paste solution). There is some code in this question

<node pkg="rosjava_bootstrap" type="run.py" args="bumperCar org.lejos.ros.nodes.bumpercar.BumperCarControl" name="BumperCarControl" />

but this does not work for me, as I have no file named run.py within the rosjava_bootstrap package. I installed ROSJava within the past two months, so my ROSJava version should be up-to-date.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-02-19 10:55:39 -0600

damonkohler gravatar image

The run.py script hasn't been used in a long time. You'll need to use the Gradle installApp task (see documentation) and then configure your launch file to execute the generated binary/script. This will hopefully become easier in the future.

edit flag offensive delete link more

Comments

Got it, thanks! Here is a sample launch file entry for anyone wondering: <node pkg="rospkg" type="nodename" name="nodename" args="myrosjavanodeclassname" />

amittleider gravatar image amittleider  ( 2013-03-05 04:24:03 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-01-14 09:18:58 -0600

Seen: 239 times

Last updated: Feb 19 '13