sbrodeur / ros-icreate-bbb

ROS (Robotic Operating System) packages for the iRobot Create with onboard BeagleBone Black
BSD 3-Clause "New" or "Revised" License
3 stars 2 forks source link

Maximum JPEG image size may be reached #23

Open sbrodeur opened 7 years ago

sbrodeur commented 7 years ago

The current maximum number of bytes for a JPEG-encoded image is 32768 when exporting a rosbag to HDF5: https://github.com/sbrodeur/ros-icreate-bbb/blob/master/src/action/scripts/record/data/convert_hdf5.py#L124

This led to errors lately because some images were going over this limit. The script could be adapted to automatically increase the shape of the data, similarly to what is done here for the time dimension: https://github.com/sbrodeur/ros-icreate-bbb/blob/master/src/action/scripts/record/data/h5utils.py#L111

sbrodeur commented 7 years ago

Right now, we just use a bigger value of 40000.