4.1. Launch parameters
If you are not sure how to set the parameters, connect the Orbbec camera and open OrbbecViewer, or refer to the camera datasheet in Chapter 1.
4.1.1. How to modify launch parameters
Launch parameters can be modified in two ways:
Override parameters in the launch command
This is recommended for debugging, testing a parameter, or applying a setting only for the current launch. Use the format
parameter_name:=parameter_value. You can append multiple parameters to the same command.roslaunch orbbec_camera gemini_330_series.launch camera_name:=camera_02
Example: change the camera name and enable point cloud output at the same time.
roslaunch orbbec_camera gemini_330_series.launch camera_name:=camera_02 enable_point_cloud:=true
Modify the default value in a launch file
This is useful when you want a setting to become a long-term default, such as a fixed resolution, frame rate, camera name, or synchronization mode. Device launch files are located in launch. Choose the
*.launchfile that matches your camera model.For example, modify the default camera name to
camera_02:<arg name="camera_name" default="camera_02"/>
If you build from source, rebuild the workspace and source it again after modifying a launch file:
cd ~/ros_ws catkin_make source devel/setup.bash
If you installed with apt/deb, it is not recommended to edit files in the system installation directory directly. Prefer command-line parameter overrides, or copy the launch file and maintain your own launch configuration.
The following are the launch parameters available:
4.1.1.1. Core & Stream Configuration
camera_nameStart the node namespace.
serial_numberThe serial number of the camera. This is required when multiple cameras are used. See multi camera for multi-camera startup.
usb_portThe USB port of the camera. This is required when multiple cameras are used. See multi camera for multi-camera startup.
device_numThe number of devices. This must be filled in if multiple cameras are required. See multi camera for multi-camera startup.
device_presetDepth preset. See predefined presets for available presets and recommended scenarios. You can use the following command to view the configurable modes; the tool also prints the preset list and preset version information.
rosrun orbbec_camera list_devices_node
[color|depth|left_ir|right_ir|ir]_[width|height|fps|format]The resolution and frame rate of the sensor stream.
For Femto Mega / Femto Bolt, depth NFOV and WFOV modes are configured by combining depth and IR resolutions. See Configuration of depth NFOV and WFOV modes.
For lower CPU usage, see the
color_formatrecommendations in Lower CPU Usage.
[color|depth|left_ir|right_ir|ir]_rotationSet stream image rotation.
The possible values are
0,90,180,270.
[color|depth|left_ir|right_ir|ir]_flipEnable the stream image flip.
[color|depth|left_ir|right_ir|ir]_mirrorEnable the stream image mirror.
enable_point_cloudEnable the point cloud. See Point Cloud for usage and RViz visualization.
enable_colored_point_cloudEnable the RGB point cloud. See Point Cloud for usage and RViz visualization.
cloud_frame_idModify the
frame_idname within the ros message.
ordered_pcEnable filtering of invalid point clouds.
point_cloud_qos,[stream]_qos,[stream]_camera_info_qosThese QoS parameters are not applicable in the ROS1 wrapper. In ROS1, topic behavior is mainly controlled by publisher/subscriber queue sizes.
point_cloud_decimation_filter_factorPoint cloud downsampling factor. Range:
1–8.1means no downsampling.
4.1.1.2. Sensor Controls
4.1.1.2.1. Color Stream
enable_color_auto_exposureEnable the Color auto exposure.
enable_color_auto_exposure_priorityEnable the Color auto exposure priority.
color_exposureSet the Color exposure.
color_gainSet the Color gain.
enable_color_auto_white_balanceEnable the Color auto white balance.
color_white_balanceSet the Color white balance.
color_ae_max_exposureSet the maximum exposure value for Color auto exposure.
color_ae_max_gainSet the maximum gain for Color auto exposure. Supported by Gemini 2 firmware
1.5.04and above, and Gemini 2L firmware1.5.09and above. Range:16–112.
color_brightness,color_sharpness,color_gamma,color_saturation,color_contrast,color_hueSet the Color brightness, sharpness, gamma, saturation, contrast, and hue.
color_backlight_compensationEnables the color camera’s backlight compensation feature. Range:
0–6, Default:3.
color_powerline_freqSet the power line freq. The possible values are
disable,50hz,60hz,auto.
color_presetSet the Color preset for Gemini 330 series devices. Options:
Default,Warm Biased AWB.
color_anti_flickerEnable Color anti-flicker. Supported by Gemini 330 series firmware
1.7.13and above, and Gemini 305 series firmware1.0.54and above.
enable_color_decimation_filter/color_decimation_filter_scaleEnable the Color decimation filter and set its scale.
color_ae_roi_[left|right|top|bottom]Set Color auto exposure ROI.
color_denoising_levelEnable ISP Color denoising. Range:
0–8;0means auto. Supported by Gemini 2 firmware1.5.04and above, and Gemini 2L firmware1.5.09and above. This feature requires Color auto exposure and new firmware support.
4.1.1.2.2. Depth Stream
enable_depth_auto_exposure_priorityEnable the Depth auto exposure priority.
mean_intensity_set_pointSet the target average intensity of the depth image when auto-exposure is turned on. For example:
mean_intensity_set_point:=100.
Note: In wrapper version 2.4.7 and later, this parameter replaces the deprecated
depth_brightness, butdepth_brightnesswill still be supported for backward compatibility.enable_depth_scaleWhether to enable depth scaling after setting D2C.
truemeans enabled, the default istrue.
depth_precisionThe depth precision should be in the format
1mm. The default value is1mm.
depth_work_modeSet the depth work mode. See Depth Work Mode Switch for supported devices, mode query commands, and launch examples.
depth_ae_roi_[left|right|top|bottom]Set Depth auto exposure ROI.
4.1.1.2.3. IR Stream
enable_ir_auto_exposureEnable the IR auto exposure.
ir_exposure/ir_gainSet the IR exposure and gain.
ir_ae_max_exposureSet the maximum exposure value for IR auto exposure.
ir_brightnessSet the target average intensity of the ir image when auto-exposure is turned on.
4.1.1.2.4. Laser / LDP
enable_laserEnable the laser. The default value is
true.
laser_energy_levelSet the laser energy level.
enable_ldp/ldp_power_levelEnable the LDP and set its power level.
4.1.1.3. Device, Sync & Advanced Features
4.1.1.3.1. Multi-Camera Synchronization
sync_modeSet sync mode. The default value is
standalone. See multi camera synced for multi-camera connection, synchronization modes, and trigger configuration.
depth_delay_us/color_delay_usThe delay time (microseconds) of the depth/color image capture after receiving the capture command or trigger signal.
trigger2image_delay_usThe delay time (microseconds) of the image capture after receiving the capture command or trigger signal. Us
trigger_out_delay_usThe delay time (microseconds) of the trigger signal output after receiving the capture command or trigger signal.
trigger_out_enabledEnable the trigger out signal.
software_trigger_enabled/software_trigger_periodEnable the software trigger out signal / set the software trigger period in ms.
frames_per_triggerThe frame number of each stream after each trigger in triggering mode.
4.1.1.3.2. Network Cameras
enumerate_net_deviceEnable automatically enumerate network devices. See net camera for network camera startup, specified IP startup, and Force IP configuration.
ip_address/portSet net device’s IP address and port (usually
8090). See net camera for network camera startup, specified IP startup, and Force IP configuration.
force_ip_enableEnable the Force IP function. Default:
false
force_ip_macTarget device MAC address when multiple cameras are connected (e.g.,
"54:14:FD:06:07:DA"). You can use thelist_devices_nodeto find the MAC of each device. Default:""
force_ip_addressStatic IP address to assign. Default:
192.168.1.10
force_ip_subnet_maskSubnet mask for the static IP. Default:
255.255.255.0
force_ip_gatewayGateway address for the static IP. Default:
192.168.1.1
4.1.1.3.3. Device-Specific
enable_gmsl_trigger/gmsl_trigger_fpsEnable the gmsl trigger out signal / set gmsl trigger fps.
Only supports gmsl camera.
enable_ptp_configEnable PTP time synchronization. Requires
enable_sync_host_timeto befalse.
Supported Modules: Gemini 335Le
preset_resolution_configPreset resolution configuration for the camera device. Format: “width,height,ir_decimation_factor,depth_decimation_factor”. Example: “1280,720,4,4”. Leave empty to disable.
Supported Modules: Gemini 435Le
ae_reference_streamSelect the AE reference stream for Gemini 305 series devices. Options:
color,depth.
Supported Modules: Gemini 305
ae_strategySelect the AE strategy for Gemini 305 series devices. Options:
default,motion.
Supported Modules: Gemini 305
depth_downscale/left_ir_downscale/right_ir_downscaleSet the downsampling multiple. You can use
rosrun orbbec_camera list_camera_profile_mode_nodeto view the settable resolution. Default value:1
Supported Modules: Gemini 305
enable_false_positive_filterEnable this option to reduce ghosting noise.
Supported Modules: DaBaiA / DaBaiAL / Gemini 330 series / Gemini345 / Gemini345Lg
4.1.1.3.4. Disparity
disparity_to_depth_modeHW: use hardware disparity to depth conversion.SW: use software disparity to depth conversion. Usedisableto turn it off.This parameter is case-insensitive. Invalid values are reported and replaced with the default value.
disparity_range_mode,disparity_search_offset,disparity_offset_configParameters for disparity search offset. Used for disparity search offset.
4.1.1.3.5. Interleave AE Mode
interleave_ae_modeSet
laserorhdrinterleave.
interleave_frame_enable,interleave_skip_enable,interleave_skip_indexParameters to control interleave frame mode.
[hdr|laser]_index[0|1]_[...]In interleave frame mode, set the 0th and 1st frame parameters of hdr or laser interleaving frames.
All interleave parameters are used for interleave ae mode.
4.1.1.3.6. Intra-Camera Synchronization
depth_registrationEnable alignment of the depth frame to the color frame. This field is required when the
enable_colored_point_cloudis set totrue. See Aligning Depth to Color for startup and viewing examples.
align_modeThe alignment mode to be used. Options are
HWfor hardware alignment andSWfor software alignment.This parameter is case-insensitive. Invalid values are reported and replaced with the default value.
align_target_streamSet align target stream mode.
The possible values are
COLOR,DEPTH.COLOR: Align depth to color.DEPTH: Align color to depth.This parameter is case-insensitive. Hardware D2C only supports
COLORas the target stream; usealign_mode:=SWif you need to align toDEPTH. See Aligning Depth to Color for startup and viewing examples.
intra_camera_sync_referenceSets the reference point for intra-camera synchronization. Applicable for Gemini 330 series devices when
sync_modeis set to software or hardware trigger mode. Options:Start,Middle,End. When set to empty, the long baseline device defaults to End, and the short baseline device defaults to Middle.
4.1.1.4. Basic & General Parameters
4.1.1.4.1. Firmware & Backend
upgrade_firmwareThe input parameter is the firmware path. For new versions, use the standalone
firmware_update_toolfor firmware updates. See firmware_update_tool.
preset_firmware_pathThe input parameter is the preset firmware path. If multiple paths are input, each path needs to be separated by
,and a maximum of 3 firmware paths can be input. For new versions, use the standalone tool to burn presets. See firmware_update_tool.
uvc_backendOptional values:
v4l2,libuvc. See Lower CPU Usage for low-CPU scenarios.
connection_delayThe delay time in milliseconds for reopening the device. Some devices, such as Astra mini, require a longer time to initialize and reopening the device immediately can cause firmware crashes when hot plugging.
retry_on_usb3_detection_failureIf the camera is connected to a USB 2.0 port and is not detected, the system will attempt to reset the camera up to three times. It is recommended to set this parameter to
falsewhen using a USB 2.0 connection to avoid unnecessary resets.
4.1.1.4.2. TF, Extrinsics & Calibration
publish_tf/tf_publish_rateEnable the TF publish and set its publication rate. See Coordinate Systems and TF Transforms for coordinate frames, TF tree inspection, and visualization.
enable_publish_extrinsicEnable the extrinsics publish.
ir_info_url/color_info_urlSet URL of the IR/color camera info.
enable_[color|depth|ir|left_ir|right_ir]_undistortionEnable the SDK undistortion filter for the selected image stream. Dual-IR devices use
enable_left_ir_undistortion/enable_right_ir_undistortion; single-IR devices useenable_ir_undistortion.
4.1.1.4.3. Time Synchronization
enable_sync_host_timeEnable synchronization of the host time with the camera time. The default value is
true. If using global time, set tofalse.
time_domainSelect timestamp type:
device,global, andsystem.This parameter is case-insensitive. Invalid values are reported and replaced with the default value.
timestamp_clock_typeSet the SDK timestamp clock type. Optional values:
realtime,monotonic. The default isrealtime.
time_sync_periodInterval (in seconds) for synchronizing the camera time with the host system.
Note: This parameter only needs to be set when
enable_sync_host_time = trueandtime_domain = device.enable_frame_drop_logEnable frame drop logging. The log reports drops detected at both the SDK receive stage and the ROS publish stage.
frame_timestamp_csv_fileCSV output path for frame timestamp statistics. If empty, no CSV file is written; set a path such as
/tmp/frame_timestamp.csvto save CSV data.
enable_frame_syncEnable the frame synchronization.
4.1.1.4.4. Logging & Diagnostics
log_levelSDK log level. Default output keeps only the current device status; use
debugfor more detailed logs. Optional values:debug,info,warn,error,fatal.SDK logs and crash files are stored in
~/.ros/Log; ROS1 runtime logs are stored in~/.ros/log/<run_id>.
log_file_nameSaved SDK log file name. Effective when
log_levelisdebug; the actual path is usually~/.ros/Log/<camera_name>/<log_file_name>. In multi-camera setups, differentcamera_namevalues write into separate directories.
diagnostic_periodDiagnostic period in seconds.
enable_heartbeatEnable the heartbeat function. Default is
false. Iftrue, the camera node will send heartbeat signals to the firmware.
enable_firmware_logEnable firmware log capture independently from
enable_heartbeat.
4.1.1.4.5. Miscellaneous
config_file_pathThe path to the YAML configuration file. Default is
"". If not specified, default parameters from the launch file will be used. Some presets or special modes are configured through YAML. See predefined presets.
load_config_json_file_pathSDK JSON configuration import path. When set, the node imports the JSON configuration during initialization. For Gemini 330 series, use
gemini_330_series_sdk_json.launchas the dedicated SDK JSON launch file.
export_config_json_file_pathSDK JSON configuration export path. When set, the node exports the current device configuration to JSON after initialization. You can also export at runtime with the
/camera/export_config_jsonservice.
frame_aggregate_modeSet frame aggregate output mode. Optional values:
full_frame,color_frame,ANY,disable.This parameter is case-insensitive. Invalid values are reported and replaced with the default value.
enable_d2c_viewerPublishes the D2C overlay image (for testing only). See Aligning Depth to Color for usage examples.
4.1.1.5. IMU
enable_accel/enable_gyroEnable the Accelerometer/gyroscope and output its info topic data.
enable_sync_output_accel_gyroEnable the sync
accel_gyro, and output IMU topic real-time data.
accel_rate/gyro_rateThe frequency of the accelerometer/gyroscope. Values range from
1.5625hzto32khz.
accel_range/gyro_rangeThe range of the accelerometer (
2g,4g,8g,16g) and gyroscope (16dpsto2000dps).
enable_accel_data_correction/enable_gyro_data_correctionEnable data correction for the accelerometer/gyroscope.
linear_accel_cov/angular_vel_covCovariance of the linear acceleration and angular velocity.
4.1.1.6. Depth Filters
enable_decimation_filterEnable the Depth decimation filter. Set with
decimation_filter_scale.
enable_hdr_mergeEnable the Depth hdr merge filter. Set with
hdr_merge_exposure_1, etc.
enable_sequence_id_filterEnable the Depth sequence id filter. Set with
sequence_id_filter_id.
enable_threshold_filterEnable the Depth threshold filter. Set with
threshold_filter_max,threshold_filter_min.
enable_hardware_noise_removal_filterEnable the Depth hardware noise removal filter. See Lower CPU Usage for low-CPU configuration recommendations.
enable_noise_removal_filterEnable the Depth software noise removal filter. Set with
noise_removal_filter_min_diff, etc. See Lower CPU Usage for low-CPU configuration recommendations.
enable_spatial_filterEnable the Depth spatial filter. Set with
spatial_filter_alpha, etc. See Lower CPU Usage for low-CPU configuration recommendations.
enable_temporal_filterEnable the Depth temporal filter. Set with
temporal_filter_diff_threshold, etc.
enable_hole_filling_filterEnable the Depth hole filling filter. Set with
hole_filling_filter_mode.
enable_spatial_fast_filterEnable the Depth spatial fast filter. Set with
spatial_fast_filter_radius.
enable_spatial_moderate_filterEnable the Depth spatial moderate filter. Set with
spatial_moderate_filter_diff_threshold, etc.
enable_mgc_noise_removal_filterEnable the MGC noise removal filter for OpenNI devices including Astra Mini (S) Pro, DaBai Pro Max, and DaBai DCW2.
enable_lut_noise_removal_filterEnable the LUT noise removal filter for OpenNI devices including Astra Mini (S) Pro, DaBai Pro Max, and DaBai DCW2.
IMPORTANT: Please carefully read the instructions regarding software filtering settings at this link. If you are uncertain, do not modify these settings.