TLDR: We are noticing that the orientation (roll, pitch, yaw) becomes “stuck” for “large” amounts of time (0.5+ seconds at times) as the camera nears a straight-down pitch / looking straight down. It appears that this is due to the “6 DoF visual-inertial stereo SLAM” algorithm used to compute orientation (with sensor fusion) being unable to accurately calculate the orientation at said angle. Without using the visual odometry algorithm (ie no depth), the orientation is correct (noticeable error < ~1 degrees). It would be great to be able to configure the ZED camera to only use the senors to calculate its pose. This would be especially helpful when operating the camera in visually sparse areas (ie: at high altitude, over fields, water, etc).
More info:
To elaborate, we fly the ZED 2i Camera on a drone attached to a servo allowing it to pivot freely in the pitch axis. As the camera points down (tracking a target), the pitch of the camera stays at a specific angle for up to a second before correcting itself. This is most notably happening for the pitch but has been noticed in the roll (“freezes” at the same time). Since we don’t yaw very often while this occurs, I have not been able to check if yaw observes the same behavior.
We launch the code/camera using ZED-GStreamer in a custom CPP ROS-Melodic Node with the following parameters:
- stream-type=4 #LEFT + DEPTH
- camera-resolution=1 #1080p
- camera-fps=30
- camera-image-flip=0 #NO FLIP
- enable-positional-tracking=1
- enable-pose-smoothing=1
- enable-area-memory=1
- enable-imu-fusion=1
- coordinate-system=0 #IMAGE
- depth-mode=1 #QUALITY
- sensing-mode=1 #FILL
- initial-world-transform-x/y/z = 0.0
- aec-agc=1 #custom region also set but not important
- aec-agc-roi-side=2
In order to prevent this behavior, we had to “disable” depth by setting the min/max distance to 0.3m and 1.0m (depth-minimum-distance=300.0, depth-maximum-distance=1000.0) from the default of [0.3, 20.0]m. After setting the depth range to [0.3, 1.0]m, there were no longer “freezes”/errors in the pitch. We were still able to verify this behavior occurs by holding the camera within 1m of the ground (grass field) and observing the same error (pitch got “stuck” at 60 degrees, then updated to 75 degrees, then jumped to 90 degrees while rotating the camera smoothly), but then when holding it about 2m up, there was no longer any error.
If you would like any other details, I would be glad to provide.
Specifications:
- NVidia Jetson Xavier NX
- Jetpack 4.6.0
- ZED SDK 3.7.2
- Zed-GStreamer (master/latest)
- ZED 2i
- Ubuntu 18.04 LTS
- NVidia Deepstream 6.0
- ROS-Melodic