T265 pose data nan
- All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)
| Required Info | |
|---|---|
| Camera Model | { T265 } |
| Firmware Version | (Open RealSense Viewer --> Click info) |
| Operating System & Version | {Linux (Ubuntu 18.04) |
| Kernel Version (Linux Only) | (e.g. 4.14.13) |
| Platform | NVIDIA Jetson Nano |
| SDK Version | { legacy / 2.>.> } |
| Language | {C++ } |
| Segment | {Little Automible } |
Issue Description
I used realsense and intergrated apollo cyber https://github.com/mickeyouyou/realsenseOnCyber. librealsense SDK 2.21.0 version
rcently we meet this problem unstable pose data, 4 times 2 days. is fixed in new SDK like 2.24?

We are also experiencing this issue with the linear acceleration/angular velocity giving nan values. This is then breaking our broader SLAM solution which is using the T265 as a VIO sensor.
is any updates on this issue ?
@kylesaltmarsh and @mickeyouyou: Can you describe the most common scenario(s) (i.e. what sequence of motions, what kind of environment, any motion happening in scene, etc.) that cause the NaN values to occur? Also, the new 2.26.0 version of librealsense fixes some issues with recording T265 raw data, so we might consider the option of trying to have you make a recording of usage leading up to a failure like this, to help us debug.
We use apollo cyber RT as our framework there is a lite version here. https://github.com/mickeyouyou/apollo_lite
scene : we launch the realsense driver for cyber RT, data is normal, but there will be problem while run some minunes.
@harville replying for @kylesaltmarsh: in our case, in the ~10 times we've had the pose estimate turn into nans, the T265 has been in a feature-rich scene and not moving. An odd situation for the filter to diverge! A couple of times the same sensor has diverged while in motion (we've observed the pose estimate drifting rapidly away to infinity). We'll aim to test 2.26.0 with a few different sensors.
I have T265 attached to a marathon runner to correct the positional data from GPS. After running on the track for 2 -3 minutes, T265 starts giving us nan. it that because of limitation of VSLAM? Do I need to avoid rapid movement?
Hi, I'm also experiencing the issue with: FW version: 0.1.0.279 SDK Version: v2.27.0 if switch the option RS2_OPTION_ENABLE_MAPPING off, the pose data turn to be nan in a few minutes; but if this option is on, the issue seldom appear. any suggestions?
@mickeyouyou, @mattcenoo, @djkayip, @rgreid
Hi Can you also add still images of the environment or scene that the T265 is seeing when you're hitting this nan issue? It's a bit tough to get actual recordings from when you're hitting the nan issue.
There is an outline in this thread that says the device is on a runner, how about some of the other scenarios? @rgreid - You mention that device just sitting there, was there any motion ahead having the device just sit there? You also mention while in motion, what specific motion or movement was done?
Thanks
This is the result when the device is on a runner in any circumstance. probably, after 3 - 4minutes, it starts to get Nan. Y axis value plummeted, and Nan appears.
I just wonder whether VSLAM couldn't manage it of not.
Hello,
I am also experiencing this issue while using T265 as Vision positioning system on my drone. The camera is pointing down, with the USB cable to the back, sometimes when I leave the drone on the table, I start to receive these NaN values. While flying inside the lab, the issue never happened, the floor is made of different colors tiles, so there is a lot of features. My test procedure is to make a square-shape waypoint mission that repeats itself, and check if the drone is able to maintain the previous positions. In the lab the results were great, it keeps a pretty consistent square shape and it returns to the correct position on landing.
Yesterday I went for the first outdoor trial and the drone crashed. Unfortunately, I didn't save the data of the flight, but I'll try to explain the procedure. I tried first the same square-shape waypoint mission. But the drone started to lose altitude when it reached a less-feature ground area. The behavior repeated itself after 2 or 3 trials. And every time, when I looked at the PC, the NaN values were there, crashing my ROS nodes.
So I decided to fly it on Position Hold and check the behavior manually. https://drive.google.com/file/d/0B-NC33645NBsQ3daOVRXNnJGbjRKdEtIYUVOY2trQmF2WlBV/view?usp=sharing
In the video you can see that while the drone is kept on a more featured area (the center with red+green and basketball lines) the position is pretty fixed. And when I move to a less-feature area, the drone loses altitude again. I tried coming back to the center to regain control, and at first everything looked fine, but after a few seconds I completed lost control of it and it crashed when I tried to avoid it from hitting the cage around the area, switching to manual mode.
After the crash, I looked at the PC and it was all red texts with NaN values. I should have saved the logs, but I was too worried with the drone itself, tbh. But I'd like to offer my setup for tests to try to solve this issue.
I'm using a NUC, Intel T265 and Intel D435i. My launching procedure on ROS is: Cameras -> Mavros -> node that makes them communicate (Vision-to-mavros). It always worked fine on the lab, the positioning and mapping (with RTabmap and octomap).
Please, let me know how can I help more on this issue.
[ INFO] [1570687929.773274521]: RealSense ROS v2.2.5 [ INFO] [1570687929.773314368]: Running with LibRealSense v2.24.0
[ INFO] [1570687938.837467059]: Device Name: Intel RealSense T265 [ INFO] [1570687938.837495249]: Device Serial No: 908412111251 [ INFO] [1570687938.837518696]: Device FW version: 0.0.18.5715
Thanks @PedroHRPBS for the video and the information. Really appreciate it. We will review it and if we have any further questions we will let you know.
I also can confirm to receive Nan, mostly out of the blue, after different times, standing still on the table.
Hi! I have this issue opened for the realsense ROS wrapper as well : https://github.com/IntelRealSense/realsense-ros/issues/955
@manomitbal Thanks for cross linking the issues. This is really an annoying problem, since it comes out of the blue, even if the scene is feature-rich. Maybe it is because the device is not moving? Anyway, right now I have no idea how to cope with this. Restarting the script does not help. Unplug/replug USB helps. Nice for robots, which can do that with their left arms, of course :))
Disregard, wrong thread :)
Hi @PedroHRPBS @manomitbal @mickeyouyou, @mattcenoo, @djkayip, @rgreid
An updated LibRealSense release has been posted: https://github.com/IntelRealSense/librealsense/releases/tag/v2.30.0
There are updates which can have a positive affect on the NaN issues that you are seeing.
Please give this new release a test in your environments and let us know what you are seeing.
Thanks
@RealSenseCustomerSupport sorry: it seems much worse today. Mounted on a skid-steer robot in a visually feature rich environment, both with and without odom input.
The nans occur consistently a short time after we finish driving around a small ~15 meter loop.
Previously we were getting nans several times a day, now we're getting them reliably every time we drive a test loop. Thanks.
Device Name: Intel RealSense T265 Device FW version: 0.2.0.857
I could reproduce the nans by moving my robot against a white wall (docked position). The problem is that the camera cannot recover from this nans state and I have to relaunch the driver.
@rgreid Thanks for this feedback. In our testing, the updates in release 2.30.0 completely fixed some scenarios, but did not solve others. We did not observe it making any scenario worse, but we cannot try every possibility. It sounds like you have a scenario that reliably reproduces the problem, which is very not good for you, but could be helpful for our debugging and understanding. Can you please give some more detail about exactly what the scenario is? For example:
- How long does the device take to go around the 15m loop, and does it sit static for a while (how long?) before nan poses occur?
- How much vibration do you think the device is undergoing? And/or, any quick accelerations that could cause it to briefly shake in a strong way?
@BriceRenaudeau Also, note that tracker restart, after NaN poses are encountered, can be accomplished without unplugging/re-plugging the USB connection, by calling pipe.stop() followed by pipe.start(). We do not consider this a proper fix for the NaN issue discussed here, because this will start a new tracking session, which is not desirable in most application contexts. But it's better than having to physically unplug and replug the device.
Thanks @harville, I am using the camera trough ROS, I am not unplugging the camera, I just kill and restart the ROS node.