Ask Your Question
1

Integrating glc within package for capturing video

asked 2011-04-04 05:19:02 -0500

Robin gravatar image

Hi all,

I'd like to use glc ( http://www.ros.org/wiki/RecordingOpen... ) to capture video from an OpenGL window from within a ROS package. There are instructions for running glc separately from the terminal, but I'd like to integrate it into my code. Has anyone done this? Are there any examples out there? Just wondering whether it's feasible, or if I should go the glReadPixels route.

Thanks ~Robin

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2011-04-06 03:59:15 -0500

KoenBuys gravatar image

I wrote a function that calls glReadPixels and outputs an IplImage that is published on a topic, this is part of my openGL program. This is actually very easy to implement in your own program.

As GLC is a wrapper it should be possible to adjust GLC and input it in a rosnode. I assume you want the argument program to be inputted as a parameter. Personally I went for the readpixels path as I didn't see a use-case for this approach.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-04-04 05:19:02 -0500

Seen: 298 times

Last updated: Apr 06 '11