lukasvst / dm-vio-ros

ROS wrapper for DM-VIO: Delayed Marginalization Visual-Inertial Odometry
GNU General Public License v3.0
120 stars 22 forks source link

OpenGL Error 502: GL_INVALID_OPERATION: The specified operation is not allowed in the current state. In: /usr/local/include/pangolin/gl/gl.hpp, line 214 #3

Closed vbelkina closed 2 years ago

vbelkina commented 2 years ago

Hello, I am trying to run the euroc rosbag from the notes, however, I receiving the above error and then it does not do anything afterwards. I have seen in other places that usually this error is ignored, so this is why I'm not sure what the problem is. If you have any suggestions, please let me know. I had been able to run dm-vio successfully with my own camera and imu, however, then this error occurred so I wanted to try it with the rosbag. Thank you!

command: rosrun dmvio_ros node calib=/home/data/camera.txt settingsFile=/home/dm-vio/configs/euroc.yaml mode=1 nogui=0 preset=1 useimu=1 quiet=1 init_requestFullResetNormalizedErrorThreshold=0.8 init_pgba_skipFirstKFs=1

output: Loading settings from yaml file: /home/dm-vio/configs/euroc.yaml! PHOTOMETRIC MODE WITHOUT CALIBRATION!

=============== PRESET Settings: =============== DEFAULT settings:

Rectified Kamera Matrix: 302.967 0 308.852 0 418.335 250.271 0 0 1

NO PHOTOMETRIC Calibration! Reading Photometric Calibration from file PhotometricUndistorter: Could not open file! using pyramid levels 0 to 3. coarsest resolution: 80 x 60! START PANGOLIN! Switching to initializer state: RealtimeCoarseIMUInitState PixelSelector: Using block sizes: 16, 16 OpenGL Error 502: GL_INVALID_OPERATION: The specified operation is not allowed in the current state. In: /usr/local/include/pangolin/gl/gl.hpp, line 214

vbelkina commented 2 years ago

I got the euroc rosbag to work -> the problem was with the rostopics. However, I am still having this issue with my own data even though the rostopics match the ones specified. So I suppose there is some other issue that is happening.

lukasvst commented 2 years ago

I didn't quite understand the problem you are having. Are you sure that the images and IMU data arrive in the ROS wrapper? Does the GUI work with the EuRoC rosbag?

I don't think the OpenGL Error is the problem but to make sure you can pass nogui=1 to disable the GUI.

vbelkina commented 2 years ago

I ended up explicitly assigning the topics by using /cam0/image_raw:=/camera_topic /imu0:=/imu_topic at the end of the command and that has been working.