> For the complete documentation index, see [llms.txt](https://wiki.hanzheteng.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.hanzheteng.com/equipment-and-devices/sensors/realsense-d435i.md).

# RealSense D435i

## Ubuntu Installation

* Install `librealsense2` according to [this official GitHub repository](https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md#installing-the-packages)&#x20;
  * make sure install `librealsense2-dev` as well because it will provide cmake support
  * do not use `ros-melodic-librealsense2` library
* Install `ddynamic_reconfigure` by `sudo apt install ros-melodic-ddynamic-reconfigure`
* git clone [`realsense-ros` package](https://github.com/UCR-Robotics/realsense-ros) to workspace and catkin\_make

#### Notes for Jetson devices

* For Jetson devices, there is no `librealsense2-dkms` package available; only need to install `librealsense2-utils` and `librealsense2-dev`. ([installation\_jetson](https://github.com/IntelRealSense/librealsense/blob/master/doc/installation_jetson.md))
* During building process, `cv_bridge` expects `/usr/include/opencv` but on Jetson systems it's under `/usr/include/opencv4/opencv2`. To resolve this, create a symbolic link to the directories `sudo ln -s /usr/include/opencv4/ /usr/include/opencv` .

## Collect rosbag

```bash
roslaunch realsense2_camera rs_camera.launch filters:=pointcloud
rosbag record \
    /tf \
    /tf_static \
    /camera/color/camera_info \
    /camera/color/image_raw \
    /camera/depth/camera_info \
    /camera/depth/image_rect_raw \
    /camera/extrinsics/depth_to_color \
    /camera/depth/color/points  # this topic enabled by filters:=pointcloud
# rosbag size: 4GB/min
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://wiki.hanzheteng.com/equipment-and-devices/sensors/realsense-d435i.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
