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.
Prerequisite
Install LIPSEdge SDK
Installation
Install openni2 package for Ubuntu
Build and launch
Clone this repository and build it in ROS2 environment
Launch camera service, use:
View depth/color/IR image by rqt, use:
Select topic /camera/depth/image_raw in rqt:
Select topic /camera/rgb/image_raw in rqt:
Visualize PointCloud2 data
If you want to get a PointCloud2, launch camera with another script:
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'.
In the right panel, you should see visualized point cloud data.
Last updated