Performance: Why launch files automate startup
Launch files affect the startup speed and resource initialization of ROS nodes and systems.
<launch> <node pkg="package" type="node1" name="node1"/> <node pkg="package" type="node2" name="node2"/> <node pkg="package" type="node3" name="node3"/> </launch>
roscore & rosrun package node1 & rosrun package node2 & rosrun package node3 &
| Pattern | Startup Steps | Manual Intervention | Error Risk | Verdict |
|---|---|---|---|---|
| Manual node startup | Multiple separate commands | High | High | [X] Bad |
| Launch file automation | Single coordinated file | Low | Low | [OK] Good |
<launch> <node pkg=\"demo_pkg\" type=\"demo_node\" name=\"demo\" /> <param name=\"speed\" value=\"5\" /> </launch>
<launch> <node pkg=\"my_pkg\" exec=\"my_node\" name=\"node1\" /> </launch>
Pass the test and this pattern moves unknown