Ask Your Question
0

How to write a shell script to start everything?

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

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.

Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

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

Blupon gravatar image

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

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

Comments

1

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 imagejayess ( 2017-08-08 14:44:46 -0600 )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

Stats

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

Seen: 948 times

Last updated: Aug 08 '17