#!/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 …
ubuntu ROS 一键安装脚本
最新推荐文章于 2024-11-11 11:32:23 发布