ERROR: cannot download default sources list from: https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list Website may be down.
mkdir -p ~/catkin_ws/src cd ~/catkin_ws/src catkin_init_workspace
cd ~/catkin_ws/ catkin_make
9. 更新环境变量
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
sudo apt install net-tools gedit ~/.bashrc
# Set ROS melodic source /opt/ros/melodic/setup.bash source ~/catkin_ws/devel/setup.bash # Set ROS Network #ifconfig查看ip export ROS_HOSTNAME=192.168.xx.xx 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'