Skip to content

Commit 08a6f69

Browse files
committed
Update gmsl_camera example
1 parent 02b101f commit 08a6f69

File tree

6 files changed

+489
-27
lines changed

6 files changed

+489
-27
lines changed

orbbec_camera/config/camera_params.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ enable_color: true
2525
color_width: 0
2626
color_height: 0
2727
color_fps: 0
28-
color_format: "MJPG"
28+
color_format: "ANY"
2929
enable_color_auto_exposure: true
3030
color_exposure: 30 # 3ms
3131
color_gain: 16 # -1 default
@@ -35,15 +35,15 @@ enable_depth: false
3535
depth_width: 0
3636
depth_height: 0
3737
depth_fps: 0
38-
depth_format: "Y16"
38+
depth_format: "ANY"
3939

4040

4141
#left ir params
4242
enable_left_ir: true
4343
left_ir_width: 0
4444
left_ir_height: 0
4545
left_ir_fps: 0
46-
left_ir_format: "Y8"
46+
left_ir_format: "ANY"
4747
enable_ir_auto_exposure: true
4848
ir_exposure: 3000 # 3ms
4949
ir_gain: 16 # -1 default
@@ -53,6 +53,6 @@ enable_right_ir: false
5353
right_ir_width: 0
5454
right_ir_height: 0
5555
right_ir_fps: 0
56-
right_ir_format: "Y8"
56+
right_ir_format: "ANY"
5757

5858

orbbec_camera/config/camera_secondary_params.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ enable_color: true
2525
color_width: 0
2626
color_height: 0
2727
color_fps: 0
28-
color_format: "MJPG"
28+
color_format: "ANY"
2929
enable_color_auto_exposure: true
3030
color_exposure: 30 # 3ms
3131
color_gain: 16 # -1 default
@@ -35,15 +35,15 @@ enable_depth: false
3535
depth_width: 0
3636
depth_height: 0
3737
depth_fps: 0
38-
depth_format: "Y16"
38+
depth_format: "ANY"
3939

4040

4141
#left ir params
4242
enable_left_ir: true
4343
left_ir_width: 0
4444
left_ir_height: 0
4545
left_ir_fps: 0
46-
left_ir_format: "Y8"
46+
left_ir_format: "ANY"
4747
enable_ir_auto_exposure: true
4848
ir_exposure: 3000 # 3ms
4949
ir_gain: 16 # -1 default
@@ -53,6 +53,6 @@ enable_right_ir: false
5353
right_ir_width: 0
5454
right_ir_height: 0
5555
right_ir_fps: 0
56-
right_ir_format: "Y8"
56+
right_ir_format: "ANY"
5757

5858

orbbec_camera/examples/gmsl_camera/README.MD

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# GMSL_camera
22

3-
> This section describes how to use GMSL camera in OrbbecSDK_ROS2.Currently, only G335Lg GMSL devices are supported, and other GMSL devices will be supported in the near future.
3+
> This section describes how to use GMSL camera in OrbbecSDK_ROS2.Currently, only Gemini 335Lg GMSL devices are supported, and other GMSL devices will be supported in the near future.
44
55
## Single GMSL camera
66

77
The usage of GMSL camera in OrbbecSDK_ROS2 is the same as that of Gemini 330 series camera via USB.
88

99
```bash
10-
ros2 launch orbbec_camera gemini_330_series.launch.py
10+
ros2 launch orbbec_camera gemini_330_gmsl.launch.py
1111
```
1212

1313
## Multi GMSL camera
@@ -20,12 +20,14 @@ ros2 run orbbec_camera list_devices_node
2020

2121
For example, the obtained gmsl camera `usb_port`: `gmsl2-1`
2222

23-
Go to the [multi_camera.launch.py](../../launch/multi_camera.launch.py) file and change the `usb_port`.
23+
Go to the [multi_gmsl_camera.launch.py](./multi_gmsl_camera.launch.py) file and change the `usb_port`.
2424

2525
```bash
26-
ros2 launch orbbec_camera multi_camera.launch.py
26+
ros2 launch orbbec_camera multi_gmsl_camera.launch.py
2727
```
2828

29+
> Note: By default, multi_gmsl_camera.launch.py only starts color and left_ir. If you want to start other sensors, please go to [camera_secondary_params.yaml](../../config/camera_secondary_params.yaml) to modify them.
30+
2931
## Multi GMSL camera synced
3032

3133
First, please see how to use [multi_camera_synced](../multi_camera_synced/README.MD).
@@ -35,7 +37,6 @@ In addition, GMSL multi-camera synced does not require Multi-Camera Sync Hub Pro
3537
### Additional Parameter Settings
3638

3739
* `gmsl_trigger_fps` : set hardware soc trigger source frame rate.
38-
3940
* `enable_gmsl_trigger` : enable hardware soc trigger.
4041

4142
### Run the launch
@@ -45,3 +46,5 @@ Please refer to the configuration in [multi_gmsl_camera_synced.launch.py.](multi
4546
```bash
4647
ros2 launch orbbec_camera multi_gmsl_camera_synced.launch.py
4748
```
49+
50+
> Note: By default, multi_gmsl_camera_synced.launch.py only starts color and left_ir. If you want to start other sensors, please go to [camera_secondary_params.yaml](../../config/camera_secondary_params.yaml) and [camera_params.yaml](../../config/camera_params.yaml) to modify them.

0 commit comments

Comments
 (0)