TideSense Open Platform for Stereo Vision and IMU Algorithms
TideSense is a stereo visual-inertial device based on the SG2002. Its core hardware consists of two global shutter cameras, a six-axis IMU and an onboard processor capable of running Linux.
It already runs visual-inertial odometry and provides tools for stereo depth, recording and calibration. The key to TideSense is its open-source approach: developers can access raw stereo images and IMU data, inspect and modify capture, synchronization, calibration and algorithm implementations, then deploy their own programs on the device.
If an algorithm's sensor inputs come from stereo cameras and an IMU, TideSense can serve as a platform for developing, porting and validating it. Feature tracking, stereo matching, visual-inertial fusion, loop closure and mapping are all open to development. Whether a particular algorithm can run in real time onboard at the desired resolution and rate depends on its computational cost, memory requirements and data throughput, and calls for appropriate design and optimization.

Open Source Makes the Pipeline Editable from Input to Output
Visual-inertial development requires more than the final position and orientation. Developers also need to know what the input images contain, how timestamps are generated, how the IMU is calibrated and how the estimator processes those measurements.
TideSense publishes its hardware design and provides a board SDK, sensor drivers, a capture library, calibration and recording tools, and onboard algorithm integration code. The main repository documents source acquisition, dependencies and build entry points. The hardware design is also available.
This allows development at several levels:
- Use raw observations. Read left and right images, angular velocity, acceleration and timestamps, and process them in your own program.
- Replace algorithm modules. Change feature extraction, optical flow, outlier rejection, triangulation or state estimation, or integrate an entirely different algorithm.
- Modify the system implementation. Change drivers, capture methods, thread scheduling, buffering and communication, treating accuracy, latency and resource use as parts of the same design problem.
For example, a new feature tracker can first be compared with existing methods on the same recorded sequence, then substituted into the onboard frontend and timed. If state estimation is the research focus, image capture and tracking can remain in place while development concentrates on the filter or optimization backend.
What Stereo Cameras and an IMU Observe
The current TideSense hardware uses two OV9281 global shutter cameras with a design baseline of 50 mm and an SC7U22 six-axis IMU. Linux and onboard VIO run on the SG2002's Arm Cortex-A53.
| Hardware or data | Available observations | Value for algorithm development |
|---|---|---|
| Left and right grayscale images | The same scene viewed from two positions | Stereo matching, triangulation, feature tracking and visual motion estimation |
| Global shutter | All rows in a frame share the same exposure interval | Avoids motion-induced geometric distortion from sequential row exposure; exposure still needs to be controlled to reduce motion blur |
| Calibrated stereo geometry | Relative position and orientation between the cameras | Metric scale and geometric constraints for stereo reconstruction |
| Three-axis gyroscope and accelerometer | Angular velocity and specific force | Attitude propagation and motion prediction, combined with vision to estimate velocity, pose and biases |
| Onboard Linux processor | Local computation, storage and communication | Cross-compilation and application deployment, dataset management and output interfaces |
For an ideal rectified stereo model, a basic geometric relationship is:
Here,
Between visual updates, the IMU provides motion observations at a higher rate. The gyroscope helps predict rotation, while the accelerometer contributes to velocity and position propagation. Visual constraints correct drift and help estimate IMU biases. These complementary observations make stereo vision and inertial sensing a useful combination for motion estimation.
Synchronization and Timestamp Semantics Can Be Traced to the Code
Visual-inertial fusion requires the two data sources to correspond in time. During a fast rotation, even individually correct image and IMU measurements can produce inconsistent estimates if they are misaligned in time. An estimator may attribute the mismatch to extrinsic calibration or the motion model.
In the usual VIO configuration, the SC7U22 runs at 200 Hz. Every ten IMU data-ready interrupts, the kernel triggers the cameras' shared FSIN signal, producing nominally synchronized stereo images at 20 Hz. IMU timestamps are recorded at interrupt entry. The capture interfaces preserve image and IMU timing information for continuity checks and spatial-temporal calibration.
It is necessary to distinguish exposure time, image arrival time and algorithm output time. The image timestamps currently supplied by tide_cam describe VI arrival in the device's CLOCK_MONOTONIC clock domain. They are not exposure-center timestamps.
Because the implementation is open, developers can inspect the code to establish those semantics. When integrating their own estimator, they can apply the calibrated camera–IMU time offset and check sample coverage and frame loss accordingly. Interface definitions are available in tide_cam.
Algorithms Developers Can Implement
Stereo images and IMU measurements provide general-purpose visual and inertial observations. Developers can use a subset of them or combine them.
| Algorithm area | Possible development work | Reusable starting points in TideSense |
|---|---|---|
| Image features and motion tracking | Feature detectors, descriptors, optical flow, gyro-assisted tracking and motion outlier rejection | Stereo capture, IMU input and existing VIO frontends |
| Stereo depth and 3D reconstruction | Rectification, stereo matching, cost aggregation, subpixel estimation, confidence measures and point clouds | CPU StereoBM depth application and TPU matching code |
| Visual odometry and VIO | Stereo visual odometry, filter- or optimization-based visual-inertial fusion, initialization and bias estimation | SchurVINS and OpenVINS integrations, live and offline inputs |
| SLAM and relocalization | Keyframe management, loop closure, pose graph optimization and map reuse built on odometry | Images, inertial observations and existing pose estimates |
| Local environment perception | Local point clouds, ground or obstacle geometry and local maps using depth and motion estimates | Depth images, camera parameters and pose output |
| Visual recognition and fusion | Object detection or tracking in grayscale images, combined with depth and attitude for spatial interpretation | Image input, an editable processing pipeline and onboard computation |
These are development directions with different levels of existing implementation. The project already provides SchurVINS and OpenVINS entry points and stereo depth applications. Developers can add loop closure, complete map management or recognition of specific objects. The modules do not all need to run together; each application can select what it needs.
Existing Implementations Show How Algorithms Can Be Replaced
From SchurVINS to OpenVINS
TideSense has an onboard SchurVINS implementation as well as live and offline OpenVINS entry points. This is a concrete example of the same sensor hardware feeding different estimators.
Integrating another algorithm requires converting camera models, image ordering, IMU units, coordinate transforms and time offsets into its expected conventions. The inverted mounting of the right camera must also agree with image preprocessing and extrinsic definitions.
SchurVINS also illustrates the distinction between visual updates and inertial prediction. A typical configuration performs visual corrections at about 20 Hz and can output predicted poses at the 200 Hz IMU sampling rate. Control and navigation interfaces should account for output timing, estimation latency and tracking status. See the SchurVINS and OpenVINS implementations.
From CPU Stereo Matching to TPU Computation
The standalone depth application uses OpenCV StereoBM. The project also provides experiments with integer SAD matching on the TPU and a combined VIO and TPU depth mode that shares input images. Developers can therefore reorganize computation, keeping geometric rectification and quality filtering on the CPU while moving suitable matching operations to the accelerator.
This TPU matching uses conventional pixel differences and window-based matching costs. Hardware acceleration can be developed one operator at a time, with checks for numerical consistency, throughput and end-to-end latency.
The standalone depth mode, experimental programs and combined mode each have their own parameters and constraints. The combined mode targets pose and depth processing within each camera cycle; its actual rate still depends on the scene, computation budget and communication load. See stereo depth and the combined VIO and depth mode.
Integrating Your Own Algorithm
Development can begin with offline validation and progress toward onboard real-time operation.
First, capture stereo images and IMU measurements with the independent recorder. It does not require VIO to run, preserves images in their original orientation with timestamps, and supports lossless compression. Data can be exported as EuRoC-style directories or ROS 1 bags for algorithm comparisons on a computer. Sustained recording at high resolution also requires checks on SD card throughput and data integrity.
Next, calibrate the individual device. In addition to stereo intrinsics, distortion and camera-to-camera extrinsics, visual-inertial fusion needs camera–IMU extrinsics, time offsets and suitable IMU parameters. After refocusing, cropping, scaling or rotating images, check that the geometric model still matches the input. TideConfigurator provides preview, recording, calibration and VIO management to help establish this data foundation.
Then run the new algorithm on the same dataset on a computer, checking initialization, trajectories, failure states and computation time. Without external ground truth, reprojection residuals, data continuity and repeatability can still be examined. Comparing positioning accuracy requires a reference trajectory or another independent measurement.
Finally, cross-compile the algorithm for the A53 and connect live input. Camera integration can start with tide_cam: tide_cam_open() opens capture, tide_cam_acquire() obtains a frame set, and tide_cam_release() returns it when processing is complete. The interface supplies camera identifiers, dimensions, stride, sequence numbers and timestamps. For IMU input, use the existing IIO reader as a reference; the camera library itself is not a complete camera-and-IMU estimator interface.
Algorithms that use images asynchronously must manage frame lifetimes correctly. If processing falls behind, the application must decide whether to select the latest frame to control latency or preserve ordering for a complete record. Recording, motion estimation and preview transmission also have different queueing and backpressure requirements.
Outputs can be defined by the developer too. Existing SchurVINS supports ROS 2 communication and local trajectory recording, and can run independently with communication disabled. A custom program can output poses, depth, point clouds or maps, with explicit coordinate frames, units, timestamps and validity status.
What to Measure Once the Algorithm Runs
Successful compilation and execution are the starting point for onboard development. Closed-loop control and real-time perception also require measurements of the complete path from image capture to usable results.
Resolution, feature count, disparity search range and optimization window size all affect the computation budget. Image transmission, SD card writes and message publication consume resources too. The project's perf and per-stage timing tools help identify hotspots before choosing SIMD, accelerated operators, fewer data copies or scheduling changes.
Result quality is equally important. Reducing feature count or window size may improve speed but change tracking and estimation behavior. Adding threads may not reduce latency if they mostly compete for the same CPU. For each optimization, record processing rate, end-to-end latency, skipped frames or backlog, and the corresponding positioning or depth quality.
For algorithms beyond the onboard budget, validate them on recorded data on a computer first. Then decide whether to reduce the workload, deploy only selected modules onboard, or use an external computer for heavier processing. Open data access and source code allow developers to organize each of these approaches themselves.
TideSense provides editable stereo and inertial input paths, an onboard runtime and existing algorithm implementations. Developers can use the available functions or start at any layer: investigate a new matching method, replace an estimator, add loop closure and mapping, or rebuild the pipeline. Stereo cameras and the IMU determine what can be observed, computation resources set the real-time budget, and open source lets developers choose the algorithms.
Source Code and Development Resources
- TideSense main repository: board SDK, driver integrations, builds and algorithm tools.
- tide_cam capture library: image interfaces, timestamp semantics and frame lifetimes.
- Dataset recording and export: raw observations, formats and integrity checks.
- TideSense online development documentation: getting started, stereo and IMU calibration, and the development environment.
- Hardware design: published under CC BY-NC-SA 4.0; software and dependencies follow their respective licenses.