-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disabling debug node #49
Comments
Hey @godcapable, you can modify the launch files and comment the debug node. Do you have more logs about the error (this line, the error/exception,...)? |
Okay, here is the detailed log during debug_node execution:
The error is due to usage of the usage of cv_bridge: My computer doens't allow cv_bridge usage I successfully modified yolov8_node.py and tracking_node.py :
Also,
This way, I could directly use numpy instead of cv2 and safely get message from detection node and tracking node (they actually detect object through yolov8 algorithm. I could only see it in terminla) But [debug_node.EXE-3] generate error, because I don't know how to re-convert numpy to image message in publishing code section in debug_node.py :
I believe if I know how to modify this code, my problem will be resolved easily. Your help will be greatly appreciated. |
Hey @godcapable, you can check the code of CvBridge to get how to do it. So you can do the following: new_img_msg = sensor_msgs.msg.Image()
new_img_msg.height = cv_image.shape[0]
new_img_msg.width = cv_image.shape[1]
new_img_msg.encoding = img_msg.encoding
new_img_msg.data.frombytes(cv_image.tobytes())
new_img_msg.step = len(new_img_msg.data) |
This issue is stale because it has been open for 30 days with no activity. |
Hi, I have problem where detection and tracking node is sending message, but debug node is making an error.
I guess it is error comping from cv2_bridge extension.
So, I want to activate detection node and tracking node only, and deactivate debug node.
Would you let me know in which part of the python code might be modified to disable only the debug node?
C:\Users\skyun.oh\Desktop>ros2 launch yolov8_bringup yolov8.launch.py image_reliability:=1
[INFO] [launch]: All log files can be found below C:\Users\skyun.oh.ros\log\2024-08-30-13-27-44-599362-KORCO087849-40472
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [yolov8_node.EXE-1]: process started with pid [46528]
[INFO] [tracking_node.EXE-2]: process started with pid [46280]
[INFO] [debug_node.EXE-3]: process started with pid [46828]
[ERROR] [yolov8_node.EXE-1]: process has died [pid 46528, exit code 1, cmd 'c:\ros2_workspace\install\yolov8_ros\lib\yolov8_ros\yolov8_node.EXE --ros-args -r __node:=yolov8_node -r __ns:=/yolo --params-file C:\Users\skyun.oh\AppData\Local\Temp\launch_params_2hbnfeej -r image_raw:=/camera/rgb/image_raw'].
[yolov8_node.EXE-1] [INFO] [1724992080.844718600] [yolo.yolov8_node]: [yolov8_node] Configuring...
The text was updated successfully, but these errors were encountered: