# 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="/files/2eGgnfzB5EwWZry4LFjG" 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="/files/1vJzgEy4dskQEjtdUjzn" alt=""><figcaption></figcaption></figure>

It would show the Camera Feed in the Bottom Left

<figure><img src="/files/rUcBGVsGskMHhLlKddtz" 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="/files/yKZcziKJVuVTEK7Mcwpb" alt=""><figcaption></figcaption></figure>

It would show the Depth with color.

<figure><img src="/files/QbZzVqKtqAoSdY13S6NO" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/rbMl0fZy14ouC7J0xcXd" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://wiki.ariitk.in/wiki/computer-vision/intel-realsense-d435i-setup-for-ros-noetic.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
