Leetop Jetson Cloud Demo 7新功能预览

Isaac ROS Dev Base Container

l Isaac ROS Pose Estimation

此demo将使用NVIDIA GPU加速包为3D对象姿态预估做加速。使用深度学习的姿态估计模型和单目相机,isaac_ros_dope和isaac-ros_ centerpose包可以实现估计目标对象的6自由度姿态。

l 配置环境

  1. 下载源码包
$ mkdir -p ~/workspaces/isaac_ros-dev/src

$ cd ~/workspaces/isaac_ros-dev/src

$ git clone [https://github.com/NVIDIA-ISAAC-ROS/isaac_ros_common](https://github.com/NVIDIA-ISAAC-ROS/isaac_ros_common)

$ git clone [https://github.com/NVIDIA-ISAAC-ROS/isaac_ros_nitros](https://github.com/NVIDIA-ISAAC-ROS/isaac_ros_nitros)

$ git clone [https://github.com/NVIDIA-ISAAC-ROS/isaac_ros_pose_estimation](https://github.com/NVIDIA-ISAAC-ROS/isaac_ros_pose_estimation)

$ git clone https://github.com/NVIDIA-ISAAC-ROS/isaac_ros_dnn_inference
  1. 下载ROS Bag数据包
$ cd ~/workspaces/isaac_ros-dev/src/isaac_ros_pose_estimation && \

 git lfs pull -X "" -I "resources/rosbags/"
  1. 运行run_dev.sh脚本搭建Docker容器
$ cd ~/workspaces/isaac_ros-dev/src/isaac_ros_common && \

 ./scripts/run_dev.sh
  1. 在Docker容器里创建模型存放目录
$ mkdir -p /tmp/models/
  1. 在DOPE GitHub下载本例程使用的Ketchup.pth模型,在PC(x86_64)机上将模型转成onnx文件,然后存放于Docker里的/tmp/models/目录中
## 注意:此步骤在PC端执行

$ python3 /workspaces/isaac_ros-dev/src/isaac_ros_pose_estimation/isaac_ros_dope/scripts/dope_converter.py --format onnx --input /tmp/models/Ketchup.pth

## 注意:此步骤在Jetson执行,假设onnx模型放于~/Downloads

$ cd ~/Downloads && \

docker cp Ketchup.onnx isaac_ros_dev-aarch64-container:/tmp/models

l 编译 && 运行

  1. 进入上面搭建好的Dokcer容器
$ cd ~/workspaces/isaac_ros-dev/src/isaac_ros_common && \

 ./scripts/run_dev.sh
  1. 编译并在workspaces目录中配置
$ cd /workspaces/isaac_ros-dev && \

 colcon build --symlink-install && \

 source install/setup.bash

Note: 可运行 colcon test --executor sequential 以验证编译安装的完整性和正确性

  1. 运行以下启动文件以启动此软件包的演示:

执行isaac_ros_dope

$ ros2 launch isaac_ros_dope isaac_ros_dope_tensor_rt.launch.py model_file_path:=/tmp/models/Ketchup.onnx engine_file_path:=/tmp/models/Ketchup.plan

打开另一个终端窗口,并进入Docker容器

$ cd ~/workspaces/isaac_ros-dev/src/isaac_ros_common && \

 ./scripts/run_dev.sh

然后运行ROS bag

$ ros2 bag play -l src/isaac_ros_pose_estimation/resources/rosbags/dope_rosbag/
  1. 打开第三个终端窗口并进入Docker查看pose信息
$ cd ~/workspaces/isaac_ros-dev/src/isaac_ros_common && \

 ./scripts/run_dev.sh

$ ros2 topic echo /poses

Note: 当前显示的/poses是从/dope/pose_array这个原始topic获取的poses信息

  1. 使用rviz2显示pose数据

在第三个进入Docker的终端里输入

$ rviz2

此时将出现rviz2工具的窗口界面:

image.png

然后点击Add按钮,在By topic 里的PoseArray下选择/poses选项,确保将固定帧更新为摄像机。最后,可通过改变ShapeAxes信息来更新显示位置。
Note: 为了获得最佳效果,请将输入图像裁剪或调整大小,使其与DNN模型所期望的尺寸相同

支持如下的设备:
Module Jetpack config Software other SW HW
Orin devkit module 35.0 EA V2 default DS + Full Jetpack + Pytorch + TF Todesk NV devkit
Orin 32G 35.0 EA V2 default DS + Full Jetpack + Pytorch + TF Todesk NV devkit
Orin devkit module 35.0 EA V2 default DS + Full Jetpack + Pytorch + TF Todesk Leetop carry board
Orin 32G 35.0 EA V2 default DS + Full Jetpack + Pytorch + TF Todesk Leetop carry board
Orin devkit 35.0 EA V2 Orin nx 16G DS + Full Jetpack + Pytorch + TF Todesk
Orin devkit 35.0 EA V2 Orin nx 8G DS + Full Jetpack + Pytorch + TF Todesk
Xavier devkit module 35.0 EA V2 default DS + Full Jetpack + Pytorch + TF Todesk NV devkit
Xavier 32G 35.0 EA V2 default DS + Full Jetpack + Pytorch + TF Todesk Leetop carry board
Xavier Industry 35.0 EA V2 default DS + Full Jetpack + Pytorch + TF Todesk Leetop carry board
Xavier Industry 35.0 EA V2 default DS + Full Jetpack + Pytorch + TF Todesk NV devkit
Xavier NX 35.0 EA V2 default DS + Full Jetpack + Pytorch + TF Todesk Leetop carry board
Xavier NX 16G 35.0 EA V2 default DS + Full Jetpack + Pytorch + TF Todesk Leetop carry board
Nano R 32.7.2 default DS + Full Jetpack + Pytorch + TF Todesk Leetop carry board
TX2 NX R 32.7.2 default DS + Full Jetpack + Pytorch + TF Todesk Leetop carry board
Xavier devkit module R 32.7.2 default DS + Full Jetpack + Pytorch + TF Todesk NV devkit
Xavier 32G R 32.7.2 default DS + Full Jetpack + Pytorch + TF Todesk Leetop carry board
Xavier Industry R 32.7.2 default DS + Full Jetpack + Pytorch + TF Todesk Leetop carry board
Xavier Industry R 32.7.2 default DS + Full Jetpack + Pytorch + TF Todesk NV devkit
Xavier NX R 32.7.2 default DS + Full Jetpack + Pytorch + TF Todesk Leetop carry board
Xavier NX 16G R 32.7.2 default DS + Full Jetpack + Pytorch + TF Todesk Leetop carry board

QR Code
微信扫一扫,欢迎咨询~

联系我们
武汉格发信息技术有限公司
湖北省武汉市经开区科技园西路6号103孵化器
电话:155-2731-8020 座机:027-59821821
邮件:tanzw@gofarlic.com
Copyright © 2023 Gofarsoft Co.,Ltd. 保留所有权利
遇到许可问题?该如何解决!?
评估许可证实际采购量? 
不清楚软件许可证使用数据? 
收到软件厂商律师函!?  
想要少购买点许可证,节省费用? 
收到软件厂商侵权通告!?  
有正版license,但许可证不够用,需要新购? 
联系方式 155-2731-8020
预留信息,一起解决您的问题
* 姓名:
* 手机:

* 公司名称:

姓名不为空

手机不正确

公司不为空