Camera#
Captures the stereo cameras, rectifies the images and estimates depth. Each topic is only published, and depth only estimated, while the topic has subscribers.
Runs in the start profiles remote (the default), companion.
Node stereo_publisher#
Captures, rectifies, encodes and publishes both cameras, and estimates depth.
Name |
Kind |
Type |
|
|---|---|---|---|
Publishes |
topic |
||
Publishes |
topic |
||
Publishes |
topic |
||
Publishes |
topic |
||
Publishes |
topic |
||
Publishes |
topic |
||
Publishes |
topic |
||
Publishes |
topic |
||
Publishes |
topic |
||
Publishes |
topic |
||
Serves |
service |
||
Serves |
service |
||
Publishes |
topic |
||
Publishes |
topic |
||
Publishes |
topic |
||
Publishes |
topic |
||
Publishes |
topic |
||
Publishes |
topic |
||
Publishes |
topic |
||
Serves |
service |
||
Serves |
service |
||
Publishes |
topic |
Parameters#
Name |
Type |
Default |
Description |
|---|---|---|---|
|
bool |
|
Publish rectified images, if the cameras are calibrated. Otherwise the image_rect and depth topics publish nothing; the raw images are always on image_raw. Applied at the next frame. |
|
bool |
|
Estimate and publish depth, if the images are rectified. Can be changed while running. |
|
double |
|
Highest rate of depth estimation, which bounds its GPU usage. 0 estimates as often as the model can. Can be changed while running. |
|
double |
|
Depths with a lower confidence, between 0 and 1, are published as NaN. 0 publishes all of them. Can be changed while running. |
|
double |
|
Depths of surfaces seen more edge-on than this angle, in (0, 90] degrees, are published as NaN, as most are flying pixels at the borders of objects. 90 keeps them. Can be changed while running. |
|
int |
|
Width of the depth images; the images are downsampled to it before estimating depth. There must be a model for this width: 960, 768, 640, 480, 384 or 320. Only read at startup. |
|
bool |
|
Adjust exposure time and gains automatically. Changing it restarts the cameras, about 11 s without images. |
|
double |
|
Exposure time, if auto_exposure is false. Multiples of 10 ms avoid flicker under 50 Hz lighting, and of 8.33 ms under 60 Hz. Changing it restarts the cameras. |
|
double |
|
Analog gain, if auto_exposure is false. Changing it restarts the cameras. |
|
double |
|
Digital gain, if auto_exposure is false; the starting point of auto_digital_gain. Applied without restarting the cameras. |
|
bool |
|
Adjust the white balance automatically. |
|
string |
|
White balance preset, if auto_white_balance is false: incandescent, fluorescent, warm-fluorescent, daylight, cloudy-daylight, twilight or shade. |
|
bool |
|
If auto_exposure is false, adjust the digital gain so that the images’ median brightness tends to brightness_target. |
|
double |
|
Target median brightness of auto_digital_gain, in the 16-235 range. |
|
double |
|
Relative distance from the target, above black level, beyond which auto_digital_gain corrects the gain; it then corrects it until the distance is a third of this. |
|
double |
|
auto_digital_gain lowers the gain while more than this fraction of the pixels is clipped, and does not raise it while more than half of it is. |
|
double |
|
Lowest digital gain that auto_digital_gain sets. |
|
double |
|
Highest digital gain that auto_digital_gain sets. |
|
bool |
|
Stop the left camera. Restarts the cameras. |
|
bool |
|
Stop the right camera. Restarts the cameras. |
|
string |
empty |
Address to stream RTP video to, outside ROS, e.g. a phone’s. Empty for none. Cleared if not set again within 10 s, so set it repeatedly, e.g. every 5 s, while streaming. |
|
string |
|
Calibration of the left camera, in the format of the camera_calibration package. Only read at startup. |
|
string |
|
Calibration of the right camera. Only read at startup. |
Read and set them with ros2 param, or with the node’s parameter services (/stereo_publisher/set_parameters):
ros2 param get /stereo_publisher rectify
ros2 param set /stereo_publisher rectify true