NoneJou072 / robopal

robopal: a multi-platform, modular robot simulation framework based on MuJoCo, mainly used for reinforcement learning and control algorithm implementation of robotic arms.
https://robopal.readthedocs.io/
Apache License 2.0
151 stars 15 forks source link

GLFWError: (65537) b'The GLFW library is not initialized' #12

Closed HJX-exoskeleton closed 5 months ago

HJX-exoskeleton commented 5 months ago

python demo_visual_servo.py

INFO:root:Activated agents: ['arm0'] Traceback (most recent call last): File "/home/hjx/hjx_file/mujoco_file/robopal/robopal/demos/demo_visual_servo.py", line 125, in env.step() File "/home/hjx/hjx_file/mujoco_file/robopal/robopal/demos/demo_visual_servo.py", line 70, in step cam2aruco_r, cam2aruco_p, detected_already = self.aruco_detection(marker_size) File "/home/hjx/hjx_file/mujoco_file/robopal/robopal/demos/demo_visual_servo.py", line 42, in arucodetection rvec, tvec, = cv2.aruco.estimatePoseSingleMarkers( AttributeError: module 'cv2.aruco' has no attribute 'estimatePoseSingleMarkers' /home/hjx/anaconda3/envs/hjx/lib/python3.9/site-packages/glfw/init.py:914: GLFWError: (65537) b'The GLFW library is not initialized'

NoneJou072 commented 5 months ago

Upgrade to the latest opencv and opencv-contrib version

HJX-exoskeleton commented 5 months ago

Thanks! The problem was resolved using the pip installation: pip install opencv-python pip install opencv-contrib-python