how to connect to robot and run a node in a new terminal

asked 2019-04-27 09:21:33 -0500

Erezn gravatar image

updated 2019-04-27 15:06:37 -0500

jayess gravatar image

Hi there,

I have lots of terminals that i have to open in order to run my script (e.g launching the simulator, enabling the robot, opening the gui, connecting to camera and more). I know how to open a new gnome-terminal and run multiples commands, but if the first command is "connecting to the robot" i can't continue to the next one.

i am using

os.system("gnome-terminal -- /bin/sh -c '/home/erez/ros_ws/ ; rosrun project_x gui_project_x'")
edit retag flag offensive close merge delete


Have you tried writing a .launch file? I feel like that's the solution for you here.

allenh1 gravatar image allenh1  ( 2019-04-29 16:43:48 -0500 )edit