fpasteau / raspicam_node

Groovy ROS node for camera module of Raspberry Pi
76 stars 39 forks source link

Problem with coding #12

Open juankkt opened 8 years ago

juankkt commented 8 years ago

Hi, the node_raw have a problem, at certain random time change the coding of bgra8 to rgba8, I tried to find the exact time, but this varies depending on CPU usage. What is the fault?. This does not occur in the compressed node.

einrob commented 7 years ago

Hi,

I had the flickering encoding problem too. I reduced the framerate which resulted in a stable but false encoded image stream. Then I hat to change the encoding of the ros sensor_msgs::Image message in raspicam_raw_node.cpp from bgra8 to rgba8. Although the camera configuration uses MMAL_ENCODING_BGRA to initialize the camera it works now for slow frame rates up to ~15fps@640x480@RP2.

Thank you for you awesome work fpasteau!

Sincerly Robert

EDIT: Added resolution information of my image stream