mohammedari / opengl_ros

A simple implementation to utilize OpenGL shader (GLSL) code with a GPU-powered machine under ROS environment
MIT License
10 stars 2 forks source link

Feature Request: Headless Mode #8

Open DanielArnett opened 3 years ago

DanielArnett commented 3 years ago

Currently this cannot be run unless run from a graphical display. If run through ssh it returns Failed to initialize EGL display. EGL_FALSE.

While the code modifications recommended here will still compile and run, ultimately it still can't run in headless mode on my intel integrated graphics machine.

I took the code I modified with the above article and submitted them in Pull Request 7

mohammedari commented 3 years ago

Hmm... that's weird since the code works on our environment (Jetson TX2) without an issue.

I had merged our recent work, which developed in mbzirc2020 branch, to the master branch. https://github.com/mohammedari/opengl_ros/pull/9

The commits include some fixes regarding EGL contexts, so I hope this may help.

DanielArnett commented 3 years ago

This commit still "Failed to create EGL context". Note that it runs fine when a screen is connected to the machine, but when unplugging the display and sshing in it doesn't work.

Also I'm getting an error because cgs_nav_msgs isn't being found. How do I add that? Similar with usb_cam, what library is that coming from?

mohammedari commented 3 years ago

Sorry, cgs_nav_msgs is an internal package we use. I removed dependencies to it, so I think you can build the package now.