ROS
Last updated
Last updated
LIPS OpenNI2 SDK is fully compatible with ROS. In this article, we demonstrate how to use ROS wrapper to access 3D cameras and display pointcloud in Rviz viewer.
Install
we use Ubuntu 20.04 and ROS Noetic in the following tutorial. You can also find official install documentation
Install ROS via apt
Install dependencies
Install some useful ROS packages (e.g. rviz viewer)
Before using any ROS command, some environment variables need to be setup. You can do that by executing setup.bash
which ROS provide
Initialize ROS and install all ROS dependencies
Create the workspace
Download LIPS ROS wrapper
Run launch script
chose launch script according to your camera.
run_DL.sh
for DL
run_M3.sh
for M3
run_SL.sh
for L210/L215
After camera topic is launched, You can now use Rviz viewer to see video streams or pointcloud.
Launch Rviz viewer in terminal
Set Fixed Frame from the Displays panel on the left panel to camera_link
Click Add on the bottom of Displays panel. Switch to By Topic tab, select /depth_registered > /points > PointCloud2. Then click OK.
Now you can see the pointcloud