Jump to content

Linux Shell Script Help - ROS

Shahin

Hi,

 I need help creating a script to to do the following tasks in linux and I'm not sure how

roscore

 

open new terminal

cd ~/catkin_ws

source devel/setup.bash

roslaunch my_dynamixel_tutorial controller_manager.launch

 

open new terminal

source devel/setup.bash

roscd my_dynamixel_tutorial

roslaunch my_dynamixel_tutorial start_meta_controller.launch

 

Link to comment
Share on other sites

Link to post
Share on other sites

put this in script1.sh

source devel/setup.bash

roslaunch my_dynamixel_tutorial controller_manager.launch

 

put this in script2.sh

source devel/setup.bash

roscd my_dynamixel_tutorial

roslaunch my_dynamixel_tutorial start_meta_controller.launch

 

put this in run.sh

cd ~/catkin_ws

gnome-terminal -- script1.sh

gnome-terminal -- script2.sh

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×