T265 adding an auxiliary Serial & Power port for embedded systems.
Allow me to make a System Modification Request here, for adding an auxiliary Serial & Power port for embedded systems.
This port would offer a direct connection for smaller systems to read the signal on a serial interface without having to load any specific driver. This port would also be used for power using a 5 Volts regulated supply.
Here is what could be the auxiliary pinout:
- Vcc
- TX
- RX
- GND
We would use the existing USB connected to a computer in order to set the speed and data stream. As for example, in ArduPilot we are using this message to for the vision systems:
https://mavlink.io/en/messages/common.html#VISION_POSITION_ESTIMATE
Field Name | Type | Units | Description
usec | uint64_t | us |
x | float | m | Global X position
y | float | m | Global Y position
z | float | m | Global Z position
roll | float | rad | Roll angle
pitch | float | rad | Pitch angle
yaw | float | rad | Yaw angle
covariance **
reset_counter**
This way we could feed directly the Flight Controller (or any other embedded control system) and use the T265 without having to read and retransmit the signal using an onboard "Companion Computer'' that adds weight and complexity.
Here is a picture of my development vehicle using the Nvidia NANO as the "Companion Computer", and I show (orange line) how the system could be simplified using the auxiliary port to feed signal directly to Flight Computer , the cube.

Thank you very much for your detailed feature request and sharing your project! I should make clear that I am not an Intel employee, so the reply below is not representative of an official response, just a personal one. I'm sure that the Intel personnel on this forum will be happy to contribute their own feedback.
Existing models in the RealSense range do not tend to receive significant hardware changes. The most recent exception would be the adding of an IMU component to the D435 depth camera to create an additional enhanced model in the range called the D435i.
Whilst it is not impossible for the T265 to receive such an update in the future (something like a 'T265s'), it would depend on (a) whether Intel decide to release another T265 model, and (b) whether a compelling need for a feature such as a serial port is perceived to be something that would be widely used.
Thanks again for your suggestion - it's very welcome!
Agree completely with @patrickpoirier51
The current "consumer friendly" format of the RealSense cameras is great for bench use, and limited use on autonomous devices where the cables and connectors, although correct from an engineering point of view, make it hard to integrate with systems that down't have those bulky USB plugs.
I do hope that the industrial version is more versatile.
edit: as an alternative, would be great to get some guidance in "hacking" the consumer version of the RealSense cameras ;)
@lvale this is why I would prefer a second port - AUX- so it can be connected with less bulky type of connector like a Jst-Gh , that offers a lock mechanism and that is standard within the PX4 & ArduPilot community and most of the academic hardware.
@lvale, we offer modules, with connectors that may be more appropriate for embedded systems, for our depth cameras and we are interested in feedback/interest in our offering similar higher volume modules for the T265.
@patrickpoirier51, for your application it seem that a 90deg connector with locking screws would be more appropriate than the cable we ship (not that we haven't tested or endorse this particular cable).
It looks like you are using the PIXHAWK 2 CUBE? It has a micro USB, so it seems you can do exactly what you want and connect the T265 directly to it. The firmware is open source and it looks like you can compile it yourself. I was thinking of making a minimal example of using T265 (pose only) on top of libusb (i.e. without all of librealsense) just to help bootstrap this kind of application.
Besides VISION_POSITION_ESTIMATE, are you using VISION_SPEED_ESTIMATE? I was hoping our pose velocity estimate would be useful in your use case. Is outputting HIL_STATE_QUATERNION or CONTROL_SYSTEM_STATE supported? They use quaternions instead of roll/pitch/yaw and includes rotational and linear velocity.
@radfordi Thanks for your guidance. We are running ArduPilot http://ardupilot.org/dev/index.html on the CUBE.
The USB port is could be used but I would require some work as there is not Host side implementation of the OTG at the moment. A method for supply power to T265 is necessary, so we could build a Power Injector cable assembly. Please note that all the above are not necessary with an auxiliary port on the T265.
Nonetheless, your idea of making a minimal example of using T265 on top of libusb (i.e. without all of librealsense) seems quite appealing as we could reduce the footprint (and associated weight) by using a much more compact Companion Computer like the RPI Zero.
Please let us know when your example is available so we can test and and ultimately provide the community with an image than can be flashed on a SD.
Here is an example of a RPI-Zero and a T265 , just need the USB-Injector to make a ready to fly VIO system ;-)


@radfordi Jim, just an update here, I finally decided to start the RPI Zero code building marathon and after 3 days, it is running ..... but with some limitations.
From our python script we can only get 10 Hz pose and the confidence level is at medium (cannot go higher even if we move camera as with other tested systems), making this configuration quite marginal for a UAV, it would probably work ok on a ROVER.
We are using this script: https://github.com/hoangthien94/vision_to_mavros/blob/master/scripts/t265_to_mavlink.py
Here are the pictures of the setup , there is a 5Volt 3Amps UBEC under the pi for supllying both the Pi and the T265:

It is installed in a 330mm size vehicle with PixRacer Flight Controler , running ArduPilot 3.7

Here are some notes: https://discuss.ardupilot.org/t/integration-of-ardupilot-and-vio-tracking-camera-part-1-getting-started-with-the-intel-realsense-t265-on-rasberry-pi-3b/43162
Increase swap size by editing variable CONF_SWAPSIZE=2048 sudo nano /etc/dphys-swapfile
Install dependencies sudo apt install git libssl-dev libusb-1.0-0-dev pkg-config -y sudo apt install cmake python3-dev raspberrypi-kernel-headers -y git clone https://github.com/IntelRealSense/librealsense.git
Set vfp https://github.com/IntelRealSense/librealsense/issues/3490 the compiler flag -mfpu=neon will not work for the pi zero as it uses a ARMv6 processor instead of the ARMv7 processor in the pi 3. You have to rebuild with the flag set to -mfpu=vfp in file CMake/unix_config.cmake
Set atomic https://github.com/IntelRealSense/librealsense/issues/4375
cmake -D CMAKE_BUILD_TYPE="Release"
-D FORCE_LIBUVC=ON
-D BUILD_PYTHON_BINDINGS=ON
-D BUILD_EXAMPLES=ON
-D BUILD_GRAPHICAL_EXAMPLES=OFF ..
sudo make install sudo ldconfig sudo reboot
Test pip3 install transformations python3 t265_example.py
---Get T265 ready------ pip3 install dronekit pip3 install apscheduler sudo pip3 install pyserial
@patrickpoirier51 That's an awesome custom setup - thanks so much for sharing your work in such detail for other members of the community to benefit from! :)
From our python script we can only get 10 Hz pose and the confidence level is at medium (cannot go higher even if we move camera as with other tested systems),
@patrickpoirier51, I can see why you wouldn't get 200Hz, if say writing to vehicle is slow, but I can't see why you wouldn't get high confidence as this is entirely within the firmware. To investigate the former, would you add timing code to your main loop to see where and how much time is spent on each part?
@radfordi I think this script is asking a little too much for a single core. I experience too many timing issues including this: TrackingManager: Stopping Manager - Cleaned 13145 non complete callbacks (onVideoFrame, onPoseFrame, onGyroFrame, onAccelerometerFrame, onControllerframe) - latency is too high!
I am presently building on a BananaPi Zero with quad-core Cortex A7 Allwinner H2+ processor running UBUNTU. http://wiki.banana-pi.org/Banana_Pi_BPI-M2_ZERO
Will update
BananaPi Zero is working just fine

Though not related to the T265-specific theme of this discussion, I thought I would highlight a third party industrial version of the D435 from the company FRAMOS that I've come across that includes an M8 power connector.
https://github.com/IntelRealSense/librealsense/issues/4769
Very nice, @patrickpoirier51!
Though not related to the T265-specific theme of this discussion, I thought I would highlight a third party industrial version of the D435 from the company FRAMOS that I've come across that includes an M8 power connector.
#4769
Well, asking price ranges means it is out of the amateur/hobby user....
@lvale Yes, there is usually an old saying about luxury goods: "If you have to ask the price, you can't afford it". On the other hand, FRAMOS use a quote based system for every component on their store, even the ones we know the average retail price of such as the Intel models of RealSense camera, so it won't necessarily be a very large excess over and above the standard D435.
@radfordi Its flying :-) A 330 mm size is much ''friendlier'' for garage experiments than my original Q450. BananaPi makes a nice little companion computer, the complete sensor unit is around 150 Grams, including cables, Ubec & Mini USB HUb
https://www.youtube.com/watch?v=aQcRiFnSpGA
@patrickpoirier51 Congratulations, that's a beautiful vehicle! :)
@patrickpoirier51
That looks really cool! I know you are using the BananaPi now, but it seems that you had it working with the Raspberry Pi Zero before, I am wondering if you ever had an issue with the RP Zero not detecting that the T265 is connected? I am currently trying to get something working, but can't seem to find a solution to this issue. Was wondering if you had any suggestions?
@tropicdragon the detection issue has been documented, but I think they closed the thread without providing a solution for the moment.
Look at my hack to resolve the issue wit a hardware reset upon system loading:
https://github.com/IntelRealSense/librealsense/issues/4681#issuecomment-528360702
@patrickpoirier51
Good to know! Thank you! #4681 seems to more or less describe the issues I am having.
Also, do you happen to have the shell script mentioned in the fourth bullet point? And would you be willing to share that?