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

RGB image exposure control #1786

Closed
Hiroaki-K4 opened this issue Apr 2, 2021 · 6 comments
Closed

RGB image exposure control #1786

Hiroaki-K4 opened this issue Apr 2, 2021 · 6 comments
Labels

Comments

@Hiroaki-K4
Copy link

Hi.
It seems that the depth image can be set from the launch file. Is it possible to control the exposure of the RGB image?
Thanks!

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Apr 2, 2021

Hi @Hiroaki-K4 You could try configuring custom RGB exposure dynamically during runtime after launch by inputting the command below directly after the roslaunch instruction. Here is an example:

rosrun dynamic_reconfigure dynparam set /camera/rgb_camera exposure 100

@Hiroaki-K4
Copy link
Author

Hiroaki-K4 commented Apr 5, 2021

Hi @MartyG-RealSense
Thanks, I understood.
I found that exposure control is possible when the node is started. Is it possible to dynamically control the exposure of the rgb image while the node is running?
For example, it's like passing an exposure control value as a message and changing it during execution.

@MartyG-RealSense
Copy link
Collaborator

The rosrun command above does change exposure after launch, as it is a 'dynamic reconfigure' command - changing the setting during runtime after the node has been launched.

@Hiroaki-K4
Copy link
Author

Hiroaki-K4 commented Apr 7, 2021

@MartyG-RealSense
ok.
Is it possible to control the exposure without using the rosrun command?
For example, publish the exposure control value from another node and subscirbe from the dynamic_reconfigure node.
Or can I change it by publishing the exposure control value in the /camera/rgb_camera topic?

@MartyG-RealSense
Copy link
Collaborator

In the case in the link below, someone set up a listener node and used query_devices to change the exposure from within that node.

#1206 (comment)

Earlier in that discussion they had tried setting exposure (depth exposure in their case) with dynamic reconfigure from within the listener node with the instruction below but found it to be very slow.

system("rosrun dynamic_reconfigure dynparam set /D435_2/stereo_module exposure 100");

@Hiroaki-K4
Copy link
Author

ok. Thanks!

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

No branches or pull requests

2 participants