ubuntu ROS 一键安装脚本

7 篇文章 0 订阅

#!/bin/bash
sudo sh -c ‘. /etc/lsb-release && echo “deb http://mirrors.ustc.edu.cn/ros/ubuntu/ $DISTRIB_CODENAME main” > /etc/apt/sources.list.d/ros-latest.list’
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F42ED6FBAB17C654
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install ros-kinetic-desktop-full -y
sudo apt-get install python-rosinstall -y
sudo rosdep init
rosdep update
echo “source /opt/ros/kinetic/setup.bash” >> ~/.bashrc
source ~/.bashrc
sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev -y
sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev -y
sudo apt-get install build-essential qt5-default ccache libv4l-dev libavresample-dev libgphoto2-dev libopenblas-base libopenblas-dev doxygen openjdk-8-jdk pylint libvtk6-dev -y
sudo apt-get install pkg-config -y
sudo apt-get install ros-kinetic-usb-cam -y
sudo apt-get install ros-kinetic-camera-calibration -y
sudo apt install ros-kinetic-moveit -y
sudo apt install ros-kinetic-moveit-visual-tools -y
sudo apt-get install git python-serial ros-kinetic-serial g++ ros-kinetic-turtlebot-rviz-launchers ros-kinetic-teleop-twist-keyboard ros-kinetic-move-base-msgs libghc-sdl-image-dev ros-kinetic-navigation ros-kinetic-slam-gmapping ros-kinetic-teb-local-planner -y
sudo apt-get install expect ctags libgl1-mesa-dev libffi-dev autoconf automake libtool curl make g++ unzip openssl libssh2-1-dev libssl-dev -y
rm -rf ~/openssl-1.1.0g
unzip openssl-1.1.0g.zip
cd openssl-1.1.0g
./config
make
sudo make install
sudo ldconfig
cd …

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值