A ROS2 driver for Orbbec 3D cameras.
Only tested on Astra Pro
This package tested on ROS2 Galactic.
Install ROS
Install dependences
sudo apt install ros-$ROS_DISTRO-image-pipeline libuvc-dev
Create a ROS Workspace(if you don't have one)
mkdir -p ~/ros2_ws/src
Pull the repository into your ROS workspace
cd ~/ros2_ws/src
git clone https://github.com/KavenYau/ros2_astra_camera.git
Create astra udev rule
cd ros2_astra_camera
sudo cp ./56-orbbec-usb.rules /etc/udev/rules.d/
sudo systemctl reload systemd-udevd
sudo systemctl restart systemd-udevd
Compile
cd ../..
colcon build --symlink-install
ros2 launch ros2_astra_camera astra_pro_launch.py
ros2 launch ros2_astra_camera astra_pro_launch.py enable_color_cloud:=True
ros2 launch ros2_astra_camera astra_rviz.py
Pointcloud messages are not published smoothly when running as component.
DeviceOpen using default: no devices found
No matching device found.... waiting for devices
setting LD_LIBRARY_PATH environment variable to the right path of libOpenNI2.so. e.g.
export LD_LIBRARY_PATH=~/ros2_ws/src/ros2_astra_camera/ros2_astra_camera/lib/openni2_redist/arm64:$LD_LIBRARY_PATH