Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add the support of realsense t265 #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions svo_ros/launch/frontend/t265_stereo_frontend_imu.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<launch>
<!-- SVO -->
<node pkg="svo_ros" type="svo_node" name="svo" clear_params="true" output="screen">
<!-- Camera and IMU topics to subscribe to -->
<param name="cam0_topic" value="/camera/fisheye1/image_raw" type="str" />
<param name="cam1_topic" value="/camera/fisheye2/image_raw" type="str" />
<param name="imu_topic" value="/camera/imu" type="str" />
<param name="calib_file" value="$(find svo_ros)/param/calib/t265_stereo.yaml" type="str" />

<rosparam file="$(find svo_ros)/param/pinhole.yaml" />
<rosparam file="$(find svo_ros)/param/frontend_imu/t265_stereo_imu.yaml" />

</node>

<!-- RVIZ + SVO GUI -->
<node name="vis" pkg="rviz" type="rviz" args=" -d $(find svo_ros)/rviz_config.rviz" />
<node name="svo_gui" pkg="rqt_gui" type="rqt_gui" args="-s rqt_svo.svo.Svo --args --topic svo" />
</launch>
28 changes: 28 additions & 0 deletions svo_ros/launch/t265_vio_stereo.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!-- Launch File for running svo with ceres backend from bag-file -->
<launch>
<arg name="calib_file" default="$(find svo_ros)/param/calib/t265_stereo.yaml"/>

<!-- SVO node -->
<node pkg="svo_ros" type="svo_node" name="svo" clear_params="true" output="screen" args="--v=41">

<!-- Camera topic to subscribe to -->
<param name="cam0_topic" value="/camera/fisheye1/image_raw" type="str" />
<param name="cam1_topic" value="/camera/fisheye2/image_raw" type="str" />

<!-- Imu topic to subscribe to -->
<param name="imu_topic" value="/camera/imu" type="str" />

<!-- Camera calibration file -->
<param name="calib_file" value="$(arg calib_file)" />

<!--Parameters-->
<rosparam file="$(find svo_ros)/param/t265_custom.yaml" />
<param name='runlc' value='true' />
<param name="voc_path" value="$(find svo_online_loopclosing)/vocabularies/" type="str" />

</node>

<!-- RVIZ -->
<node name="vis" pkg="rviz" type="rviz" args=" -d $(find svo_ros)/rviz_config_vio.rviz" />

</launch>
74 changes: 74 additions & 0 deletions svo_ros/param/calib/t265_stereo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
label: "Euroc"
id: 412eab8e4058621f7036b5e765dfe812
cameras:
- camera:
label: cam0
id: 54812562fa109c40fe90b29a59dd7798
line-delay-nanoseconds: 0
image_height: 800
image_width: 848
type: pinhole
intrinsics:
cols: 1
rows: 4
data: [277.0445787929248, 277.14615490978844, 420.97809743706387, 392.82001689694226]
distortion:
type: equidistant
parameters:
cols: 1
rows: 4
data: [0.0012262003484254352, 0.041669505142064446, -0.042504671644806195, 0.008307891]
T_B_C:
cols: 4
rows: 4
data: [-0.9999765267937457, 0.00020386038077828823, 0.006848671583756485, 0.0029498226056356527,
-0.0001673252362911382, -0.9999857559513914, 0.005334781775259225, 0.003687514981641677,
0.006849661581589615, 0.00533351059523526, 0.999962317190477, -0.00923533813344655,
0.0, 0.0, 0.0, 1.0]
- camera:
label: cam1
id: 54812562fa109c40fe90b29a59dd7723
line-delay-nanoseconds: 0
image_height: 800
image_width: 848
type: pinhole

intrinsics:
cols: 1
rows: 4
data: [277.8972202765922, 277.897738713966, 421.13881158147956, 390.634827629262]
distortion:
type: equidistant
parameters:
cols: 1
rows: 4
data: [0.011720860001486453, 0.020472230492371325, -0.026529055095152156, 0.0044605227]
T_B_C:
cols: 4
rows: 4
data: [-0.9999802158592209, 0.006230654419457367, 0.0008641965351877218, -0.055741114618795086,
-0.006226692966309875, -0.9999704286877588, 0.004513318593175735, 0.003714080680358162,
0.0008922919082011314, 0.004507848214558144, 0.9999894415040718, -0.009767379716986362,
0.0, 0.0, 0.0, 1.0]

imu_params:
delay_imu_cam: 0.0086270629562066
max_imu_delta_t: 0.01
acc_max: 176.0
omega_max: 17
sigma_omega_c: 0.01
sigma_acc_c: 0.1
sigma_omega_bias_c: 0.03
sigma_acc_bias_c: 0.1
sigma_integration: 0.0
g: 9.8082
imu_rate: 200

imu_initialization:
velocity: [0.0, 0, 0.0]
omega_bias: [0.0, 0, 0.0]
acc_bias: [0.0, 0.0, 0.0]
velocity_sigma: 2.0
omega_bias_sigma: 0.01
acc_bias_sigma: 0.1

39 changes: 39 additions & 0 deletions svo_ros/param/frontend_imu/t265_stereo_imu.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
pipeline_is_stereo: True

grid_size: 35
use_async_reprojectors: True
use_imu: True
poseoptim_prior_lambda: 0.0
img_align_prior_lambda_rot: 0.5
img_align_prior_lambda_trans: 0.0

# If set to false, we process the next frame(s) only when the depth update is finished
use_threaded_depthfilter: False
# if the number of features are below this number, consider as failure
quality_min_fts: 40
# if the number of features reduce by this number for consecutive frames, consider as failure

max_depth_inv: 0.1
min_depth_inv: 10.0
mean_depth_inv: 0.5

map_scale: 5.0
kfselect_criterion: FORWARD
kfselect_numkfs_upper_thresh: 180
kfselect_numkfs_lower_thresh: 90
kfselect_min_dist_metric: 0.001
kfselect_min_angle: 6
kfselect_min_disparity: 40
kfselect_min_num_frames_between_kfs: 0

img_align_est_illumination_gain: true
img_align_est_illumination_offset: true
depth_filter_affine_est_offset: true
depth_filter_affine_est_gain: true
reprojector_affine_est_offset: true
reprojector_affine_est_gain: true


# Disable ceres backend
# use_ceres_backend: false
use_ceres_backend: true
Loading