surgical-robotics-ai / surgical_robotics_challenge

Interactive Robot Assisted Suturing Simulation
59 stars 45 forks source link

project_needle_pts.py script not working and throwing error #29

Closed astitwlathe closed 2 years ago

astitwlathe commented 2 years ago

Hi Everyone, When I try to run the project_needle_pts.py script, it throws an error:

OpenCV Error: Assertion failed (size.width>0 && size.height>0) in imshow, file /build/opencv-L2vuMj/opencv-3.2.0+dfsg/modules/highgui/src/window.cpp, line 304 Traceback (most recent call last): File "project_needle_pts.py", line 125, in cv2.imshow("img", img) cv2.error: /build/opencv-L2vuMj/opencv-3.2.0+dfsg/modules/highgui/src/window.cpp:304: error: (-215) size.width>0 && size.height>0 in function imshow

The script seems to not be able to get images from ROS node. Thank you for your time.

astitwlathe commented 2 years ago

To add , I followed the link https://github.com/WPI-AIM/ambf/wiki/Camera-feed-and-depth-camera to resolve the error. However, the script does not work.

adnanmunawar commented 2 years ago

Can you go through this closed issue and check all the points in the conversation.

adnanmunawar commented 2 years ago

Closing this as stale