只需要三行,执行installROSXavier中的installROS.sh脚本即可,连.bashrc中的
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
都给写好了,很贴心。三行如下:
git clone https://github.com/jetsonhacks/installROSXavier.git
cd installROSXavier
./installROS.sh -p ros-melodic-desktop-full
#-p ros-melodic-rgbd-launch
貌似Jetson系列的控制器都可以这样安装ROS。
但是在执行 rosdep init 和 rosdep update 时经常因为网络原因过不去,需要手动干一些工作,参考
https://blog.csdn.net/weixin_43311920/article/details/114796748
https://blog.csdn.net/weixin_42584917/article/details/114448355
9月1日更新:最近发现一个黑科技,在Ubuntu上一键安装ROS,不是Jetson平台 https://github.com/RocShi/rostaller