Closed ryleymcc closed 2 years ago
I am facing same problem with Stereo and a TUM yaml file. All I can think of is convert T265.yaml (presently looks like a TUM format yaml) in EuRoC.yaml format and check. This is because all Stereo and Stereo-Inertial for EuRoC data sets are running fine for me. Stereo for TUM is not working AT ALL...Stereo-Inertial for TUM is working but not all cases.
Do we need rectification of Fisheye images? Because their instruction says that we may not need to rectify the images for fisheye lens
Can you point where it says that rectification not required. I guess we have to rectify...thats why it requires the yaml file.
What you have shared in the launch file is the TUM format where Camera.type: "KannalaBrandt8"
. Some how the TUM Stereo Examples are not working even for TUM bench mark data sets . So the way round is ...provide the t265 settings in EuRoC format (EuRoC.yaml in /Examples/Stereo
). And if you notice in the EuRoC.yaml format Camera.type: "PinHole"
for which images should be rectified. Hence yaml file is required for PinHole camera type or should be pre rectified if you set ONLINE_RECTIFICATION
as False
But for EuRoC.yaml has this Calibration and distortion parameters for only one camera and it says ("equal for both cameras after stereo rectification"). How to do this stereo rectification?
Also for pre-rectify were we need to give the rectification matrices, How to get the matrices P ? Is there any tool to obtain this directly. I used kalibr to get the Distortion coefficients and K matrices.
1.) I have not used Kalibr but is good.... Realsense itself provides these K and P matrices....or you can use opencv... I use the calibration application provided with Rtabmap (which in turn uses OpenCV at the backend)
2.) Stereo Rectification is the joint rectification of the pair of images to produce the camera parameters. Its there in OpenCV here
3.) I (long time back) used this to rectify individual T265 images and then feed it to the algorithm as two pin hole cams. Or you can use this from ROS
@sumitsarkar1 : I have calibrated the camera with rtabmap. But the calibration is done using "equidistant" model(I suppose this isnt KannalaBrandt8 model). But can you share me your yaml file that you have used for ORB SLAM 3. Especially if you have tried the "Stereo-Inertial" mode. My map gets resets in between mapping when there is a movement of camera. Have you faced this kind of issue
I have faced all the same issues which you have mentioned till now..I am able to only run Stereo_Inertial on EuRoC data set ...even simple Mono mode on benchmark data is not functional ...i.e. after initial struggle of map initialisation the track abruptly stops. These were not the case with ORB_SLAM2. With ORB_SLAM2 I wrote a ROS node with OpenCV to rectify the T265 single camera (treating the T265 as mono fisheye ) then feed it to ORB_SLAM2 node and it worked fine. I hope the owners come up with some solution. Till then I found an alternative here. It allows map saving too unlike ORB_SLAM. You can try .
Version v1.0 now includes a calibration tutorial and examples with camera T265
I am having a trouble getting my system calibrated. For simplicity I am leaving out the IMU for now and i am trying to run Stereo with Realsense t265.
After running rs-sensor-control I get the the extrinsic transformation matrix from right camera to left camera(fisheye2 to fisheye1):
And the intrinsics for fisheye1:
And the intrinsics for fisheye2:
I based the Camera.bf parameter off of the .065m distance between fisheye1 and fisheye2 multiplied by Camera2.fx: 286.1571960449219
This is my yaml file. Notice that I haven't changed the lapping parameters because I don't know where to get them.
I run the command
rosrun ORB_SLAM3 Stereo /path/to/vocab/ORBvoc.txt /path/to/settings/t265_new.yaml false
my terminal output looks like this:
I get no tracked points using this method. The other ways I've i get some points but the tracking is not usable.