Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Writing a camera plugin would enable to use the image data any way you like, including passing it to another process in memory. This example shows how to create a plugin. You can copy/paste the example and then change the code in CameraDump::OnNewFrame() to pass via memory to another process.

Writing a camera plugin would enable to use the image data any way you like, including passing it to another process in memory. This example shows how to create a plugin. You can copy/paste the example and then change the code in CameraDump::OnNewFrame() to pass via memory to another process.

-- edit --

Sounds like you're getting the image using ImageData(). It returns an array of length ImageByteSize(). The format depends on the return value of ImageFormat().