ubuntu16 安裝ros執行小海龜

2021-08-15 00:15:40 字數 2531 閱讀 1119

映象選擇:

為了保證安裝速度,請選擇國內映象如下:ustc映象

ros kinetic只支援wily(15.10)xenial(16.04)對應核心分別為4.2和4.4,其他版本需要編譯安裝不支援直接deb軟體源安裝,

使用下面命令:

安裝功能包:

~$sudo apt-get install ros-kinetic-package

例如:

查詢在kinetic中可以使用的功能包:

~$apt-cache search ros-kinetic

~$sudo rosdep init

wrote /etc/ros/rosdep/sources.list.d/20-default.list

recommended: please run

rosdep update

~$rosdep update

reading in sources list data from /etc/ros/rosdep/sources.list.d

hit

hit

hit

hit

hit

query rosdistro index

add distro "groovy"

add distro "hydro"

add distro "indigo"

add distro "jade"

add distro "kinetic"

updated cache in /home/relaybot/.ros/rosdep/sources.cache

~$echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc

~$source ~/.bashrc

注意當安裝多個ros發行版,使用kinetic需要用到下面命令:

安裝ros成功後,在beginner tutorials中有乙個簡單的示例程式.

在terminal中執行以下命令: 

$ roscore新開乙個terminal,執行以下命令,開啟小烏龜視窗: 

$ rosrun turtlesim turtlesim_node新開乙個terminal,執行以下命令,開啟烏龜控制視窗,可使用方向鍵控制烏龜運動: 

$ rosrun turtlesim turtle_teleop_key選中控制視窗,按方向鍵,可看到小烏龜視窗中烏龜在運動。

新開乙個terminal,執行以下命令,可以看到ros的圖形化介面,展示結點的關係: 

$ rosrun rqt_graph rqt_graph至此,測試完成,說明ros安裝沒有問題。

Ubuntu16下ROS的安裝

新增ros源 官方源 sudo sh c echo deb lsb release sc main etc apt sources.list.d ros latest.list 中科大源 sudo sh c etc lsb release echo deb lsb release cs main e...

Ubuntu16上Nginx安裝教程

之前了解過一些nginx的知識,只是大概知道它的一些優良特性,如高效能,高併發,負載均衡等等。因為以後工作會用的原因,所以打算徹底的學習一番。為了簡單,就直接使用apt get自動安裝。其中 1.0.2g libuntu4.6 是ssl的版本。這時,安裝的路徑可以不用管,因為在nginx編譯中,不知...

ubuntu16切換hosts軟體安裝

之前用ubuntu切換hosts以為沒有軟體可用,直接用cp來替換hosts檔案,今天網上搜了一下發現乙個軟體和window上用的切hosts功能一樣,而且可以支援linux,mac,windows。軟體效果圖 安裝好後,就可以直接使用。但是圖示顯示問號,解決圖示顯示問號的辦法 1,準備好圖示需要的...