Make your Turtlebot2 run on ROS Melodic (Ubuntu 18.04).
This project referenced this issue. Thanks to the work of bunchofcoders and ProfJust.
We assume that you have installed ROS Melodic
and the script will install turtlebot in a new workspace ~/turtlebot_ws
.
wget https://raw.githubusercontent.com/UCR-Robotics/Turtlebot2-On-Melodic/master/install_turtlebot.sh
chmod +x install_turtlebot.sh
./install_turtlebot.sh
roslaunch turtlebot_gazebo turtlebot_world.launch
roslaunch turtlebot_bringup minimal.launch
This should work for both Gazebo simulation and real robots.
roslaunch turtlebot_teleop keyboard_teleop.launch
There is a known issue when running Gazebo in Ubuntu 18, which can cause the model spawn service to fail. The error message is [Err] [REST.cc:205] Error in REST request
.
Solution: open the file ~/.ignition/fuel/config.yaml
and replace the url inside from https://api.ignitionfuel.org
to https://api.ignitionrobotics.org
.