Browse Source

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

鱼香ROS 2 years ago
parent
commit
d389812382
1 changed files with 2 additions and 0 deletions
  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.编写机器人节点
 ## 3.编写机器人节点
 
 
 ```python
 ```python
+from example_ros2_interfaces.srv import MoveRobot
+
 class ExampleInterfacesRobot02(Node):
 class ExampleInterfacesRobot02(Node):
     def __init__(self,name):
     def __init__(self,name):
         super().__init__(name)
         super().__init__(name)