[About ROS installation]
Due to the increasingly complex international situation, it has become quite difficult to follow the ROS installation process on the official wiki website. Here I recommend using the script written by the Yuxiang ROS boss for a one-click fool-proof installation:
wget http://fishros.com/install -O fishros && . fishros
[About rosdep failure]
This is an old problem, mainly caused by network reasons. Here is a method to solve it by modifying the software source.
Change the domestic mirror source: modify the foreign mirror source raw.githubusercontent.com to the domestic mirror source gitee.com
1. Directly modify the source code file
(1) The first step
sudo gedit /usr/lib/python2.7/dist-packages/rosdep2/sources_list.py
Original file content:
DEFAULT_SOURCES_LIST_URL = 'https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list'
change to:
DEFAULT_SOURCES_LIST_URL='https://gitee.com/ssonic/rosdistro/raw/master/rosdep/sources.list.d/20-default.list'
(2) The second step
sudo gedit /usr/lib/python2.7/dist-packages/rosdep2/gbpdistro_support.py
Original file content:
FUERTE_GBPDISTRO_URL = 'https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml'
change to:
FUERTE_GBPDISTRO_URL = 'https://gitee.com/ssonic/rosdistro/raw/master/releases/fuerte.yaml'
(3) The third step
sudo gedit /usr/lib/python2.7/dist-packages/rosdep2/rep3.py
Source file content:
REP3_TARGETS_URL = 'https://raw.githubusercontent.com/ros/rosdistro/master/releases/targets.yaml'
change to:
REP3_TARGETS_URL = 'https://gitee.com/ssonic/rosdistro/raw/master/releases/targets.yaml'
(4) Step 4
sudo gedit /usr/lib/python2.7/dist-packages/rosdistro/__init__.py
Original file content:
DEFAULT_INDEX_URL = 'https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml'
change to:
DEFAULT_INDEX_URL = 'https://gitee.com/ssonic/rosdistro/raw/master/index-v4.yaml'
2. After making the changes, execute the command again
sudo rosdep init
Note: If an error occurs, delete the 20-default.list file first
sudo rm /etc/ros/rosdep/sources.list.d/20-default.list
3. Finally execute rosdep update
[Related questions about Gazebo]
(1) Unable to simulate the GPU version of lidar? ---- > Upgrade Gazebo to version 9.4.0
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/gazebo-stable.list'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D2486D2DD83DB69272AFE98867170598AF249743
sudo apt update
sudo apt upgrade
(2)[Err] [REST.cc:205] Error in REST request during startup gazebo
gedit ~/.ignition/fuel/config.yaml
修改这一句:
url: https://api.ignitionfuel.org
为
url: https://api.ignitionrobotics.org