-
Notifications
You must be signed in to change notification settings - Fork 12
rgbd images from realsense cameras #943
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
base: master
Are you sure you want to change the base?
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not like this IF switch much - looks like different class should be used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be better this?
bus.register('depth:gz', 'color', 'infra', 'rgbd_raw:gz')
The IF switch will remain just in the depth_callback.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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).