상세 컨텐츠

본문 제목

5 roslaunch

머신러닝

by Riella 2020. 7. 10. 18:40

본문

728x90

launch file: XML document that has .launch extension

It launches multiple ROS nodes.

It specifies which nodes to execute, and their parameters, and what other launch files to include.

 

How to create:

1. Go to catkin_ws/src

2. Create the directory to put .launch file

catkin_create_pkg launch

3. Create the file in directory/src

echo "blah" > turtlesim_teleop.launch
nano turtllesim_teleop.launch

4. Edit to following XML file

<launch>
	<node pkg="turtlesim" type="turtlesim_node" name="kyou_turtlesim_node">
	<node pkg="turtlesim" type="turtlesim_teleop_key" name="turtlesim_teleop_node">
</launch>

pkg: package name

type: current name node

name: customized name

 

5. go to catkin_ws/devel file and run

source setup.bash

6. Run above file, then multiple rosnode will be run

roslaunch launch[pkgname] turtlesim_teleop.launch[fname]

'머신러닝' 카테고리의 다른 글

7 What is catkin_make?  (0) 2020.07.12
6 ROS_MASTER_URI  (0) 2020.07.11
4 Turtlesim  (0) 2020.07.09
3 Create python file on ROS package  (0) 2020.07.09
2 Create ROS Package  (0) 2020.07.09

관련글 더보기

댓글 영역