windows安装使用Ros2 foxy教程
前言:官网上的教程步骤太繁琐复杂了,又是安装这个,又是安装那个。好在能通过choco安装ros2,方便很多。
一、windows安装Ros2 foxy
1.安装choco包管理工具
管理员PowerShell运行如下命令(一行命令):
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
2.安装ros2 foxy
管理员PowerShell运行如下命令:
choco source add -n=ros-win -s="https://aka.ms/ros/public" --priority=1
choco install ros-foxy-desktop -y --execution-timeout=0
等待安装完成即可
随后可以在C盘发现该目录:C:\opt\ros\foxy\x64
测试使用: