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.pyros2 launch ros2_astra_camera astra_pro_launch.py enable_color_cloud:=Trueros2 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 devicessetting 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