You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ipc-robot@ipcrobot-Precision-Tower-3420:~/ros2_ws$ ros2 run example_service_rclpy service_client_02
[INFO] [1722589543.093786297] [service_client_02]: 节点已启动:service_client_02!
Traceback (most recent call last):
File "/home/ipc-robot/ros2_ws/install/example_service_rclpy/lib/example_service_rclpy/service_client_02", line 33, in <module>
sys.exit(load_entry_point('example-service-rclpy==0.0.0', 'console_scripts', 'service_client_02')())
File "/home/ipc-robot/ros2_ws/install/example_service_rclpy/lib/python3.10/site-packages/example_service_rclpy/service_client_02.py", line 14, in main
node.send_request(3,4)
AttributeError: 'ServiceClient02' object has no attribute 'send_request'
[ros2run]: Process exited with failure 1
以下是
client_02
的代码:The text was updated successfully, but these errors were encountered: