---
title: ROS2
description: "LIPSEdge SDK is fully compatible with ROS2. In this article, we demonstrate how to use ROS2 wrapper to access 3D cameras and display pointcloud in Rviz viewer. ## [https://dev.lips-hci.com/lipsedge-tm-sdk-frameworks/ros2#prerequisite](https://dev.lips-hci.com/lipsedge-tm-sdk-frameworks/ros2#prerequisite)Prerequisite - Install [LIPSedge SDK](https://dev.lips-hci.com/introduction-to-lipsedge-sdk-1-x/lipsedge-sdk-1-x/) ## [https://dev.lips-hci.com/lipsedge-tm-sdk-frameworks/ros2#installation](https://dev.lips-hci.com/lipsedge-tm-sdk-frameworks/ros2#installation)Installation - Install openni2 package for…"
url: "https://dev.lips-hci.com/lipsedge-sdk-frameworks/lipsedge-sdk-ros2/"
updated: "2025-07-28"
category: LIPSedge™ SDK 1.x / LIPSedge™ SDK Frameworks
tags:
  - LIPSedge SDK
---

# ROS2

LIPSEdge SDK is fully compatible with ROS2. In this article, we demonstrate how to use ROS2 wrapper to access 3D cameras and display pointcloud in Rviz viewer.

## [https://dev.lips-hci.com/lipsedge-tm-sdk-frameworks/ros2#prerequisite](https://dev.lips-hci.com/lipsedge-tm-sdk-frameworks/ros2#prerequisite)Prerequisite

- Install [LIPSedge SDK](https://dev.lips-hci.com/introduction-to-lipsedge-sdk-1-x/lipsedge-sdk-1-x/)

## [https://dev.lips-hci.com/lipsedge-tm-sdk-frameworks/ros2#installation](https://dev.lips-hci.com/lipsedge-tm-sdk-frameworks/ros2#installation)Installation

- Install openni2 package for Ubuntu

```
$ sudo apt-get install libopenni2-0 libopenni2-dev
```

## [https://dev.lips-hci.com/lipsedge-tm-sdk-frameworks/ros2#build-and-launch](https://dev.lips-hci.com/lipsedge-tm-sdk-frameworks/ros2#build-and-launch)Build and launch

Clone [this](https://github.com/lips-hci/LIPSedge-ros2) repository and build it in ROS2 environment

```
$ mkdir -p ~/LIPSedge_ws/src
$ cd ~/LIPSedge_ws/src
$ git clone https://github.com/lips-hci/LIPSedge-ros2
$ cd ~/LIPSedge_ws
$ colcon build
```

Launch camera service, use:

```
$ source ./install/setup.bash
$ ros2 launch openni2_camera camera_only.launch.py
```

View depth/color/IR image by rqt, use:

```
$ ros2 run rqt_image_view rqt_image_view
```

Select topic */camera/depth/image_raw* in rqt:

![ROS2 | LIPS® Developer Documentation](https://dev.lips-hci.com/wp-content/uploads/2025/02/ROS2.avif)

Select topic */camera/rgb/image_raw* in rqt:

![ROS2 2 | LIPS® Developer Documentation](https://dev.lips-hci.com/wp-content/uploads/2025/02/ROS2-2.png)

## Visualize PointCloud2 data

If you want to get a PointCloud2, launch camera with another script:

```
$ source ./install/setup.bash
$ ros2 launch openni2_camera camera_with_cloud.launch.py
```

- Run Rviz tool in ROS2.
- Add **PointCloud2** and change the field **Topic -> Reliablity Policy** to '*Best Effort*'.
- In the left panel, manually change the field **Global Options -> Fixed Frame** to '*openni_rgb_optical_frame*'.

![ROS2 3 | LIPS® Developer Documentation](https://dev.lips-hci.com/wp-content/uploads/2025/02/ROS2-3.avif)

In the right panel, you should see visualized point cloud data.

![ROS2 4 | LIPS® Developer Documentation](https://dev.lips-hci.com/wp-content/uploads/2025/02/ROS2-4.avif)
