Welcome to RDK Official Binocular Camera repository
Using the GS130W Stereo Camera
Using the GS130W Stereo Camera on RDK S600
The GS130W stereo camera module is used on RDK S600 through the RDK Stereo Camera SDK. The SDK command-line tool dsc is installed together with the core layer and is used to capture stereo images and verify the data path.
1. Environment Preparation
The sensor supported by this tutorial: GS130W
Install the SDK core layer
git clone https://github.com/D-Robotics/RDK-Stereo-Camera-SDK.gitcd RDK-Stereo-Camera-SDK/coremake RDKS600sudo dpkg -i out/dstereo-cam_*+RDKS600_*.debConnect the GS130W module to the two MIPI camera interfaces of RDK S600 with two 22-pin cables. Operate with the power off:
Module side: the gold fingers face away from the module PCB (the contacts point away from the PCB); insert horizontally and press down the locking latch
Board side: the gold fingers face the board PCB; insert horizontally and press down the locking latch

2. Running Method
Command-line tool
xxxxxxxxxxdsc help # List available commandsdsc version # SDK version and build platformdsc detect eeprom -b 4 5 # Scan the I2C buses and addressesdsc shell -d GS130W # Enter interactive debuggingAfter entering interactive mode with dsc shell, run captures stereo images in real time and prints the status at 50 Hz, Ctrl-C stops it, and exit quits.
C
x
dsc_config_t config = DSC_CONFIG( "GS130W", DSC_CAMERA_MODE_RECT, 1280, 1088, 30, 200);
dsc_device_t *device = dsc_create();if (dsc_init(device, &config) != DSC_OK || dsc_start(device) != DSC_OK) { dsc_stop(device); dsc_deinit(device); dsc_destroy(device); return 1;}xxxxxxxxxxsunrise@ubuntu:~$ gcc demo.c -ldstereocam -o demoPython
xxxxxxxxxximport dstereo_cam
config = dstereo_cam.preset( "GS130W", dstereo_cam.CameraMode.RECT, 1280, 1088, 30, 200)with dstereo_cam.Device(config) as device: device.start() while device.available_camera() == 0: pass left = device.read_image()["left"]xxxxxxxxxxsunrise@ubuntu:~$ python3 demo.pyROS 2
xxxxxxxxxxsource /opt/ros/jazzy/setup.bashros2 launch dstereo_cam dstereo_cam.launch.py # Images, calibration, and TFros2 launch dstereo_cam dstereo_cam_websocket.launch.py # Same as above, previewable in a browserros2 launch dstereo_cam dstereo_cam_stereonet.launch.py # View stereo depth on the same pagePrecautions
Camera plugging and unplugging precautions
It is strictly forbidden to plug or unplug the camera while the board is powered on; otherwise the camera module can be easily burned out.
On the GS130W module side, the cable is inserted with the contacts facing away from the module PCB, which is the opposite direction of other common MIPI modules (contacts facing the PCB). Be sure to confirm this when wiring; if connected in the wrong direction, the device cannot be recognized.
The calibration data is stored in the EEPROM on the module board and is read automatically by the SDK, so no manual calibration is required; in
rectmode, distortion removal and epipolar rectification are done by the GDC hardware.In
rawmode the output width and height must be 1280 × 1088; common resolutions inrect/resizemode are 1280×1088, 640×544, and 320×272.