大家好,又见面了,我是你们的朋友全栈君。
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
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://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
sudo apt update
sudo apt install ros-melodic-desktop-full
sudo apt install ros-noetic-desktop-full
sudo rosdep init
sudo apt install python-rosdep2
sudo apt install python3-rosdep2
sudo gedit /etc/hosts
199.232.28.133 raw.githubusercontent.com
sudo rm /etc/ros/rosdep/sources.list.d/20-default.list
rosdep update
sudo su root
sudo apt-get install vim
sudo vim /usr/lib/python2.7/dist-packages/rosdep2/gbpdistro_support.py
sudo vim /usr/lib/python2.7/dist-packages/rosdep2/sources_list.py
sudo vim /usr/lib/python2.7/dist-packages/rosdep2/rep3.py
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc
source ~/.bashrc
sudo apt install python-rosinstall python-rosinstall-generator python-wstool build-essential
sudo apt install python3-rosinstall python3-rosinstall-generator python3-wstool
roscore
sudo apt install ros-noetic-desktop-full
rosrun turtlesim turtlesim_node
rosrun turtlesim turtle_teleop_key
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/148877.html原文链接:https://javaforall.cn