Files
OrbbecSDK_ROS2/orbbec_camera/examples/benchmark
yalian d4bbdb4459 Update Orbbec SDK to version 2.4.10 and modify related configurations
- Updated the OrbbecSDKConfig-release.cmake files for both arm64 and x64 architectures to reference the new SDK version 2.4.10.
- Replaced occurrences of 'depth_brightness' with 'mean_intensity_set_point' in launch files and the camera node header to improve clarity and consistency.
- Added new spatial filtering options (SpatialFastFilter and SpatialModerateFilter) in the camera node implementation, including parameters for radius, magnitude, and difference threshold.
- Updated the setupDevices and setupDepthPostProcessFilter methods to handle the new mean intensity setting and spatial filter parameters.
- Modified launch files for various examples to reflect the new argument names and added new parameters for spatial filtering.
2025-08-02 00:11:04 +08:00
..
2025-02-26 17:45:41 +08:00

Ob_benchmark tool

The goal of this tool is to benchmark the performance of various OrbbecSDK_ROS2 camera configurations. The benchmark results depend on the camera and settings used.(Currently only works with ROS2 Humble)

Usage Instructions

Tool Configuration (start_benchmark_params.json)

{
    "start_benchmark_params": {
        "camera_name": [
            "camera_01",
            "camera_02",
            "camera_03",
            "camera_04"
        ],
        "process_name": "component_conta",
        "switch_cycle": 300,
        "test_cycle": 1,
        "skip_number": 30
    }
}

  • camera_name: Names of the cameras to be configured. Example: "camera_01", "camera_02", etc.
  • process_name: The name of the process to be monitored. For example, "component_conta" will monitor the data of the container process.
  • switch_cycle: The cycle time for switching configurations, in seconds. For example, setting it to 300 means the configuration will switch every 300 seconds.
  • test_cycle: The testing cycle, in seconds. For example, setting it to 1 means the tool will collect data for the monitored process every 1 second.
  • skip_number: The number of data points to skip. For example, setting it to 30 means that the first 30 data points will be ignored.

Camera configuration (launch files)

In the launch folder, there are multiple.launch.py files (ob_benchmark_0.launch.py, ob_benchmark_1.launch.py, ..., ob_benchmark_19.launch.py). Each file corresponds to a different camera configuration.

Running the ob_benchmark tool

To run the tool, use the following commands:

source install/setup.bash
ros2 run orbbec_camera ob_benchmark_node

Output Data Files

The output data files will be stored in the ob_benchmark folder with filenames like 0.csv, 1.csv, ..., 19.csv. For example:

  • 0.csv contains data from the ob_benchmark_0.launch.py configuration.
  • 1.csv contains data from the ob_benchmark_1.launch.py configuration.