Announcing RealSense-Rust

A new way to play with Intel's most popular sensor line.

Apr 13, 2021

Jeremy Steward
Senior Perception Engineer
Brandon Minor
CEO + Co-founder

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 arge 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.

Subscribe to our newsletter and keep up with the latest

Note: Tangram Robotics needs the contact information you provide to us to contact you about our products and services. You may unsubscribe from these communications at any time.

Subscribe to our newsletter and keep up with the latest

Note: Tangram Robotics needs the contact information you provide to us to contact you about our products and services. You may unsubscribe from these communications at any time.

Subscribe to our newsletter and keep up with the latest

Note: Tangram Robotics needs the contact information you provide to us to contact you about our products and services. You may unsubscribe from these communications at any time.