RealSense-Rust: Open Source Made Better by Tangram Vision

Tangram Vision announces realsense-rust; a new way to play with Intel's most popular sensor line. Learn more about this open-source crate for Intel RealSense cameras and the design choices that went into it.

JS

JS

JS

Written by

Written by

Jeremy Steward

Jeremy Steward

Jeremy Steward

Staff Perception Architect, Tangram Vision

Staff Perception Architect, Tangram Vision

Staff Perception Architect, Tangram Vision

BAM

BAM

BAM

Written by

Written by

Brandon Minor

Brandon Minor

Brandon Minor

CEO + Founder, Tangram Vision

CEO + Founder, Tangram Vision

CEO + Founder, Tangram Vision

Published

Last updated

Read time

3 min

3 min

3 min

  • Rust
  • RealSense
  • Depth Sensing
  • Open Source
  • Sensor Streaming
Allan Deviation of total IMU noise on log-log axes, showing white noise, random walk, and bias instability components and their sum

series

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

Tangram Vision is committed to contributing to the Rust ecosystem for perception, sensors, and robotics. To that end, we are presenting...

‍Realsense-Rust: Interface with Intel RealSense devices from the comfort and safety of Rust

We recognize that there aren't many existing Rust resources for using off-the-shelf sensors in an easy and reliable way. This is an issue; reliable and easy perception is the cornerstone of our business! So Tangram is fixing that, one sensor at a time.

RealSense was the obvious first choice for us. The sensor line is near-ubiquitous, but many we've talked to have experienced software issues. Reasons for this are varied, from difficulties with memory or hardware management in C or C++, to just grasping the sheer variety of sensors and options that the library supports. Moreover, the ubiquity of the platform contributes in its own right: there are a lot of users in general, so any fraction of users with problems seems like a large number of users.  Regardless, we've taken a shot at making the RealSense SDK memory-safe and ready to roll in any Rust context:

  • Provide concrete types rather than "extensible" pointers

  • Preferring the use of native Rust containers or types over librealsense2 containers written in C

  • Rust-like error handling throughout the API

  • Make lifetimes obvious for all data through the system

  • Make invalid states impossible (to the best of our ability)

...among other small Rust improvements. Check out the crate's architecture doc to learn more about the design philosophy we employed to put this together.

We would be remiss if we didn't mention that this crate did exist before we inherited it. Thanks to Jerry Lin and other contributors, we started with a strong base of work from the community. Standing with that community, we will maintain this crate to the best of our abilities as an open-source repository. Let us know what you think on our GitLab page; testing welcome!

And if you feel like your RealSense could use a tune-up, download MetriCal today and get calibrating.

‍—

Edits:

June 2, 2025: Removed reference to the Tangram Vision SDK. Added link to MetriCal Installation page.

JS

About the author

Jeremy Steward

Staff Perception Architect, Tangram Vision

Staff Perception Architect, Tangram Vision

Staff Perception Architect, Tangram Vision

Jeremy Steward holds an M.Sc in Geomatics Engineering from the University of Calgary, and has worked extensively on the topics of multi-sensor calibration and registration in photogrammetric and terrestrial surveying applications.

BAM

About the author

Brandon Minor

CEO + Founder, Tangram Vision

CEO + Founder, Tangram Vision

CEO + Founder, Tangram Vision

Brandon Minor is the CEO of Tangram Vision. He has a Masters in Computer Science from CU Boulder. He's been working on and around calibration science and software since 2015.

Planetary rover in front of Mars, the kind of robot Tangram Vision can calibrate

Stop doubting your calibration. Try MetriCal today.

Start with 15 free credits, no payment info required, and turn your sensor data into calibrations you can trust.

Tangram Vision Newsletter

Subscribe to our newsletter and keep up with latest calibration insights and Tangram Vision news.

Tangram Vision Newsletter

Subscribe to our newsletter and keep up with latest calibration insights and Tangram Vision news.

Tangram Vision Newsletter

Subscribe to our newsletter and keep up with latest calibration insights and Tangram Vision news.