Conversation
…enable png format for images
…mage format, image resolutions
can you add some motivation? the depth encoded as PNG is much bigger as far as I remember |
|
After a long time, i returned to this PR. |
osgar/tools/lidarview.py
Outdated
| img_data, depth_data = data | ||
| image = pygame.image.load(io.BytesIO(img_data), 'JPG').convert() | ||
| g_depth = decompress_depth(depth_data) | ||
| g_depth = decompress_depth(depth_data)/1000 |
There was a problem hiding this comment.
This is incompatible with virtual subt logs because there are different units (mm versus m). I think the mm (int16) are better choice . Or not?
There was a problem hiding this comment.
this is breaking change so I do not like it ... I actually do not like the RGBD bundle, but I understand it from "synchronized source" point of view. Yes it is not practical and the data are bigger (twice?)
|
Sample log:
|
osgar/drivers/realsense.py
Outdated
| self.rgbd = config.get("rgbd", False) | ||
| if self.rgbd: | ||
| assert self.depth_rgb, self.depth_rgb | ||
| bus.register('rgbd_raw:gz', 'infra') |
There was a problem hiding this comment.
I do not like this IF switch much - looks like different class should be used?
There was a problem hiding this comment.
Could be better this?
bus.register('depth:gz', 'color', 'infra', 'rgbd_raw:gz')
The IF switch will remain just in the depth_callback.
m3d
left a comment
There was a problem hiding this comment.
@jisa any comments to larger RGBD bundles? To be honest I do not really know :(.
I also do not have realsense to verify that the functionality is not broken. I see the motivation to keep synchronized RGBD but somehow I am not happy with it.
|
@tajgr - please create new "bundle", which will be depth |
…to feature/rs-rgbd
|
Thanks. I created new bundle where dictionary is used. Yes, it is not exactly what you said. |
note: The reason for png is that my colleagues required some lossless format.
Moreover, the Multicam support individual resolution and depth_fps now. Some types of realsense cameras required different values (D455 or L515).