ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The ROS driver for your camera should have a parameter or a dynamic_reconfigure option to adjust the frame rate.
Without knowing which camera you're using or which ROS driver you're using, I can't provide more specific advice.
2 | No.2 Revision |
The ROS driver for your camera should have a parameter or a dynamic_reconfigure option to adjust the frame rate.
Without knowing which camera you're using or which ROS driver you're using, I can't provide more specific advice.
UPDATE
The usb_cam driver decodes the image and passes it directly to the image_transport publisher, so it isn't passing mjpeg images through directly.
The "quick and dirty" approach mentioned by the compressed_image_transport page is dirty because it only publishes compressed images, and doesn't provide the uncompressed images that most other ROS nodes expect.
If you really want compressed images directly from the camera you'll have to modify the source for the usb_cam driver or write a new camera driver. You'll probably want to stop using the image_transport library and implement image transport yourself, either: