-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3f44f26
commit 6eaf015
Showing
8 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
computer-vision/intel-realsense-d435i-setup-for-ros-noetic.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# 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="../.gitbook/assets/camera_color_optical_frame.png" 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.  | ||
|
||
<figure><img src="../.gitbook/assets/camera_feed.png" alt=""><figcaption></figcaption></figure> | ||
|
||
It would show the Camera Feed in the Bottom Left | ||
|
||
<figure><img src="../.gitbook/assets/camera_feed_view.png" 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="../.gitbook/assets/PointCloud2.png" alt=""><figcaption></figcaption></figure> | ||
|
||
It would show the Depth with color. | ||
|
||
<figure><img src="../.gitbook/assets/PointCloud2_View.png" alt=""><figcaption></figcaption></figure> | ||
|
||
Select _Points_ in the _Style_ Parameter to get a better Visualization | ||
|
||
|
||
|
||
<figure><img src="../.gitbook/assets/PointCloud2_Style.png" alt=""><figcaption></figcaption></figure> |