Skip to content

Commit

Permalink
update ros Tutorials
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco-ardu authored and OAKChina committed Aug 9, 2022
1 parent 7fe9bc1 commit 8ba7888
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 20 deletions.
4 changes: 2 additions & 2 deletions source/pages/Advanced/portabletool.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
便携工具
online tools
==========================

* 在线模型转换器 `MyriadX Blob converter <http://blobconverter.luxonis.com/>`__

* 在线将YOLOV5转化成OAK能用的模型格式 `Automatic Yolo export for OAK-D <https://tools.luxonis.com/>`__

* 动态创建DepthAI管道的工具(数据流程图),便于设备初始化的时候,直观地检查程序初始化的数据流程对不对 `DepthAI Pipeline Graph [Experimental] <https://github.com/geaxgx/depthai_pipeline_graph>`__
* DepthAI管道可视化工具(数据流程图),便于设备初始化的时候,直观地检查程序初始化的数据流程对不对 `DepthAI Pipeline Graph [Experimental] <https://github.com/geaxgx/depthai_pipeline_graph>`__

.. include:: /pages/includes/footer-short.rst
8 changes: 3 additions & 5 deletions source/pages/Advanced/ros2_foxy_depthai_ros.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,13 @@ ROS 2 软件包建立在经常更新的 Ubuntu 系统上。始终建议您在安
安装depthai依赖
****************

以下脚本将安装 depthai依赖 、更新 usb 规则。

.. note::

在执行以下安装命令时,会遇到网络问题,建议科学上网,或者使用以下镜像链接替换 https://cdn.jsdelivr.net/gh/luxonis/depthai-docs-website@master/source/_static/install_dependencies.sh
更新 usb 规则。

.. code-block:: bash
sudo wget https://raw.githubusercontent.com/luxonis/depthai-docs-website/master/source/_static/install_dependencies.sh | bash
echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="03e7", MODE="0666"' | sudo tee /etc/udev/rules.d/80-movidius.rules
sudo udevadm control --reload-rules && sudo udevadm trigger
depthai core安装包 `下载地址 <https://gitee.com/oakchina/depthai-core/releases/>`__

Expand Down
23 changes: 10 additions & 13 deletions source/pages/Advanced/ros_test_depthai_cpp_library.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,12 @@ ubuntu20.04推荐安装noetic版本的ROS,ubuntu18.04推荐安装melodic版本
安装依赖
**********

以下脚本将安装 depthai依赖 、更新 usb 规则。

.. note::

在执行以下安装命令时,会遇到网络问题,建议科学上网,或者使用以下镜像链接替换 https://cdn.jsdelivr.net/gh/luxonis/depthai-docs-website@master/source/_static/install_dependencies.sh
更新 usb 规则。

.. code-block:: bash
sudo wget https://raw.githubusercontent.com/luxonis/depthai-docs-website/master/source/_static/install_dependencies.sh | bash
echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="03e7", MODE="0666"' | sudo tee /etc/udev/rules.d/80-movidius.rules
sudo udevadm control --reload-rules && sudo udevadm trigger
depthai core安装包 `下载地址 <https://gitee.com/oakchina/depthai-core/releases/>`__

Expand Down Expand Up @@ -75,13 +72,13 @@ depthai core安装包 `下载地址 <https://gitee.com/oakchina/depthai-core/rel
# 若无法连接到密钥服务器,可以尝试替换上面命令中的 hkp://keyserver.ubuntu.com:80 为 hkp://pgp.mit.edu:80 。
sudo apt update
sudo apt install ros-melodic-desktop
sudo apt install python-rosdep
sudo apt install ros-noetic-desktop
sudo apt install python3-rosdep
sudo rosdep init
rosdep update
# 设置环境
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc
source ~/.bashrc
安装vcstool 
Expand All @@ -95,12 +92,12 @@ depthai core安装包 `下载地址 <https://gitee.com/oakchina/depthai-core/rel

.. code-block:: bash
mkdir -p <directory_for_workspaces>/src
cd <directory_for_workspaces>
mkdir -p dai_ws/src
cd dai_ws
wget https://raw.githubusercontent.com/luxonis/depthai-ros/main/underlay.repos
vcs import src < underlay.repos
rosdep install --from-paths src --ignore-src -r -y
source /opt/ros/melodic/setup.bash
source /opt/ros/noetic/setup.bash
catkin_make
source devel/setup.bash
Expand All @@ -109,7 +106,7 @@ depthai core安装包 `下载地址 <https://gitee.com/oakchina/depthai-core/rel

.. code-block:: bash
cd <directory_for_workspaces>/
cd dai_ws
source devel/setup.bash
roslaunch depthai_examples stereo_node.launch
Expand Down

0 comments on commit 8ba7888

Please sign in to comment.