작성자: 박준규
2023.01.16(월)
Referred to: https://www.youtube.com/watch?v=cTXHIEYXKpM
Use a .launch file (referred below as launch file) to launch multiple ROS nodes.
A launch file is an XML document which specifies:
create a directory called launch inside the package directory
inside the launch folder, create launchfile_name.launch
The launch file would look something like this:
<launch>
<node pkg="turtlesim" type="turtlesim_node" name="turtlesim_node" />
<node pkg="package_name" type="name_of_node_in_package" name="custom_name_of_the_node" />
</launch>
roslaunch package_name launchfile_name.launch
if roscore is not running at this stage, roslaunch will detect it and start it automatically.