lucasw / rviz_camera_stream

Custom rviz camera plugin that published rendered camera video stream
BSD 3-Clause "New" or "Revised" License
59 stars 47 forks source link

Blue and Red Inverted #21

Closed marcelinomalmeidan closed 6 years ago

marcelinomalmeidan commented 6 years ago

I am not sure if this is an issue that happens only with me, but red and blue were inverted in the rendered image. I fixed this by changing lines 144 and 146 of camera_display.cpp. I've exchanged RGB8 for BGR8, and RGBA8 for BGRA8, and problem was fixed after that.

lucasw commented 6 years ago

The changes made for #20 should have cleared that up- are you using the latest master branch? Your line numbers don't match up with the latest version, line 144 is currently image.step = pixelsize * width;.

marcelinomalmeidan commented 6 years ago

Sorry, I had an older forked version of the code! Great thing that it has already been spotted and fixed!