> For the complete documentation index, see [llms.txt](https://wiki.ariitk.in/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.ariitk.in/wiki/computer-vision/intel-realsense-d435i-setup-for-ros-noetic.md).

# Intel RealSense D435i setup for ROS Noetic

### Setting up ROS Package of Intel RealSense <a href="#setting-up-ros-package-of-intel-realsense" id="setting-up-ros-package-of-intel-realsense"></a>

```bash
sudo apt-get install ros-$ROS_DISTRO-realsense2-camera
sudo apt-get install ros-$ROS_DISTRO-realsense2-description
```

#### Note <a href="#note" id="note"></a>

We use *noetic* ROS Distribution

### Make the Workspace for Intel RealSense ROS Package <a href="#make-the-workspace-for-intel-realsense-ros-package" id="make-the-workspace-for-intel-realsense-ros-package"></a>

```bash
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/src/
git clone https://github.com/IntelRealSense/realsense-ros.git
cd realsense-ros/
git checkout `git tag | sort -V | grep -P "^2.\d+\.\d+" | tail -1`
cd ..
```

### Building the Package <a href="#building-the-package" id="building-the-package"></a>

```bash
catkin_init_workspace
cd ..
catkin_make clean
catkin_make -DCATKIN_ENABLE_TESTING=False -DCMAKE_BUILD_TYPE=Release
catkin_make install
```

### Adding Source File to bashrc <a href="#adding-source-file-to-bashrc" id="adding-source-file-to-bashrc"></a>

```bash
echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
source ~/.bashrc
```

### Running the Camera <a href="#running-the-camera" id="running-the-camera"></a>

Launch the **rs\_camera.launch** launch file located in **realsense2\_camera** package

```bash
roslaunch realsense2_camera rs_camera.launch filters:=pointcloud
```

Launch *rviz* to Visualize the Camera Feed and Depth

```bash
rviz
```

In Fixed Frame, select *camera\_color\_optical\_frame*

<figure><img src="https://2216434675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LVITCb6SLM7LAIvJagI%2Fuploads%2Fbwm8xwcIyoiZBtj03PEc%2Fcamera_color_optical_frame.png?alt=media&amp;token=c8010658-782d-4195-ae7a-6fad479c3bf8" alt=""><figcaption></figcaption></figure>

Then Click *add*, goto *By topic*, expand */camera*, */color* and */image\_raw*, select *camera* with *raw* option and then click Ok.&#x20;

<figure><img src="https://2216434675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LVITCb6SLM7LAIvJagI%2Fuploads%2Fxq7f2i5mKHpVAMOKjZde%2Fcamera_feed.png?alt=media&amp;token=d678d3c2-ae05-4831-bc6d-f1a1c4557f03" alt=""><figcaption></figcaption></figure>

It would show the Camera Feed in the Bottom Left

<figure><img src="https://2216434675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LVITCb6SLM7LAIvJagI%2Fuploads%2FO03krg5APqIOpV6hYrI3%2Fcamera_feed_view.png?alt=media&amp;token=4561568f-3c2d-457a-8fb3-c0d9dac36c16" alt=""><figcaption></figcaption></figure>

Then Click *add*, goto *By topic*, expand */camera*, */depth*, */color* and */points*, select *PointCloud2* and then click Ok.

<figure><img src="https://2216434675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LVITCb6SLM7LAIvJagI%2Fuploads%2FpEV4ApOMM93vgnf7MDq6%2FPointCloud2.png?alt=media&amp;token=4ccce494-f212-4095-96c6-63265ee366a6" alt=""><figcaption></figcaption></figure>

It would show the Depth with color.

<figure><img src="https://2216434675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LVITCb6SLM7LAIvJagI%2Fuploads%2FhpFn43xusHnPb8Ov0v1s%2FPointCloud2_View.png?alt=media&amp;token=3f9af880-3dea-4c32-bb52-5589adfae24f" alt=""><figcaption></figcaption></figure>

Select *Points* in the *Style* Parameter to get a better Visualization

<figure><img src="https://2216434675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LVITCb6SLM7LAIvJagI%2Fuploads%2FXRjIDjczmv2TKNnNUhX0%2FPointCloud2_Style.png?alt=media&amp;token=64b39034-725b-41e6-9b96-5e0232e268d4" alt=""><figcaption></figcaption></figure>


---

# 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.ariitk.in/wiki/computer-vision/intel-realsense-d435i-setup-for-ros-noetic.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.
