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

How to run java node via launch file? [closed]

asked 2012-05-06 20:30:17 -0500

safzam gravatar image

Hi all, How can we include java node in launch file? I know we normally include roscpp and rospy nodes in launch files but how to include such following command in lauch file e.g: rosrun rosjava_bootstrap run.py java_package java_node __name:=j_node Best regards

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by damonkohler
close date 2012-05-21 05:51:28

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-05-10 05:44:19 -0500

damonkohler gravatar image

The best option currently is to use the installApp task to build an executable jar and wrapper script (see the rosjava_tutorial_pubsub example and the rosjava_core documentation: http://docs.rosjava.googlecode.com/hg/rosjava_core/html/index.html). Then you can use roslaunch to execute it in the same way you would an arbitrary executable.

edit flag offensive delete link more

Comments

Thanks. I have a topic t1 which bublishes strings "yes" and sometimes "no". Another topic t2 publishes string "why" only when t1 bublishes "no". Now I want to get a chart/graph. When and which topic triggered. I have seen the rxplot (only works for numeric values). rxconsole gives the output but in a seraial form. Is there any way you know how to get my desired plot OR how to get a text file from rxconsole so that i can play with in Matlab to get the plot. I mean I am only interested triggering of the topic but on some specific values. Regards and thanks in advance

safzam gravatar image safzam  ( 2012-05-10 23:46:03 -0500 )edit

@safzam This is a separate question. Please ask it separately.

tfoote gravatar image tfoote  ( 2012-05-20 11:40:02 -0500 )edit

Question Tools

Stats

Asked: 2012-05-06 20:30:17 -0500

Seen: 417 times

Last updated: May 10 '12