2.1. Build from Source
2.1.1. Environment
ROS
Please refer directly to the ROS wiki for installation instructions.
Other Dependencies
Install dependencies (be careful with your ROS distribution):
# Assuming you have sourced the ROS environment, same below
sudo apt install libgflags-dev ros-$ROS_DISTRO-image-geometry ros-$ROS_DISTRO-camera-info-manager \
ros-${ROS_DISTRO}-image-transport-plugins ros-${ROS_DISTRO}-compressed-image-transport \
ros-$ROS_DISTRO-image-transport ros-$ROS_DISTRO-image-publisher libgoogle-glog-dev libusb-1.0-0-dev libeigen3-dev \
ros-$ROS_DISTRO-diagnostic-updater ros-$ROS_DISTRO-diagnostic-msgs \
libdw-dev
2.1.2. Create ROS Workspace and Build
Create a ROS workspace (if you don’t have one):
mkdir -p ~/ros_ws/src
Get the source code:
cd ~/ros_ws/src
git clone https://github.com/orbbec/OrbbecSDK_ROS1.git
roscd orbbec_camera
git checkout v2-main
git branch #Check whether the branch switch is successful
Build the package:
cd ~/ros_ws
catkin_make