Ask Your Question
0

how to launch file from computer B to execute in computer A

asked 2020-10-06 03:48:17 -0600

lfvm0001 gravatar image

Hi, I am running some navigation test with a mobile robot (A) with Ubuntu 12.04.1 and ROS hydro. I also have ROS on my laptop (B) and want to communicate both computers to launch the different nodes from my laptop.

Both computers are in the same network and using the ROS_MASTER_URI and ROS_IP I am able to see the nodes of the robot in my computer. roscore is running in the robot and i have a launch file in the robot that launches different nodes, what i want is to call that launch file from my laptop (the computations and everything will execute in the robot but i want to call it from the laptop)

Is it needed to create a package in the laptop just to call the launch file or is there any other way ?

Sorry for my English, and thanks

edit retag flag offensive close merge delete

Comments

Is SSH not enough?

You cannot directly call a launch file on another machine, but you could use the machinetag to launch the nodes on the other computer: http://wiki.ros.org/roslaunch/XML/mac...

mgruhler gravatar image mgruhler  ( 2020-10-06 06:02:07 -0600 )edit

Thanks... if I use the machine tag , and I have some nodes that need some .yaml files, those files need to be in the computer where I’m launching the file right ? Even if the node is running in the other machine ?

lfvm0001 gravatar image lfvm0001  ( 2020-10-07 03:00:50 -0600 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2020-10-07 03:56:00 -0600

lfvm0001 gravatar image

Thanks to mgruhler for the response! As he commented, what I want (to directly call a launch file from another computer) was not possible. However as recommended I use the tag machine in my launch file to tell to all the nodes to run in computer A and then run the file from computer B. And it’s working as intended. Thanks

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-10-06 03:48:17 -0600

Seen: 97 times

Last updated: Oct 07 '20