0
$\begingroup$

Rosanswers logo

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!


Originally posted by rozoalex on ROS Answers with karma: 113 on 2017-08-08

Post score: 2

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

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 :-).


Originally posted by Blupon with karma: 127 on 2017-08-08

This answer was ACCEPTED on the original site

Post score: 4


Original comments

Comment by jayess on 2017-08-08:
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.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.