前言
本来在Ubuntu下使用Ros就足够了,然而windows也需要使用深度摄像头的SDK,官方给的例子运行不成功,只能考虑曲线救国。
ROS2 Documentation: Humble,文档提供了各平台安装流程,按照步骤执行就可以。
一、安装Chocolatey
管理员运行cmd,输入运行安装
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
输入,验证安装结果,出现版本号即安装完成。
choco
设置安装目录
mkdir c:\opt\choc