Ask Your Question
1

Remote Roslaunch Output to Local Monitor [closed]

asked 2012-03-21 12:39:30 -0600

kmaroney gravatar image

Is there a way to get the output from remote processes launched on a different machine to display on the console in which it was launched?

I am launching my remote processes like so:

<launch>
  <node machine="remote_robot" name="robot_node" type="robot_node" pkg="robot_node" output="screen" />
</launch>

I have seen the previous post here. Which basically said that the only options are rxconsole for proper ros outputs (which my wrapper is not able to use). It also spoke about remote X11 session, which is interesting however I was unable to find any more information after digging into the thread history.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2013-09-09 15:03:58

1 Answer

Sort by ยป oldest newest most voted
-1

answered 2012-03-21 12:46:23 -0600

If there aren't too many args to the launch, you can write a ros node that simply uses system process calls (eg, using python's subprocess module) to execute the roslaunch command as you would from the command line.

Since you can pass <machine> tags as args to nodes, the node could run the launch command remotely.

edit flag offensive delete link more

Comments

This is an interesting idea. I can see from quickly reading through the documentation that the subprocess module can run just as you would from command line as you said, however I didn't see that you have the ability to run commands on remote machines? Are there packages that have done this?

kmaroney gravatar imagekmaroney ( 2012-03-21 13:19:50 -0600 )edit

I use this method to run launch files remotely, but just realized that you're right, this won't work (easily) for getting the log data back to the local monitor, sorry bout that.

phil0stine gravatar imagephil0stine ( 2012-03-21 13:45:13 -0600 )edit

Question Tools

Stats

Asked: 2012-03-21 12:39:30 -0600

Seen: 790 times

Last updated: Mar 21 '12