When catkin_make turtlebot3_simulation, it always lead to many errors, such as
These are due to the conflicts between ros and anaconda, and uncomplete installation of kinetic ros and gazebo 9.
sudo apt-get remove ros*
sudo apt list --installed | grep gazebo
sudo apt-get remove gazebo*
sudo apt-get remove ros-kinetic-gazebo*
sudo apt autoremove
rm -rf ~/anaconda3
# delete parts in .bashrc as well
conda install anaconda-clean
anaconda-clean
anaconda-clean --yes
sudo apt-get install virtualenv
virtualenv -p /usr/bin/python3 testenv
source ~/testenv/bin/activate
pip install rospkg
sudo apt-get install ros-kinetic-ros-base # don't install desktop, it will lead to gazebo 7 again.
sudo apt-get install ros-kinetic-gazebo9-ros-pkgs ros-kinetic-gazebo9-ros-control ros-kinetic-gazebo9*
sudo apt-get install ros-kinetic-catkin
sudo apt-get install rviz
sudo apt-get install ros-kinetic-controller-manager ros-kinetic-joint-state-controller ros-kinetic-joint-trajectory-controller ros-kinetic-rqt ros-kinetic-rqt-controller-manager ros-kinetic-rqt-joint-trajectory-controller ros-kinetic-ros-control ros-kinetic-rqt-gui
sudo apt-get install ros-kinetic-rqt-plot ros-kinetic-rqt-graph ros-kinetic-rqt-rviz ros-kinetic-rqt-tf-tree
sudo apt-get install ros-kinetic-gazebo9-ros ros-kinetic-kdl-conversions ros-kinetic-kdl-parser ros-kinetic-forward-command-controller ros-kinetic-tf-conversions ros-kinetic-xacro ros-kinetic-joint-state-publisher ros-kinetic-robot-state-publisher
sudo apt-get install ros-kinetic-ros-control ros-kinetic-ros-controllers
sudo apt-get install libeigen3-dev ros-kinetic-image-view ros-kinetic-parrot-arsdk libprotobuf-dev libprotoc-dev ros-kinetic-joy-teleop ros-kinetic-nav-msgs ros-kinetic-mav-msgs libyaml-cpp-dev ros-kinetic-nodelet ros-kinetic-mav-planning-msgs ros-kinetic-urdf ros-kinetic-image-transport ros-kinetic-roslint ros-kinetic-angles ros-kinetic-cv-bridge ros-kinetic-tf2-geometry-msgs ros-kinetic-xacro ffmpeg libavcodec-dev libavformat-dev libavutil-dev libswscale-dev ros-kinetic-camera-info-manager ros-kinetic-cmake-modules ros-kinetic-gazebo-msgs ros-kinetic-mavros-msgs ros-kinetic-control-toolbox ros-kinetic-mav-msgs ros-kinetic-libmavconn ros-kinetic-mavros ros-kinetic-octomap-msgs ros-kinetic-geographic-msgs ros-kinetic-mavlink ros-kinetic-mavros-extras ros-kinetic-mav-planning-msgs ros-kinetic-joy
cd ~
mkdir -p ros-kinetic-gazebo9-pkgs
cd ros-kinetic-gazebo9-pkgs
git clone -b feature/ros-kinetic-gazebo9-pkgs https://github.com/gsilano/BebopS.git
cd BebopS
chmod 777 gazebo9.sh
./gazebo9.sh
cd ~
sudo rm -rf ros-kinetic-gazebo9-pkgs # delete the folder after the installation