The repo is created for learning ros2 launch system due to the lack of detailed description of how to write the launch file.
All of the examples could be run in foxy
Clone the repo to your ROS2 workspace which is under src file folder
git clone https://github.com/chargerKong/learning_ros2_launch_by_example
And then build it
colcon build --packages-select learning_ros2_launch_by_example
source install/local_setup.bash
Here is the brief contents
- How to launch a node
- three ways to execute launch file
- How to change topic name in Node
- How to transfer argument into main function
- How to set parameters to a Node
- How to load yaml file
- How to change parameters from command line
- What arguments should I set in command line
- How to conditionally start a node
- How to use PythonExpression
- How to get context from LaunchConfiguration instance
- How to include another launch file
- How to simulate shell command in launch file
- What is action?
- How to execute an action after a period of time
- How to define group action
- How to set envirnment
- What is lifecycle node
- How to emit an action
- How_to_use_register_event_handler