Since the Realsense T265 has been officially removed from support, in order to avoid multiple version conflicts, this repository backtracks to the official libraries and ROS2 packages that can support the T265 model, and builds them from source code for local installation and operation.
The repository is compiled and tested in the following system environment, and other environments are modified according to the actual situation.
- Ubuntu 22.04:
cd [ros2_ws]/src
git clone http://192.168.20.16/SLAM-Group/RealsenseT265.gitcd [path_librealsense] && mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=../install ..
make & make installcd [ros2_ws]/src
sudo apt-get install python3-rosdep -y
sudo rosdep init # "sudo rosdep init --include-eol-distros" for Dashing
rosdep update
rosdep install -i --from-path src --rosdistro $ROS_DISTRO --skip-keys=librealsense2 -ycolcon build --symlink-install --packages-ignore librealsense2 --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -G NinjaROS_DISTRO=<YOUR_SYSTEM_ROS_DISTRO> # set your ROS_DISTRO: humble, galactic, foxy, eloquent, dashing
source /opt/ros/$ROS_DISTRO/setup.bash
cd [ros2_ws]
source install/local_setup.bashTo start the camera node:
ros2 run realsense2_camera realsense2_camera_node --ros-args -p enable_pose:=true -p device_type:=t265or, with a launch file:
ros2 launch realsense2_camera rs_launch.py
ros2 launch realsense2_camera rs_launch.py enable_pose:=true device_type:=t265ros2 launch realsense2_camera rs_t265_launch.py