Ubuntu 16.04 安装ROS Kinetic
手机流量充足的话请使用手机流量进行安装,减少很多不必要的各种网络带来麻烦问题
(1)打开对应目录,找到源文件,同时进行文件备份
cd /etc/apt/source.list
sudo cp source.list source.list.bak
(2)更改源——清华源
打开终端,然后输sudo gedit /etc/apt/sources.list回车输开机密码然后回车然后就打开那个文件了,然后修改 最后保存
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
更改【软件和更新选项】设置——如图
(3)之后输入:进行系统更新
sudo apt-get update
sudo apt-get upgrade -y
添加代码列表
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
设置公钥(Key)
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key
421C365BD9FF1F717815A3895523BAEEB01FA116
安装ROS Kinetic Kame完整包
sudo apt-get install ros-kinetic-desktop-full
sudo apt-get install ros-kinetic-desktop-full 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 下列软件包是自动安装的并且现在不需要了: snapd-login-service 使用'sudo apt autoremove'来卸载它(它们)。 将会同时安装下列软件: autotools-dev binfmt-support blt bzip2-doc cmake cmake-data comerr-dev curl debhelper dh-strip-nondeterminism docutils-common docutils-doc fltk1.3-doc fluid fonts-lato fonts-lyx freeglut3 freeglut3-dev gazebo7 gazebo7-common gazebo7-plugin-base gfortran gfortran-5 gir1.2-gtk-2.0 google-mock graphviz hddtemp hdf5-helpers i965-va-driver icu-devtools javascript-common krb5-multidev libaacs0 libaec-dev libaec0 libapr1 libapr1-dev libaprutil1 libaprutil1-dev libarmadillo6 libarpack2 libassimp-dev libassimp3v5 libatk1.0-dev libavcodec-dev libavcodec-ffmpeg56 libavformat-dev libavformat-ffmpeg56 libavutil-dev libavutil-ffmpeg54 libbdplus0 libblas-common libblas-dev libblas3 libbluray1 libboost-all-dev libboost-atomic-dev libboost-atomic1.58-dev libboost-atomic1.58.0 libboost-chrono-dev libboost-chrono1.58-dev libboost-chrono1.58.0 libboost-context-dev libboost-context1.58-dev libboost-context1.58.0 libboost-coroutine-dev libboost-coroutine1.58-dev libboost-coroutine1.58.0 libboost-date-time-dev libboost-date-time1.58-dev libboost-dev libboost-exception-dev libboost-exception1.58-dev libboost-filesystem-dev libboost-filesystem1.58-dev libboost-graph-dev libboost-graph-parallel-dev libboost-graph-parallel1.58-dev libboost-graph-parallel1.58.0 libboost-graph1.58-dev libboost-graph1.58.0 libboost-iostreams-dev libboost-iostreams1.58-dev libboost-locale-dev libboost-locale1.58-dev libboost-locale1.58.0 libboost-log-dev libboost-log1.58-dev libboost-log1.58.0 libboost-math-dev libboost-math1.58-dev libboost-math1.58.0 libboost-mpi-dev libboost-mpi-python-dev libboost-mpi-python1.58-dev libboost-mpi-python1.58.0 libboost-mpi1.58-dev libboost-mpi1.58.0 libboost-program-options-dev libboost-program-options1.58-dev libboost-program-options1.58.0 libboost-python-dev libboost-python1.58-dev libboost-python1.58.0 libboost-random-dev libboost-random1.58-dev libboost-random1.58.0 libboost-regex-dev libboost-regex1.58-dev libboost-regex1.58.0 libboost-serialization-dev libboost-serialization1.58-dev libboost-serialization1.58.0 libboost-signals-dev libboost-signals1.58-dev libboost-signals1.58.0 libboost-system-dev libboost-system1.58-dev libboost-test-dev libboost-test1.58-dev libboost-test1.58.0 libboost-thread-dev libboost-thread1.58-dev libboost-thread1.58.0 libboost-timer-dev libboost-timer1.58-dev libboost-timer1.58.0 libboost-tools-dev libboost-wave-dev libboost-wave1.58-dev libboost-wave1.58.0 libboost1.58-dev libboost1.58-tools-dev libbulletcollision2.83.6 libbulletdynamics2.83.6 libbz2-dev libcairo-script-interpreter2 libcairo2-dev libcdt5 libcgraph6 libcollada-dom2.4-dp-dev libcollada-dom2.4-dp0 libconsole-bridge-dev libconsole-bridge0.2v5 libcrystalhd3 libcurl4-openssl-dev libdap-dev libdap17v5 libdapclient6v5 libdapserver7v5 libdrm-dev libegl1-mesa-dev libeigen3-dev libepsilon1 libexpat1-dev libfile-stripnondeterminism-perl libflann-dev libflann1.8 libfltk-cairo1.3 libfltk-forms1.3 libfltk-gl1.3 libfltk-images1.3 libfltk1.3 libfltk1.3-dev libfontconfig1-dev libfreeimage-dev libfreeimage3 libfreetype6-dev libfreexl1 libgazebo7 libgazebo7-dev libgdal-dev libgdal1i libgdk-pixbuf2.0-dev libgeos-3.5.0 libgeos-c1v5 libgeos-dev libgfortran-5-dev libgfortran3 libgif-dev libgif7 libgl1-mesa-dev libgl2ps-dev libgl2ps0 libglade2-0 libgles2-mesa libgles2-mesa-dev libglib2.0-dev libglu1-mesa-dev libgme0 libgsm1 libgssrpc4 libgtest-dev libgtk2.0-dev libgts-0.7-5 libgts-bin libgts-dev libgvc6 libgvpr2 libharfbuzz-dev libharfbuzz-gobject0 libhdf4-0-alt libhdf4-alt-dev libhdf5-10 libhdf5-cpp-11 libhdf5-dev libhdf5-mpi-dev libhdf5-openmpi-10 libhdf5-openmpi-dev libhwloc-dev libhwloc-plugins libhwloc5 libibverbs-dev libibverbs1 libice-dev libicu-dev libignition-math2 libignition-math2-dev libinput-dev libjasper-dev libjbig-dev libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev libjs-jquery libjs-jquery-ui libjs-sphinxdoc libjs-underscore libjsoncpp-dev libjsoncpp1 libjxr0 libkadm5clnt-mit9 libkadm5srv-mit9 libkdb5-8 libkmlbase1 libkmldom1 libkmlengine1 liblapack-dev liblapack3 libldap2-dev liblinearmath2.83.6 liblog4cxx-dev liblog4cxx10-dev liblog4cxx10v5 libltdl-dev liblz4-dev liblzma-dev libmail-sendmail-perl libminizip1 libmirclient-dev libmircommon-dev libmircookie-dev libmircookie2 libmircore-dev libmodplug1 libmp3lame0 libmysqlclient-dev libmysqlclient20 libnetcdf-c++4 libnetcdf-cxx-legacy-dev libnetcdf-dev libnetcdf11 libnuma-dev libodbc1 libogdi3.2 libogg-dev libogre-1.9-dev libogre-1.9.0v5 libopenjp2-7 libopenjpeg5 libopenmpi-dev libopenmpi1.10 libopenni-dev libopenni-sensor-pointclouds0 libopenni0 libpango1.0-dev libpathplan4 libpcl-apps1.7 libpcl-common1.7 libpcl-dev libpcl-features1.7 libpcl-filters1.7 libpcl-io1.7 libpcl-kdtree1.7 libpcl-keypoints1.7 libpcl-octree1.7 libpcl-outofcore1.7 libpcl-people1.7 libpcl-recognition1.7 libpcl-registration1.7 libpcl-sample-consensus1.7 libpcl-search1.7 libpcl-segmentation1.7 libpcl-surface1.7 libpcl-tracking1.7 libpcl-visualization1.7 libpcl1.7 libpcre3-dev libpcre32-3 libpcrecpp0v5 libpixman-1-dev libpng12-dev libpoco-dev libpococrypto9v5 libpocodata9v5 libpocofoundation9v5 libpocomysql9v5 libpoconet9v5 libpoconetssl9v5 libpocoodbc9v5 libpocosqlite9v5 libpocoutil9v5 libpocoxml9v5 libpocozip9v5 libpq-dev libpq5 libproj9 libprotobuf-dev libprotoc-dev libprotoc9v5 libpthread-stubs0-dev libpyside-py3-2.0 libpyside2-dev libpyside2.0 libpython-dev libpython2.7-dev libqgsttools-p1 libqhull-dev libqhull7 libqt4-designer libqt4-dev libqt4-dev-bin libqt4-help libqt4-opengl libqt4-opengl-dev libqt4-qt3support libqt4-scripttools libqt4-svg libqt4-test libqt5clucene5 libqt5concurrent5 libqt5designer5 libqt5designercomponents5 libqt5help5 libqt5multimediaquick-p5 libqt5multimediawidgets5 libqt5opengl5-dev libqt5quickparticles5 libqt5script5 libqt5scripttools5 libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5 libqt5x11extras5-dev libqt5xmlpatterns5 libqt5xmlpatterns5-dev libqt5xmlpatterns5-private-dev libqtwebkit-dev libqtwebkit4 libruby2.3 libschroedinger-1.0-0 libsctp-dev libsctp1 libsdformat4 libsdformat4-dev libshiboken-py3-2.0 libshiboken2-dev libshiboken2.0 libshine3 libsimbody-dev libsimbody3.5v5 libsm-dev libsnappy1v5 libsoxr0 libspatialite-dev libspatialite7 libspnav0 libsqlite3-dev libssh-gcrypt-4 libssl-dev libssl-doc libsuperlu4 libswresample-dev libswresample-ffmpeg1 libswscale-dev libswscale-ffmpeg3 libsys-hostname-long-perl libsz2 libtar-dev libtar0 libtbb-dev libtbb2 libtheora-dev libtiff5-dev libtiffxx5 libtinyxml-dev libtinyxml2-2v5 libtinyxml2-dev libtool libtwolame0 libudev-dev liburdfdom-dev liburdfdom-headers-dev liburdfdom-model-state0.4 liburdfdom-model0.4 liburdfdom-sensor0.4 liburdfdom-tools liburdfdom-world0.4 liburiparser1 libusb-1.0-0-dev libusb-1.0-doc libva1 libvtk6-dev libvtk6-java libvtk6-qt-dev libvtk6.2 libvtk6.2-qt libwayland-bin libwayland-dev libwebp-dev libwxbase3.0-0v5 libwxgtk3.0-0v5 libx11-dev libx11-doc libx11-xcb-dev libx264-148 libx265-79 libxau-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-shape0-dev libxcb-shm0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb1-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxerces-c-dev libxerces-c3.1 libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev libxkbcommon-dev libxml2-dev libxml2-utils libxmu-dev libxmu-headers libxrandr-dev libxrender-dev libxshmfence-dev libxss-dev libxt-dev libxvidcore4 libxxf86vm-dev libyaml-cpp-dev libyaml-cpp0.5v5 libzvbi-common libzvbi0 libzzip-0-13 mesa-common-dev mesa-va-drivers mpi-default-bin mpi-default-dev mysql-common ocl-icd-libopencl1 odbcinst odbcinst1debian2 openmpi-bin openmpi-common openni-utils po-debconf proj-bin proj-data pyqt5-dev python-attr python-autobahn python-cairo python-catkin-pkg python-catkin-pkg-modules python-cffi-backend python-chardet python-concurrent.futures python-crypto python-cryptography python-cycler python-dateutil python-defusedxml python-dev python-docutils python-ecdsa python-empy python-enum34 python-glade2 python-gobject-2 python-gtk2 python-idna python-imaging python-ipaddress python-lz4 python-matplotlib python-matplotlib-data python-mpi4py python-msgpack python-netifaces python-nose python-numpy python-opengl python-openssl python-pam python-paramiko python-pil python-pkg-resources python-psutil python-pyasn1 python-pyasn1-modules python-pydot python-pygments python-pyparsing python-pyqt5 python-pyqt5.qtopengl python-pyqt5.qtsvg python-pyqt5.qtwebkit python-pyside2 python-pyside2.qtconcurrent python-pyside2.qtcore python-pyside2.qtgui python-pyside2.qthelp python-pyside2.qtnetwork python-pyside2.qtprintsupport python-pyside2.qtqml python-pyside2.qtquick python-pyside2.qtquickwidgets python-pyside2.qtscript python-pyside2.qtsql python-pyside2.qtsvg python-pyside2.qttest python-pyside2.qtuitools python-pyside2.qtwebkit python-pyside2.qtwebkitwidgets python-pyside2.qtwidgets python-pyside2.qtx11extras python-pyside2.qtxml python-roman python-rosdep python-rosdistro python-rosdistro-modules python-rospkg python-rospkg-modules python-serial python-service-identity python-setuptools python-sip python-sip-dev python-six python-snappy python-tk python-trollius python-twisted python-twisted-bin python-twisted-core python-txaio python-tz python-vtk6 python-wxgtk3.0 python-wxtools python-wxversion python-yaml python-zope.interface python2.7-dev qt4-linguist-tools qt4-qmake qt5-qmake qtbase5-dev qtbase5-dev-tools qtbase5-private-dev qtdeclarative5-dev qtdeclarative5-private-dev qtmultimedia5-dev qtscript5-dev qtscript5-private-dev qttools5-dev qttools5-dev-tools qttools5-private-dev rake ros-kinetic-actionlib ros-kinetic-actionlib-msgs ros-kinetic-actionlib-tutorials ros-kinetic-angles ros-kinetic-bond ros-kinetic-bond-core ros-kinetic-bondcpp ros-kinetic-bondpy ros-kinetic-camera-calibration ros-kinetic-camera-calibration-parsers ros-kinetic-camera-info-manager ros-kinetic-catkin ros-kinetic-class-loader ros-kinetic-cmake-modules ros-kinetic-collada-parser ros-kinetic-collada-urdf ros-kinetic-common-msgs ros-kinetic-common-tutorials ros-kinetic-compressed-depth-image-transport ros-kinetic-compressed-image-transport ros-kinetic-control-msgs ros-kinetic-cpp-common ros-kinetic-cv-bridge ros-kinetic-depth-image-proc ros-kinetic-desktop ros-kinetic-diagnostic-aggregator ros-kinetic-diagnostic-analysis ros-kinetic-diagnostic-common-diagnostics ros-kinetic-diagnostic-msgs ros-kinetic-diagnostic-updater ros-kinetic-diagnostics ros-kinetic-dynamic-reconfigure ros-kinetic-eigen-conversions ros-kinetic-eigen-stl-containers ros-kinetic-executive-smach ros-kinetic-filters ros-kinetic-gazebo-dev ros-kinetic-gazebo-msgs ros-kinetic-gazebo-plugins ros-kinetic-gazebo-ros ros-kinetic-gazebo-ros-pkgs ros-kinetic-gencpp ros-kinetic-geneus ros-kinetic-genlisp ros-kinetic-genmsg ros-kinetic-gennodejs ros-kinetic-genpy ros-kinetic-geometric-shapes ros-kinetic-geometry ros-kinetic-geometry-msgs ros-kinetic-geometry-tutorials ros-kinetic-gl-dependency ros-kinetic-image-common ros-kinetic-image-geometry ros-kinetic-image-pipeline ros-kinetic-image-proc ros-kinetic-image-publisher ros-kinetic-image-rotate ros-kinetic-image-transport ros-kinetic-image-transport-plugins ros-kinetic-image-view ros-kinetic-interactive-marker-tutorials ros-kinetic-interactive-markers ros-kinetic-joint-state-publisher ros-kinetic-kdl-conversions ros-kinetic-kdl-parser ros-kinetic-laser-assembler ros-kinetic-laser-filters ros-kinetic-laser-geometry ros-kinetic-laser-pipeline ros-kinetic-librviz-tutorial ros-kinetic-map-msgs ros-kinetic-media-export ros-kinetic-message-filters ros-kinetic-message-generation ros-kinetic-message-runtime ros-kinetic-mk ros-kinetic-nav-msgs ros-kinetic-nodelet ros-kinetic-nodelet-core ros-kinetic-nodelet-topic-tools ros-kinetic-nodelet-tutorial-math ros-kinetic-octomap ros-kinetic-opencv3 ros-kinetic-orocos-kdl ros-kinetic-pcl-conversions ros-kinetic-pcl-msgs ros-kinetic-pcl-ros ros-kinetic-perception ros-kinetic-perception-pcl ros-kinetic-pluginlib ros-kinetic-pluginlib-tutorials ros-kinetic-polled-camera ros-kinetic-python-orocos-kdl ros-kinetic-python-qt-binding ros-kinetic-qt-dotgraph ros-kinetic-qt-gui ros-kinetic-qt-gui-cpp ros-kinetic-qt-gui-py-common ros-kinetic-qwt-dependency ros-kinetic-random-numbers ros-kinetic-resource-retriever ros-kinetic-robot ros-kinetic-robot-model ros-kinetic-robot-state-publisher ros-kinetic-ros ros-kinetic-ros-base ros-kinetic-ros-comm ros-kinetic-ros-core ros-kinetic-ros-environment ros-kinetic-ros-tutorials ros-kinetic-rosbag ros-kinetic-rosbag-migration-rule ros-kinetic-rosbag-storage ros-kinetic-rosbash ros-kinetic-rosboost-cfg ros-kinetic-rosbuild ros-kinetic-rosclean ros-kinetic-rosconsole ros-kinetic-rosconsole-bridge ros-kinetic-roscpp ros-kinetic-roscpp-core ros-kinetic-roscpp-serialization ros-kinetic-roscpp-traits ros-kinetic-roscpp-tutorials ros-kinetic-roscreate ros-kinetic-rosgraph ros-kinetic-rosgraph-msgs ros-kinetic-roslang ros-kinetic-roslaunch ros-kinetic-roslib ros-kinetic-roslint ros-kinetic-roslisp ros-kinetic-roslz4 ros-kinetic-rosmake ros-kinetic-rosmaster ros-kinetic-rosmsg ros-kinetic-rosnode ros-kinetic-rosout ros-kinetic-rospack ros-kinetic-rosparam ros-kinetic-rospy ros-kinetic-rospy-tutorials ros-kinetic-rosservice ros-kinetic-rostest ros-kinetic-rostime ros-kinetic-rostopic ros-kinetic-rosunit ros-kinetic-roswtf ros-kinetic-rqt-action ros-kinetic-rqt-bag ros-kinetic-rqt-bag-plugins ros-kinetic-rqt-common-plugins ros-kinetic-rqt-console ros-kinetic-rqt-dep ros-kinetic-rqt-graph ros-kinetic-rqt-gui ros-kinetic-rqt-gui-cpp ros-kinetic-rqt-gui-py ros-kinetic-rqt-image-view ros-kinetic-rqt-launch ros-kinetic-rqt-logger-level ros-kinetic-rqt-moveit ros-kinetic-rqt-msg ros-kinetic-rqt-nav-view ros-kinetic-rqt-plot ros-kinetic-rqt-pose-view ros-kinetic-rqt-publisher ros-kinetic-rqt-py-common ros-kinetic-rqt-py-console ros-kinetic-rqt-reconfigure ros-kinetic-rqt-robot-dashboard ros-kinetic-rqt-robot-monitor ros-kinetic-rqt-robot-plugins ros-kinetic-rqt-robot-steering ros-kinetic-rqt-runtime-monitor ros-kinetic-rqt-rviz ros-kinetic-rqt-service-caller ros-kinetic-rqt-shell ros-kinetic-rqt-srv ros-kinetic-rqt-tf-tree ros-kinetic-rqt-top ros-kinetic-rqt-topic ros-kinetic-rqt-web ros-kinetic-rviz ros-kinetic-rviz-plugin-tutorials ros-kinetic-rviz-python-tutorial ros-kinetic-self-test ros-kinetic-sensor-msgs ros-kinetic-shape-msgs ros-kinetic-simulators ros-kinetic-smach ros-kinetic-smach-msgs ros-kinetic-smach-ros ros-kinetic-smclib ros-kinetic-stage ros-kinetic-stage-ros ros-kinetic-std-msgs ros-kinetic-std-srvs ros-kinetic-stereo-image-proc ros-kinetic-stereo-msgs ros-kinetic-tf ros-kinetic-tf-conversions ros-kinetic-tf2 ros-kinetic-tf2-eigen ros-kinetic-tf2-geometry-msgs ros-kinetic-tf2-kdl ros-kinetic-tf2-msgs ros-kinetic-tf2-py ros-kinetic-tf2-ros ros-kinetic-theora-image-transport ros-kinetic-topic-tools ros-kinetic-trajectory-msgs ros-kinetic-turtle-actionlib ros-kinetic-turtle-tf ros-kinetic-turtle-tf2 ros-kinetic-turtlesim ros-kinetic-urdf ros-kinetic-urdf-parser-plugin ros-kinetic-urdf-tutorial ros-kinetic-vision-opencv ros-kinetic-visualization-marker-tutorials ros-kinetic-visualization-msgs ros-kinetic-visualization-tutorials ros-kinetic-viz ros-kinetic-webkit-dependency ros-kinetic-xacro ros-kinetic-xmlrpcpp ruby ruby-did-you-mean ruby-minitest ruby-net-telnet ruby-power-assert ruby-test-unit ruby2.3 rubygems-integration sbcl sdformat-sdf shiboken2 sip-dev tango-icon-theme tcl-dev tcl-vtk6 tcl8.6-dev tk-dev tk8.6-blt2.5 tk8.6-dev ttf-bitstream-vera ttf-dejavu-core ttf-liberation unixodbc unixodbc-dev uuid-dev va-driver-all vtk6 x11proto-composite-dev x11proto-core-dev x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev x11proto-gl-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev x11proto-render-dev x11proto-scrnsaver-dev x11proto-xext-dev x11proto-xf86vidmode-dev x11proto-xinerama-dev xorg-sgml-doctools xtrans-dev zlib1g-dev 建议安装: blt-demo codeblocks eclipse ninja-build dh-make gazebo7-doc gfortran-multilib gfortran-doc gfortran-5-multilib gfortran-5-doc libgfortran3-dbg graphviz-doc ksensors apache2 | lighttpd | httpd krb5-doc liblapack-doc-man liblapack-doc libbluray-bdj libboost-doc libboost1.58-doc gccxml libmpfrc++-dev libntl-dev xsltproc doxygen docbook-xml docbook-xsl default-jdk fop libcairo2-doc libbullet2-dev libbullet2 firmware-crystalhd libcurl4-doc libcurl3-dbg libidn11-dev libkrb5-dev librtmp-dev libeigen3-doc libmrpt-dev libgdal-doc libglib2.0-doc krb5-user libgtk2.0-doc libgts-doc libhdf4-doc hdf4-tools libnetcdf4 libhdf5-doc libhwloc-contrib-plugins libice-doc icu-doc libjs-jquery-ui-docs liblog4cxx-doc libtool-doc liblzma-doc netcdf-bin netcdf-doc libmyodbc odbc-postgresql tdsodbc unixodbc-bin ogdi-bin ogre-1.9-doc libogre-1.9.0v5-dbg opennmpi-doc openni-doc libpango1.0-doc libpcl-doc libpoco-doc libpococrypto9v5-dbg libpocodata9v5-dbg libpocofoundation9v5-dbg libpocomysql9v5-dbg libpoconet9v5-dbg libpoconetssl9v5-dbg libpocoodbc9v5-dbg libpocosqlite9v5-dbg libpocoutil9v5-dbg libpocoxml9v5-dbg libpocozip9v5-dbg postgresql-doc-9.5 firebird-dev libsqlite0-dev qt4-dev-tools qt4-doc lksctp-tools libsm-doc spacenavd sqlite3-doc tbb-examples libtbb-doc libtinyxml-doc autoconf automaken gcj-jdk vtk6-doc vtk6-examples java-virtual-machine libxcb-doc libxerces-c-doc libxext-doc libxt-doc opencl-icd openmpi-checkpoint libmail-box-perl python-crypto-dbg python-crypto-doc python-cryptography-doc python-cryptography-vectors texlive-latex-recommended texlive-latex-base texlive-lang-french fonts-linuxlibertine | ttf-linux-libertine python-enum34-doc python-gtk2-doc python-gobject-2-dbg dvipng ffmpeg inkscape ipython python-cairocffi python-configobj python-excelerator python-gobject python-matplotlib-doc python-qt4 python-scipy python-tornado python-traits texlive-extra-utils texlive-latex-extra ttf-staypuft python-coverage python-nose-doc python-numpy-dbg python-numpy-doc libgle3 python-openssl-doc python-openssl-dbg python-pam-dbg python-pil-doc python-pil-dbg python-psutil-doc python-pyqt5-dbg python-setuptools-doc python-sip-doc tix python-tk-dbg python-twisted-bin-dbg python-qt3 python-txaio-doc mayavi2 ri ruby-dev bundler sbcl-doc sbcl-source slime gnome-icon-theme kdelibs-data tcl-doc tcl8.6-doc tk-doc tk8.6-doc libfglrx-amdxvba1 下列【新】软件包将被安装: autotools-dev binfmt-support blt bzip2-doc cmake cmake-data comerr-dev curl debhelper dh-strip-nondeterminism docutils-common docutils-doc fltk1.3-doc fluid fonts-lato fonts-lyx freeglut3 freeglut3-dev gazebo7 gazebo7-common gazebo7-plugin-base gfortran gfortran-5 gir1.2-gtk-2.0 google-mock graphviz hddtemp hdf5-helpers i965-va-driver icu-devtools javascript-common krb5-multidev libaacs0 libaec-dev libaec0 libapr1 libapr1-dev libaprutil1 libaprutil1-dev libarmadillo6 libarpack2 libassimp-dev libassimp3v5 libatk1.0-dev libavcodec-dev libavcodec-ffmpeg56 libavformat-dev libavformat-ffmpeg56 libavutil-dev libavutil-ffmpeg54 libbdplus0 libblas-common libblas-dev libblas3 libbluray1 libboost-all-dev libboost-atomic-dev libboost-atomic1.58-dev libboost-atomic1.58.0 libboost-chrono-dev libboost-chrono1.58-dev libboost-chrono1.58.0 libboost-context-dev libboost-context1.58-dev libboost-context1.58.0 libboost-coroutine-dev libboost-coroutine1.58-dev libboost-coroutine1.58.0 libboost-date-time-dev libboost-date-time1.58-dev libboost-dev libboost-exception-dev libboost-exception1.58-dev libboost-filesystem-dev libboost-filesystem1.58-dev libboost-graph-dev libboost-graph-parallel-dev libboost-graph-parallel1.58-dev libboost-graph-parallel1.58.0 libboost-graph1.58-dev libboost-graph1.58.0 libboost-iostreams-dev libboost-iostreams1.58-dev libboost-locale-dev libboost-locale1.58-dev libboost-locale1.58.0 libboost-log-dev libboost-log1.58-dev libboost-log1.58.0 libboost-math-dev libboost-math1.58-dev libboost-math1.58.0 libboost-mpi-dev libboost-mpi-python-dev libboost-mpi-python1.58-dev libboost-mpi-python1.58.0 libboost-mpi1.58-dev libboost-mpi1.58.0 libboost-program-options-dev libboost-program-options1.58-dev libboost-program-options1.58.0 libboost-python-dev libboost-python1.58-dev libboost-python1.58.0 libboost-random-dev libboost-random1.58-dev libboost-random1.58.0 libboost-regex-dev libboost-regex1.58-dev libboost-regex1.58.0 libboost-serialization-dev libboost-serialization1.58-dev libboost-serialization1.58.0 libboost-signals-dev libboost-signals1.58-dev libboost-signals1.58.0 libboost-system-dev libboost-system1.58-dev libboost-test-dev libboost-test1.58-dev libboost-test1.58.0 libboost-thread-dev libboost-thread1.58-dev libboost-thread1.58.0 libboost-timer-dev libboost-timer1.58-dev libboost-timer1.58.0 libboost-tools-dev libboost-wave-dev libboost-wave1.58-dev libboost-wave1.58.0 libboost1.58-dev libboost1.58-tools-dev libbulletcollision2.83.6 libbulletdynamics2.83.6 libbz2-dev libcairo-script-interpreter2 libcairo2-dev libcdt5 libcgraph6 libcollada-dom2.4-dp-dev libcollada-dom2.4-dp0 libconsole-bridge-dev libconsole-bridge0.2v5 libcrystalhd3 libcurl4-openssl-dev libdap-dev libdap17v5 libdapclient6v5 libdapserver7v5 libdrm-dev libegl1-mesa-dev libeigen3-dev libepsilon1 libexpat1-dev libfile-stripnondeterminism-perl libflann-dev libflann1.8 libfltk-cairo1.3 libfltk-forms1.3 libfltk-gl1.3 libfltk-images1.3 libfltk1.3 libfltk1.3-dev libfontconfig1-dev libfreeimage-dev libfreeimage3 libfreetype6-dev libfreexl1 libgazebo7 libgazebo7-dev libgdal-dev libgdal1i libgdk-pixbuf2.0-dev libgeos-3.5.0 libgeos-c1v5 libgeos-dev libgfortran-5-dev libgfortran3 libgif-dev libgif7 libgl1-mesa-dev libgl2ps-dev libgl2ps0 libglade2-0 libgles2-mesa libgles2-mesa-dev libglib2.0-dev libglu1-mesa-dev libgme0 libgsm1 libgssrpc4 libgtest-dev libgtk2.0-dev libgts-0.7-5 libgts-bin libgts-dev libgvc6 libgvpr2 libharfbuzz-dev libharfbuzz-gobject0 libhdf4-0-alt libhdf4-alt-dev libhdf5-10 libhdf5-cpp-11 libhdf5-dev libhdf5-mpi-dev libhdf5-openmpi-10 libhdf5-openmpi-dev libhwloc-dev libhwloc-plugins libhwloc5 libibverbs-dev libibverbs1 libice-dev libicu-dev libignition-math2 libignition-math2-dev libinput-dev libjasper-dev libjbig-dev libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev libjs-jquery libjs-jquery-ui libjs-sphinxdoc libjs-underscore libjsoncpp-dev libjsoncpp1 libjxr0 libkadm5clnt-mit9 libkadm5srv-mit9 libkdb5-8 libkmlbase1 libkmldom1 libkmlengine1 liblapack-dev liblapack3 libldap2-dev liblinearmath2.83.6 liblog4cxx-dev liblog4cxx10-dev liblog4cxx10v5 libltdl-dev liblz4-dev liblzma-dev libmail-sendmail-perl libminizip1 libmirclient-dev libmircommon-dev libmircookie-dev libmircookie2 libmircore-dev libmodplug1 libmp3lame0 libmysqlclient-dev libmysqlclient20 libnetcdf-c++4 libnetcdf-cxx-legacy-dev libnetcdf-dev libnetcdf11 libnuma-dev libodbc1 libogdi3.2 libogg-dev libogre-1.9-dev libogre-1.9.0v5 libopenjp2-7 libopenjpeg5 libopenmpi-dev libopenmpi1.10 libopenni-dev libopenni-sensor-pointclouds0 libopenni0 libpango1.0-dev libpathplan4 libpcl-apps1.7 libpcl-common1.7 libpcl-dev libpcl-features1.7 libpcl-filters1.7 libpcl-io1.7 libpcl-kdtree1.7 libpcl-keypoints1.7 libpcl-octree1.7 libpcl-outofcore1.7 libpcl-people1.7 libpcl-recognition1.7 libpcl-registration1.7 libpcl-sample-consensus1.7 libpcl-search1.7 libpcl-segmentation1.7 libpcl-surface1.7 libpcl-tracking1.7 libpcl-visualization1.7 libpcl1.7 libpcre3-dev libpcre32-3 libpcrecpp0v5 libpixman-1-dev libpng12-dev libpoco-dev libpococrypto9v5 libpocodata9v5 libpocofoundation9v5 libpocomysql9v5 libpoconet9v5 libpoconetssl9v5 libpocoodbc9v5 libpocosqlite9v5 libpocoutil9v5 libpocoxml9v5 libpocozip9v5 libpq-dev libpq5 libproj9 libprotobuf-dev libprotoc-dev libprotoc9v5 libpthread-stubs0-dev libpyside-py3-2.0 libpyside2-dev libpyside2.0 libpython-dev libpython2.7-dev libqgsttools-p1 libqhull-dev libqhull7 libqt4-designer libqt4-dev libqt4-dev-bin libqt4-help libqt4-opengl libqt4-opengl-dev libqt4-qt3support libqt4-scripttools libqt4-svg libqt4-test libqt5clucene5 libqt5concurrent5 libqt5designer5 libqt5designercomponents5 libqt5help5 libqt5multimediaquick-p5 libqt5multimediawidgets5 libqt5opengl5-dev libqt5quickparticles5 libqt5script5 libqt5scripttools5 libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5 libqt5x11extras5-dev libqt5xmlpatterns5 libqt5xmlpatterns5-dev libqt5xmlpatterns5-private-dev libqtwebkit-dev libqtwebkit4 libruby2.3 libschroedinger-1.0-0 libsctp-dev libsctp1 libsdformat4 libsdformat4-dev libshiboken-py3-2.0 libshiboken2-dev libshiboken2.0 libshine3 libsimbody-dev libsimbody3.5v5 libsm-dev libsnappy1v5 libsoxr0 libspatialite-dev libspatialite7 libspnav0 libsqlite3-dev libssh-gcrypt-4 libssl-dev libssl-doc libsuperlu4 libswresample-dev libswresample-ffmpeg1 libswscale-dev libswscale-ffmpeg3 libsys-hostname-long-perl libsz2 libtar-dev libtar0 libtbb-dev libtbb2 libtheora-dev libtiff5-dev libtiffxx5 libtinyxml-dev libtinyxml2-2v5 libtinyxml2-dev libtool libtwolame0 libudev-dev liburdfdom-dev liburdfdom-headers-dev liburdfdom-model-state0.4 liburdfdom-model0.4 liburdfdom-sensor0.4 liburdfdom-tools liburdfdom-world0.4 liburiparser1 libusb-1.0-0-dev libusb-1.0-doc libva1 libvtk6-dev libvtk6-java libvtk6-qt-dev libvtk6.2 libvtk6.2-qt libwayland-bin libwayland-dev libwebp-dev libwxbase3.0-0v5 libwxgtk3.0-0v5 libx11-dev libx11-doc libx11-xcb-dev libx264-148 libx265-79 libxau-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-shape0-dev libxcb-shm0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb1-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxerces-c-dev libxerces-c3.1 libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev libxkbcommon-dev libxml2-dev libxml2-utils libxmu-dev libxmu-headers libxrandr-dev libxrender-dev libxshmfence-dev libxss-dev libxt-dev libxvidcore4 libxxf86vm-dev libyaml-cpp-dev libyaml-cpp0.5v5 libzvbi-common libzvbi0 libzzip-0-13 mesa-common-dev mesa-va-drivers mpi-default-bin mpi-default-dev mysql-common ocl-icd-libopencl1 odbcinst odbcinst1debian2 openmpi-bin openmpi-common openni-utils po-debconf proj-bin proj-data pyqt5-dev python-attr python-autobahn python-cairo python-catkin-pkg python-catkin-pkg-modules python-cffi-backend python-chardet python-concurrent.futures python-crypto python-cryptography python-cycler python-dateutil python-defusedxml python-dev python-docutils python-ecdsa python-empy python-enum34 python-glade2 python-gobject-2 python-gtk2 python-idna python-imaging python-ipaddress python-lz4 python-matplotlib python-matplotlib-data python-mpi4py python-msgpack python-netifaces python-nose python-numpy python-opengl python-openssl python-pam python-paramiko python-pil python-pkg-resources python-psutil python-pyasn1 python-pyasn1-modules python-pydot python-pygments python-pyparsing python-pyqt5 python-pyqt5.qtopengl python-pyqt5.qtsvg python-pyqt5.qtwebkit python-pyside2 python-pyside2.qtconcurrent python-pyside2.qtcore python-pyside2.qtgui python-pyside2.qthelp python-pyside2.qtnetwork python-pyside2.qtprintsupport python-pyside2.qtqml python-pyside2.qtquick python-pyside2.qtquickwidgets python-pyside2.qtscript python-pyside2.qtsql python-pyside2.qtsvg python-pyside2.qttest python-pyside2.qtuitools python-pyside2.qtwebkit python-pyside2.qtwebkitwidgets python-pyside2.qtwidgets python-pyside2.qtx11extras python-pyside2.qtxml python-roman python-rosdep python-rosdistro python-rosdistro-modules python-rospkg python-rospkg-modules python-serial python-service-identity python-setuptools python-sip python-sip-dev python-six python-snappy python-tk python-trollius python-twisted python-twisted-bin python-twisted-core python-txaio python-tz python-vtk6 python-wxgtk3.0 python-wxtools python-wxversion python-yaml python-zope.interface python2.7-dev qt4-linguist-tools qt4-qmake qt5-qmake qtbase5-dev qtbase5-dev-tools qtbase5-private-dev qtdeclarative5-dev qtdeclarative5-private-dev qtmultimedia5-dev qtscript5-dev qtscript5-private-dev qttools5-dev qttools5-dev-tools qttools5-private-dev rake ros-kinetic-actionlib ros-kinetic-actionlib-msgs ros-kinetic-actionlib-tutorials ros-kinetic-angles ros-kinetic-bond ros-kinetic-bond-core ros-kinetic-bondcpp ros-kinetic-bondpy ros-kinetic-camera-calibration ros-kinetic-camera-calibration-parsers ros-kinetic-camera-info-manager ros-kinetic-catkin ros-kinetic-class-loader ros-kinetic-cmake-modules ros-kinetic-collada-parser ros-kinetic-collada-urdf ros-kinetic-common-msgs ros-kinetic-common-tutorials ros-kinetic-compressed-depth-image-transport ros-kinetic-compressed-image-transport ros-kinetic-control-msgs ros-kinetic-cpp-common ros-kinetic-cv-bridge ros-kinetic-depth-image-proc ros-kinetic-desktop ros-kinetic-desktop-full ros-kinetic-diagnostic-aggregator ros-kinetic-diagnostic-analysis ros-kinetic-diagnostic-common-diagnostics ros-kinetic-diagnostic-msgs ros-kinetic-diagnostic-updater ros-kinetic-diagnostics ros-kinetic-dynamic-reconfigure ros-kinetic-eigen-conversions ros-kinetic-eigen-stl-containers ros-kinetic-executive-smach ros-kinetic-filters ros-kinetic-gazebo-dev ros-kinetic-gazebo-msgs ros-kinetic-gazebo-plugins ros-kinetic-gazebo-ros ros-kinetic-gazebo-ros-pkgs ros-kinetic-gencpp ros-kinetic-geneus ros-kinetic-genlisp ros-kinetic-genmsg ros-kinetic-gennodejs ros-kinetic-genpy ros-kinetic-geometric-shapes ros-kinetic-geometry ros-kinetic-geometry-msgs ros-kinetic-geometry-tutorials ros-kinetic-gl-dependency ros-kinetic-image-common ros-kinetic-image-geometry ros-kinetic-image-pipeline ros-kinetic-image-proc ros-kinetic-image-publisher ros-kinetic-image-rotate ros-kinetic-image-transport ros-kinetic-image-transport-plugins ros-kinetic-image-view ros-kinetic-interactive-marker-tutorials ros-kinetic-interactive-markers ros-kinetic-joint-state-publisher ros-kinetic-kdl-conversions ros-kinetic-kdl-parser ros-kinetic-laser-assembler ros-kinetic-laser-filters ros-kinetic-laser-geometry ros-kinetic-laser-pipeline ros-kinetic-librviz-tutorial ros-kinetic-map-msgs ros-kinetic-media-export ros-kinetic-message-filters ros-kinetic-message-generation ros-kinetic-message-runtime ros-kinetic-mk ros-kinetic-nav-msgs ros-kinetic-nodelet ros-kinetic-nodelet-core ros-kinetic-nodelet-topic-tools ros-kinetic-nodelet-tutorial-math ros-kinetic-octomap ros-kinetic-opencv3 ros-kinetic-orocos-kdl ros-kinetic-pcl-conversions ros-kinetic-pcl-msgs ros-kinetic-pcl-ros ros-kinetic-perception ros-kinetic-perception-pcl ros-kinetic-pluginlib ros-kinetic-pluginlib-tutorials ros-kinetic-polled-camera ros-kinetic-python-orocos-kdl ros-kinetic-python-qt-binding ros-kinetic-qt-dotgraph ros-kinetic-qt-gui ros-kinetic-qt-gui-cpp ros-kinetic-qt-gui-py-common ros-kinetic-qwt-dependency ros-kinetic-random-numbers ros-kinetic-resource-retriever ros-kinetic-robot ros-kinetic-robot-model ros-kinetic-robot-state-publisher ros-kinetic-ros ros-kinetic-ros-base ros-kinetic-ros-comm ros-kinetic-ros-core ros-kinetic-ros-environment ros-kinetic-ros-tutorials ros-kinetic-rosbag ros-kinetic-rosbag-migration-rule ros-kinetic-rosbag-storage ros-kinetic-rosbash ros-kinetic-rosboost-cfg ros-kinetic-rosbuild ros-kinetic-rosclean ros-kinetic-rosconsole ros-kinetic-rosconsole-bridge ros-kinetic-roscpp ros-kinetic-roscpp-core ros-kinetic-roscpp-serialization ros-kinetic-roscpp-traits ros-kinetic-roscpp-tutorials ros-kinetic-roscreate ros-kinetic-rosgraph ros-kinetic-rosgraph-msgs ros-kinetic-roslang ros-kinetic-roslaunch ros-kinetic-roslib ros-kinetic-roslint ros-kinetic-roslisp ros-kinetic-roslz4 ros-kinetic-rosmake ros-kinetic-rosmaster ros-kinetic-rosmsg ros-kinetic-rosnode ros-kinetic-rosout ros-kinetic-rospack ros-kinetic-rosparam ros-kinetic-rospy ros-kinetic-rospy-tutorials ros-kinetic-rosservice ros-kinetic-rostest ros-kinetic-rostime ros-kinetic-rostopic ros-kinetic-rosunit ros-kinetic-roswtf ros-kinetic-rqt-action ros-kinetic-rqt-bag ros-kinetic-rqt-bag-plugins ros-kinetic-rqt-common-plugins ros-kinetic-rqt-console ros-kinetic-rqt-dep ros-kinetic-rqt-graph ros-kinetic-rqt-gui ros-kinetic-rqt-gui-cpp ros-kinetic-rqt-gui-py ros-kinetic-rqt-image-view ros-kinetic-rqt-launch ros-kinetic-rqt-logger-level ros-kinetic-rqt-moveit ros-kinetic-rqt-msg ros-kinetic-rqt-nav-view ros-kinetic-rqt-plot ros-kinetic-rqt-pose-view ros-kinetic-rqt-publisher ros-kinetic-rqt-py-common ros-kinetic-rqt-py-console ros-kinetic-rqt-reconfigure ros-kinetic-rqt-robot-dashboard ros-kinetic-rqt-robot-monitor ros-kinetic-rqt-robot-plugins ros-kinetic-rqt-robot-steering ros-kinetic-rqt-runtime-monitor ros-kinetic-rqt-rviz ros-kinetic-rqt-service-caller ros-kinetic-rqt-shell ros-kinetic-rqt-srv ros-kinetic-rqt-tf-tree ros-kinetic-rqt-top ros-kinetic-rqt-topic ros-kinetic-rqt-web ros-kinetic-rviz ros-kinetic-rviz-plugin-tutorials ros-kinetic-rviz-python-tutorial ros-kinetic-self-test ros-kinetic-sensor-msgs ros-kinetic-shape-msgs ros-kinetic-simulators ros-kinetic-smach ros-kinetic-smach-msgs ros-kinetic-smach-ros ros-kinetic-smclib ros-kinetic-stage ros-kinetic-stage-ros ros-kinetic-std-msgs ros-kinetic-std-srvs ros-kinetic-stereo-image-proc ros-kinetic-stereo-msgs ros-kinetic-tf ros-kinetic-tf-conversions ros-kinetic-tf2 ros-kinetic-tf2-eigen ros-kinetic-tf2-geometry-msgs ros-kinetic-tf2-kdl ros-kinetic-tf2-msgs ros-kinetic-tf2-py ros-kinetic-tf2-ros ros-kinetic-theora-image-transport ros-kinetic-topic-tools ros-kinetic-trajectory-msgs ros-kinetic-turtle-actionlib ros-kinetic-turtle-tf ros-kinetic-turtle-tf2 ros-kinetic-turtlesim ros-kinetic-urdf ros-kinetic-urdf-parser-plugin ros-kinetic-urdf-tutorial ros-kinetic-vision-opencv ros-kinetic-visualization-marker-tutorials ros-kinetic-visualization-msgs ros-kinetic-visualization-tutorials ros-kinetic-viz ros-kinetic-webkit-dependency ros-kinetic-xacro ros-kinetic-xmlrpcpp ruby ruby-did-you-mean ruby-minitest ruby-net-telnet ruby-power-assert ruby-test-unit ruby2.3 rubygems-integration sbcl sdformat-sdf shiboken2 sip-dev tango-icon-theme tcl-dev tcl-vtk6 tcl8.6-dev tk-dev tk8.6-blt2.5 tk8.6-dev ttf-bitstream-vera ttf-dejavu-core ttf-liberation unixodbc unixodbc-dev uuid-dev va-driver-all vtk6 x11proto-composite-dev x11proto-core-dev x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev x11proto-gl-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev x11proto-render-dev x11proto-scrnsaver-dev x11proto-xext-dev x11proto-xf86vidmode-dev x11proto-xinerama-dev xorg-sgml-doctools xtrans-dev zlib1g-dev 升级了 0 个软件包,新安装了 865 个软件包,要卸载 0 个软件包,有 3 个软件包未被升级。 需要下载 493 MB 的归档。 解压缩后会消耗 2,508 MB 的额外空间。 您希望继续执行吗? [Y/n] y |
如果想安装其他ROS功能包,可以使用apt-cache命令搜索ros-kinetic开头的所有功能包。apt-cache search ros-kinetic
如果想安装个别功能包,请使用如下命令。
sudo apt-get install ros-kinetic-[功能包名称]
初始化rosdep
sudo rosdep init
sudo apt-get python-wstool
rosdep update
(8)配置环境 注意英文引号
echo “source /opt/ros/kinetic/setup.bash” >> ~/.bashrc
source ~/.bashrc
(9)安装rosinstall 这是安装ROS各种功能包的程序。很有用的工具,务必安装
sudo apt-get install python-rosinstall
利用shell脚本的一键安装——没有研究使用
git clone https://github.com/stefantasy/auto_install_ros.git
./auto_install_ros/autoInstallROS.sh
shell脚本的作者 Author: www.corvin.cn ,文件 autoInstallROS.sh
---------------------
作者:stefantasy
来源:CSDN
原文:https://blog.csdn.net/stefan1992/article/details/79358960
版权声明:本文为博主原创文章,转载请附上博文链接!
测试
在终端操作小乌龟如下:【ctrl+T】
1. 【终端1】打开一个终端,必须首先运行roscore命令,回车;
2. roscore终端的窗口不关闭,【终端2】打开一个新的终端,输入命令:rosrun turtlesim turtlesim_node,回车;(小乌龟现身)
3. 再打开第三个终端【终端3】,输入:rosrun turtlesim turtle_teleop_key 回车。//当用上下左右四个箭头操作小乌龟前,必须把鼠标放在【终端3】含有命令“rosrun turtlesim turtle_teleop_key”的终端上。
---------------------
作者:迷途中的前进
来源:CSDN
原文:https://blog.csdn.net/ding977921830/article/details/69500254
版权声明:本文为博主原创文章,转载请附上博文链接!
4.再打开一个Terminal,【终端4】输入下诉命令,可以看到当前ROS Nodes 以及Topic等图形展示。
rosrun rqt_graph rqt_graph
三、搭建ROS开发环境
1、加载环境设置文件
里面定义着相关的环境变量
source /opt/ros/kinetic/setup.bash
2、创建并初始化工作目录
新版本ROS使用名为catkin的工具来构建系统,为了使用它需要创建并初始化catkin工作目录。
$ mkdir -p ~/catkin_ws/src
$ cd ~/catkin_ws/src
$ catkin_init_workspace
Creating symlink "/home/wlzxzq/catkin_ws/src/CMakeLists.txt" pointing to "/opt/ros/kinetic/share/catkin/cmake/toplevel.cmake"
在所创建的catkin工作目录,使用catkin_make命令来构建。
$ cd ~/catkin_ws/
$ catkin_make
Base path: /home/wlzxzq/catkin_ws
Source space: /home/wlzxzq/catkin_ws/src
Build space: /home/wlzxzq/catkin_ws/build
Devel space: /home/wlzxzq/catkin_ws/devel
Install space: /home/wlzxzq/catkin_ws/install
####
#### Running command: "cmake /home/wlzxzq/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/wlzxzq/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/wlzxzq/catkin_ws/install -G Unix Makefiles" in "/home/wlzxzq/catkin_ws/build"
####
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CATKIN_DEVEL_PREFIX: /home/wlzxzq/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/kinetic
-- This workspace overlays: /opt/ros/kinetic
-- Found PythonInterp: /usr/bin/python (found version "2.7.12")
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/wlzxzq/catkin_ws/build/test_results
-- Found gmock sources under '/usr/src/gmock': gmock will be built
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found gtest sources under '/usr/src/gmock': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.18
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- Configuring done
-- Generating done
-- Build files have been written to: /home/wlzxzq/catkin_ws/build
####
#### Running command: "make -j8 -l8" in "/home/wlzxzq/catkin_ws/build"
####
加载与catkin构建系统相关的环境文件。
$ source ~/catkin_ws/devel/setup.bash
3、ROS的配置
为了简化操作,使其每次打开终端自动读入配置文件,配置ROS网络,并简化为快捷命令。
使用gedit打开bashrc文件。
$ gedit ~/.bashrc
打开后不要修改其他设置,移动到最底部添加以下内容(xxx.xxx.xxx.xxx是用户的IP地址,会根据所连网络改变,使用ifconfig查看)。输入后,保存更改并退出gedit。注意:以下文本等号两端一定不要有空格!!!
# Set ROS Kinetic
source /opt/ros/kinetic/setup.bash
source ~/catkin_ws/devel/setup.bash
# Set ROS Network
export ROS_HOSTNAME=xxx.xxx.xxx.xxx
export ROS_MASTER_URI=http://${ROS_HOSTNAME}:11311
# Set ROS alias command
alias cw='cd ~/catkin_ws'
alias cs='cd ~/catkin_ws/src'
alias cm='cd ~/catkin_ws && catkin_make'
输入以下命令,使更改生效。
$ source ~/.bashrc
如果用户在一台PC上运行所有功能包,则可以指定localhost而不是特定IP。第二部分改为:
# Set ROS Network
export ROS_HOSTNAME=localhost
export ROS_MASTER_URI=http://localhost:11311
========安装roboware=======================
1、为了支持Python调试功能,需要安装pylint:
$ sudo apt-get install python-pip
$ sudo python -m pip install pylint
2、为了获得更好的代码阅读体验,自动格式化整理代码,需要安装clang-format:
$ sudo apt-get install clang-format-3.8
3、接下来开始安装:
$ cd ~/下载/
$ sudo dpkg -i roboware-studio_1.1.0-1514335284_amd64.deb
---------------------
作者:嵙杰
来源:CSDN
原文:https://blog.csdn.net/lixujie666/article/details/80139112
版权声明:本文为博主原创文章,转载请附上博文链接!
上面借鉴了很多朋友的内容,再此感谢!!!
安装完成后,直接在终端输入$ roboware-studio敲回车,软件就自动打开了。
RoboWare Studio是基于微软开源的Visual Studio Code内核开发的,这个界面可以说是跟VSCode非常像了。为了方便以后使用,我们可以右键将其锁定到启动器。
5、有些同学打开软件后可能会提示git不是最新版本,依次执行下面的命令即可更新至最新版:
$ git --version
$ sudo add-apt-repository ppa:git-core/ppa
$ sudo apt-get update
$ sudo apt-get install git
$ git --version
OK!现在我们可以打开一个ROS工作区,然后再打开一个源码文件。当我们想对代码进行自动排版时,可以使用Ctrl+Shift+P,输入“format”回车,或者使用快捷键Ctrl+Shift+I,或者直接在代码区右键点击“Format Document”。但是刚才明明已经事先安装了 clang-format-3.8,它却提示“clang-format”命令不可用:
原因这里不解释了,解决办法:
1 $ whereis clang-format-3
clang-format-3: /usr/bin/clang-format-3.8
2 $ sudo ln -s /usr/bin/clang-format-3.8 /usr/bin/clang-format
这样应该就可以使用了,如果还提示不可用就把软件关掉重启!接下来开始愉快地使用 RoboWare Studio 吧 ^_^