瀏覽代碼

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

鱼香ROS 2 年之前
父節點
當前提交
d389812382
共有 1 個文件被更改,包括 2 次插入0 次删除
  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)