警告
您正在閱讀已達到生命週期結束(end-of-life,EOL)版本的 ROS 2 文件,該版本不再正式受支援。如果您想獲取最新資訊,請參見 Kilted。
教學
The tutorials are a collection of step-by-step instructions meant to steadily build skills in ROS 2.
The best way to approach the tutorials is to walk through them for the first time in order, as they build off of each other and are not meant to be comprehensive documentation.
For quick solutions to more specific questions, see the 操作指南.
- Beginner: CLI tools
- Beginner: Client libraries
- Using
colconto build packages - Creating a workspace
- Creating a package
- Writing a simple publisher and subscriber (C++)
- Writing a simple publisher and subscriber (Python)
- Writing a simple service and client (C++)
- Writing a simple service and client (Python)
- Creating custom msg and srv files
- Implementing custom interfaces
- Using parameters in a class (C++)
- Using parameters in a class (Python)
- Using
ros2doctorto identify issues - Creating and using plugins (C++)
- Using
- Intermediate
- Advanced
- Enabling topic statistics (C++)
- Using Fast DDS Discovery Server as discovery protocol [community-contributed]
- Implementing a custom memory allocator
- Unlocking the potential of Fast DDS middleware [community-contributed]
- Improved Dynamic Discovery
- Recording a bag from a node (C++)
- Recording a bag from a node (Python)
- Reading from a bag file (C++)
- How to use ros2_tracing to trace and analyze an application
- Simulators
- Security
- Demos
- Using quality-of-service settings for lossy networks
- Managing nodes with managed lifecycles
- Setting up efficient intra-process communication
- Recording and playing back data with
rosbagusing the ROS 1 bridge - Understanding real-time programming
- Experimenting with a dummy robot
- Logging
- Creating a content filtering subscription
- Configure service introspection
- External resources
- Miscellaneous