Skip to content
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

Feature request: Publish exposure time #2616

Closed
schmidtp1 opened this issue Feb 8, 2023 · 9 comments
Closed

Feature request: Publish exposure time #2616

schmidtp1 opened this issue Feb 8, 2023 · 9 comments

Comments

@schmidtp1
Copy link
Contributor

Would it be possible to publish the exposure time as part of the metadata? Thank you!

@MartyG-RealSense
Copy link
Collaborator

Hi @schmidtp1 The actual exposure value for depth can be obtained from metadata when auto-exposure is enabled. However, the exposure value for RGB cannot be obtained whilst auto-exposure is enabled, as advised by a RealSense team member at IntelRealSense/librealsense#2549 (comment)

Is RGB exposure the metadata type that you are seeking, please?

@schmidtp1
Copy link
Contributor Author

schmidtp1 commented Feb 8, 2023

Thank you for the quick reply and the helpful reference. That is a bit disappointing that we can't get RGB exposure.

Yes, it's the value I'm looking for and the request is about exposing it in ROS (e.g. in form of a topic).

@MartyG-RealSense
Copy link
Collaborator

It may be possible to retrieve the manual RGB camera exposure value using the rosparam get <parameter name> command, though this is not exposing it in the form of a topic.

http://wiki.ros.org/rosparam#rosparam_get

rosparam get / lists all dynamically configurable parameters.

@schmidtp1
Copy link
Contributor Author

Thank you for following up but we need auto-exposure.
I assume we can get the parameter for depth?
We need it for every frame, i.e. 30Hz. Wouldn't it be better to have a topic at that frequency?

@MartyG-RealSense
Copy link
Collaborator

I have highlighted your query about the possibility of RGB exposure metadata to the RealSense ROS team. Thanks very much for your patience!

Depth exposure is retrievable during auto-exposure from the metadata parameter ACTUAL_EXPOSURE.

@MartyG-RealSense
Copy link
Collaborator

The advice that I have received is that that ROS publishes all metadata that librealsense exposes, so if librealsense cannot expose RGB exposure metadata when auto-exposure is enabled then ROS cannot publish it either, unfotunately.

@schmidtp1
Copy link
Contributor Author

That makes sense. Just to make sure I understand correctly, does "publishes all metadata" mean it is published as a topic, or can be retrieved via parameter (as described above)?

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Feb 10, 2023

Regarding publishing to a topic, my colleagues on the RealSense ROS developer team explained that ROS has a generic mechanism that iterates through all of the supported metadata values and writes them on the json string for publishing on the metadata topic. That means it publishes all metadata that the librealsense SDK exposes.

Furthermore, librealsense also has a generic mechanism which gets the metadata attributes from the firmware and its validity flag. With the 400 Series' RGB sensor, once you activate auto-exposure then the manual exposure validity flag turns false at the firmware side. This behaviour can be seen in the RealSense Viewer tool. Once you turn on the auto-exposure, the manual exposure value disappears from the metadata list.

As the origin of this block is from the firmware, the RealSense ROS team cannot do something about this issue. RGB exposure therefore cannot be retrieved with a ROS wrapper parameter, unfortunately.

@schmidtp1
Copy link
Contributor Author

That's great that it is already published (within the known limitations). Thank you for pointing me where to look! Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants