7. Tạo một ROS Publisher
Bạn có thể bắt đầu với tutorial Writing a Simple Publisher and Subscriber (Python) trên trang chủ của ROS nhưng nó không thú vị cho lắm vì chỉ in "hello world" trên màn hình của bạn. Trong bài này, bạn sẽ học cách tạo ra Node "Nhiếp Ảnh Gia" từ chươn...
robodev.blog11 min read
dạ anh ơi, khi chạy lệnh rosrun my_cam image_publisher.py thì máy em báo lỗi như thế này Image is being published to the topic /image_raw ... [ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (1758) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module source reported: Could not read from resource. [ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (888) open OpenCV | GStreamer warning: unable to start pipeline [ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (480) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created Traceback (most recent call last): File "/home/ducmatau/catkin_ws/src/my_cam/image_publisher.py", line 30, in <module> publish_image() File "/home/ducmatau/catkin_ws/src/my_cam/image_publisher.py", line 18, in publish_image rospy.ERROR() TypeError: 'int' object is not callable. Anh cho em hỏi làm thế nào để fix ạ, em cảm ơn