小坷笔记:ROS2常用代码模版

小坷笔记:ROS2常用代码模版
坷常用复制粘贴
无需多言
1 | colcon build |
这个也无需多言
1 | def main(): |
这个更加无需多言
1 | import rclpy |
创建功能包
1 | ros2 pkg create 包名 --build-type ament_python --dependencies 依赖名 --license Apache-2.0 |
日常打印
1 | self.get_logger().info() |
launch
1 | import launch |
人脸检测
人脸检测服务实现
1 | import rclpy |
人脸检测客户端实现
1 | import rclpy |
TF变换
python发布静态tf
1 | import rclpy |
python发布动态tf
1 | import rclpy |
python查询tf变换
1 | import rclpy |