-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decimal places limit for depth Camera #608
Decimal places limit for depth Camera #608
Conversation
The possibility to limit the decimal places of the pixels values has been added to the DepthCameraDriver class.
Hi @elandini84, sorry, I had missed this PR (feel free to ping me if you see I do not reply in a few days). |
This is quite a cool feature! Before merging, can you:
Thanks! |
I added the requested changes. Just one thig: I added the parameter inside a separate section ( |
Thanks! I modified a bit the changelog to be a bit more clear. For what regards the name of the parameter for me the choice of group/not group is indifferent, if you like it like this we can proceed. |
Thanks for the changes. |
@elandini84 so the current name is ok for you? |
Yes, absolutely |
The possibility to limit the decimal places of the pixels values has
been added to the DepthCameraDriver class.
The main reason behind this PR relies on the great bandwidth consumption of the depth images (32 bit float data and up to 7-8 significant digits.) even after lossless compression.
The following set of tests should provide a good explanation of the benefits of this new feature (thanks to @DatSpace for preforming the tests and for the useful table)
Data
For the experiment we try different quantization values (significant digits) for a depth image from gazebo, while the robot is looking turned 45 degrees at a wall 1m away from the camera. The bandwidth bellow is per frame averaged over 10 seconds, transmitted through LAN with zlib compression.
Note: There was some background data transfer at the range of 30kbps that is significant for the lowest measurements. Still the numbers are so small that it doesn't really matter.
NB: If the configuration parameters passed to the plugin do not contain the group
QUANT_PARAM
this feature is disabled and the plugin will work as it always had.EDIT: An example of configuration file with the parameters group needed for this feature can be seen in PR #35 for the
cer-sim
repo.