Quellcode durchsuchen

fix(chapt3): 修复缺少引入导致代码错误

鱼香ROS vor 2 Jahren
Ursprung
Commit
d389812382
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      docs/humble/chapt3/get_started/9.自定义接口RCLPY实战.md

+ 2 - 0
docs/humble/chapt3/get_started/9.自定义接口RCLPY实战.md

@@ -126,6 +126,8 @@ class Robot():
 ## 3.编写机器人节点
 
 ```python
+from example_ros2_interfaces.srv import MoveRobot
+
 class ExampleInterfacesRobot02(Node):
     def __init__(self,name):
         super().__init__(name)