Ask Your Question

How to write a shell script to start everything?

asked 2017-08-08 13:56:09 -0500

rozoalex gravatar image

I am very new to shell script. Is this possible to write a script basically starts for example gazebo, rviz and slam? I tried to execute command by python by you can only execute one at a time, executing next requires exiting the current one.


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-08-08 14:04:42 -0500

Blupon gravatar image

updated 2017-08-08 14:09:15 -0500

You can launch several nodes using a unique launch file.

For example, this is a launch file that can launch rtabmap_ros, hector_mapping, rviz and other things.

Notice the parts that start with <node (...) > and end with </node> : those mark the limits between the start of the different nodes.

Check here for an answer to a similar question :-).

edit flag offensive delete link more



Also, check out the tips for larger projects. This is a far better way to go than using shell scripts. They have their place, but launch files are far more powerful in this context.

jayess gravatar image jayess  ( 2017-08-08 14:44:46 -0500 )edit

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


Asked: 2017-08-08 13:56:09 -0500

Seen: 1,405 times

Last updated: Aug 08 '17