1.win10安装ros2_dashing可参考官方网站提供的安装方法https://index.ros.org/doc/ros2/Installation/Dashing/Windows-Install-Binary/
2.在下载安装的时候会很慢,我这边都是在早上的时候安装会比较快,opencv和ros2包我是提取官方文档中的下载链接到迅雷中下载,不过也只有早上的时候下载比较快
3.安装下面五个
把这五个文件放到一起,在运行
choco install -y -s <PATH\TO\DOWNLOADS\> asio cunit eigen tinyxml-usestl tinyxml2 log4cxx
的时候,需要把<PATH\TO\DOWNLOADS\>这个替换你放上面五个文件的路径,注意要把<>删掉
4.在用pip安装一些依赖的时候可能会很慢,可以用清华的镜像源https://mirrors.tuna.tsinghua.edu.cn/help/pypi/
官方的安装方法是
python -m pip install -U catkin_pkg empy lark-parser lxml numpy opencv-python pyparsing pyyaml setuptools
可以替换为
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple catkin_pkg empy lark-parser lxml numpy opencv-python pyparsing pyyaml setuptools
5.在验证是否安装成功,运行示例的时候,先把终端关了在重新开,在运行示例。打开终端一定要运行下
call C:\dev\ros2_dashing\local_setup.bat
运行后可能会出现
[connext_cmake_module] Warning: The location at which Connext was found when the workspace was built [[C:\Program Files\rti_connext_dds-5.3.1]] does not point to a valid directory, and the NDDSHOME environment variable has not been set. Support for Connext will not be available.
[opensplice_cmake_module] Warning: The location at which OpenSplice was found when the workspace was built [[C:\opensplice\HDE\x86_64.win64\]] does not point to a valid directory, and the OSPL_HOME environment variable has not been set. Support for OpenSplice will not be available.
暂时没有发现对后面功能有什么影响,可以先不管
6.以上终端打开都已管理员身份运行
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)