mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-05 04:27:46 +08:00
deploy: 5e479b1b24
This commit is contained in:
@@ -6,6 +6,22 @@ Install ROS 2 according to the official guide:
|
||||
|
||||
* [ROS 2 installation (Ubuntu)](https://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html)
|
||||
|
||||
Install dependencies:
|
||||
|
||||
```bash
|
||||
sudo apt install libgflags-dev nlohmann-json3-dev \
|
||||
ros-$ROS_DISTRO-image-transport ros-${ROS_DISTRO}-image-transport-plugins ros-${ROS_DISTRO}-compressed-image-transport \
|
||||
ros-$ROS_DISTRO-image-publisher ros-$ROS_DISTRO-camera-info-manager \
|
||||
ros-$ROS_DISTRO-diagnostic-updater ros-$ROS_DISTRO-diagnostic-msgs ros-$ROS_DISTRO-statistics-msgs ros-$ROS_DISTRO-xacro \
|
||||
ros-$ROS_DISTRO-backward-ros libdw-dev libssl-dev
|
||||
```
|
||||
|
||||
Enable ROS 2 auto-completion:
|
||||
|
||||
```bash
|
||||
eval "$(register-python-argcomplete3 ros2)"
|
||||
eval "$(register-python-argcomplete3 colcon)"
|
||||
```
|
||||
#### Linux Binary Package Installation
|
||||
|
||||
Check available packages:
|
||||
@@ -27,18 +43,7 @@ After installation, you can use it directly without compilation.
|
||||
|
||||
### Build from Source
|
||||
|
||||
#### Environment
|
||||
|
||||
Install ROS 2 according to the official guide:
|
||||
|
||||
* [ROS 2 installation (Ubuntu)](https://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html)
|
||||
|
||||
Enable ROS 2 auto-completion:
|
||||
|
||||
```bash
|
||||
eval "$(register-python-argcomplete3 ros2)"
|
||||
eval "$(register-python-argcomplete3 colcon)"
|
||||
```
|
||||
#### Linux ROS2 Wrapper Compilation
|
||||
|
||||
Create a `colcon` workspace:
|
||||
|
||||
@@ -46,8 +51,6 @@ Create a `colcon` workspace:
|
||||
mkdir -p ~/ros2_ws/src
|
||||
```
|
||||
|
||||
#### Linux ROS2 Wrapper Compilation
|
||||
|
||||
Clone source and checkout `v2-main` branch:
|
||||
|
||||
```bash
|
||||
@@ -57,16 +60,6 @@ cd OrbbecSDK_ROS2
|
||||
git checkout v2-main
|
||||
```
|
||||
|
||||
Install dependencies:
|
||||
|
||||
```bash
|
||||
sudo apt install libgflags-dev nlohmann-json3-dev \
|
||||
ros-$ROS_DISTRO-image-transport ros-${ROS_DISTRO}-image-transport-plugins ros-${ROS_DISTRO}-compressed-image-transport \
|
||||
ros-$ROS_DISTRO-image-publisher ros-$ROS_DISTRO-camera-info-manager \
|
||||
ros-$ROS_DISTRO-diagnostic-updater ros-$ROS_DISTRO-diagnostic-msgs ros-$ROS_DISTRO-statistics-msgs ros-$ROS_DISTRO-xacro \
|
||||
ros-$ROS_DISTRO-backward-ros libdw-dev libssl-dev
|
||||
```
|
||||
|
||||
Build:
|
||||
|
||||
```bash
|
||||
|
||||
@@ -19,6 +19,11 @@ Make sure ROS 2 and your workspace environment are sourced:
|
||||
|
||||
```bash
|
||||
source /opt/ros/$ROS_DISTRO/setup.bash
|
||||
```
|
||||
|
||||
Source code build requirements
|
||||
|
||||
```bash
|
||||
source ~/ros2_ws/install/setup.bash
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user