1234567891011121314151617 |
- echo "nvidia" | sudo -S 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'
- echo "nvidia" | sudo -S apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
- echo "nvidia" | sudo -S apt-get update
- echo "nvidia" | sudo -S apt-get install ros-melodic-desktop-full
- echo "nvidia" | sudo -S apt-get install python-rosinstall python-rosinstall-generator python-wstool build-essential
- echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
- source ~/.bashrc
- echo "nvidia" | sudo -S apt-get install python-rosdep
- echo "nvidia" | sudo -S pip3 install rosdepc
- #echo "nvidia" | sudo -S sed -i '311i url="https://ghproxy.com/"+url' /usr/lib/python2.7/dist-packages/rosdep2/sources_list.py
- #echo "nvidia" | sudo -S sed -i '204i gbpdistro_url="https://ghproxy.com/"+gbpdistro_url' /usr/lib/python2.7/dist-packages/rosdep2/gbpdistro_support.py
- #echo "nvidia" | sudo -S find . -name '*.py' |sed -i "s/https\:\/\/raw\.githubusercontent\.com/https\:\/\/ghproxy\.com\/https\:\/\/raw\.githubusercontent\.com/g" \
- #`xargs -t grep "https://raw.githubusercontent.com" -rl`
- echo "nvidia" | sudo -S rosdepc init
- rosdepc update
|