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

gnome-terminal run roslaunch after ssh without closing the terminal

asked 2021-06-11 07:27:04 -0500

Ksan gravatar image

updated 2021-06-12 08:58:32 -0500

miura gravatar image

I 'd like to write a as follows :

gnome-terminal -x bash -c "roslaunch abc slam.launch"
sleep 2s
gnome-terminal -x bash -c "ssh ubuntu@ipaddress; sleep 4s; roslaunch bringup minimal.launch"
sleep 2s
gnome-terminal -x bash -c 'ssh ubuntu@ "roslaunch lidar scan.launch"'

It runs smoothly for the 1st roslaunch, the second command just ended at login in result of ssh, the last command , it open and then closed. I tried to change some script inside, and result shown "bash: roslaunch command not found"

How should i do ? thanks !

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-06-12 17:38:50 -0500

jayess gravatar image

What are you trying to accomplish here? It looks like you want roslaunch to ssh into a machine and launch the launch file on that machine, but I'm not entirely sure. If this is the case, this functionality is already built in to roslaunch using the machine tag

edit flag offensive delete link more


I want to write a script to use ssh login into a computer and then run roslaunch there. I already setup ssh login without password

Ksan gravatar image Ksan  ( 2021-06-12 23:18:50 -0500 )edit

Question Tools

1 follower


Asked: 2021-06-11 07:27:04 -0500

Seen: 421 times

Last updated: Jun 12 '21