Install for ROS1 Realsense:
https://github.com/IntelRealSense/realsense-ros/tree/ros1-legacy?tab=readme-ov-file
sudo apt-get install ros-$ROS_DISTRO-realsense2-camera
Install for ROS2 Realsense:
https://github.com/IntelRealSense/realsense-ros
Install:
sudo apt-get install ros-kinetic-rgbd-launch
Launch:
roslaunch realsense2_camera rs_rgbd.launch