A complete recording of this workshop is available at this link: https://youtu.be/et_V55B4W8g
Installation walk-through video available here: https://youtu.be/-_mZusYmJ8o
-
Run command prompt or powershell as administrator.
-
Type
wsl --install -d Ubuntu-18.04and press enter. Windows will download and install the Ubuntu 18.04 WSL system. This process can take a while depending on your internet speed. -
When the process is complete a new window will appear. Wait for the installation to finish, and then follow the instructions to configure a new UNIX user for your WSL install. Select any username or password (does not need to match your windows account).
-
After configuring your new account, you will be presented with a terminal prompt. Type
sudo apt update && sudo apt upgrade -y. Input the password you made in the last step and press enter (you will not see your password appear as you type it). -
Type:
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'and press enter. -
Type:
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -and press enter. Command should return OK. -
Type:
sudo apt update && sudo apt install ros-melodic-desktop-full ros-melodic-turtlebot3 ros-melodic-turtlebot3-simulations ros-melodic-gmapping python-rosdep python-rosinstall python-rosinstall-generator python-wstool build-essential x11-apps gnome-terminal -yand press enter. If you're running Ubuntu 20.04, replace all instances ofmelodicin this command withnoetic. -
Type:
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc && source ~/.bashrcand press enter.
For installing on a Linux computer, open a terminal prompt, start at step 5, and follow the same instructions. If you're using a Raspberry Pi, check out this guide: http://wiki.ros.org/ROSberryPi/Installing%20ROS%20Melodic%20on%20the%20Raspberry%20Pi
The following are the basic commands that are shown in the first demo:
roscore
Usage:
rosrun [package_name] [node_name]
Example:
rosrun turtlesim turtlesim_node
rostopic list
Usage:
rostopic info [topic]
Example:
rostopic info /rosout
Usage:
rosmsg info [msg]
Example:
rosmsg info std_msgs/Bool
Usage:
rostopic pub [topic] [msg_type] [args]
Use -r to publish every 2 seconds
Example"
rostopic pub /testtopic std_msgs/String -- "Hello" -r 2
Usage:
rostopic echo [topic]
Example"
rostopic echo /testtopic
rosrun rqt_graph rqt_graph
Open up a terminal window (on Windows 11 search for 'Ubuntu')
Type: echo "export TURTLEBOT3_MODEL=waffle" >> ~/.bashrc && source ~/.bashrc
(This is to set up the enviornment variables for the robot to use in this example)
Open up 3 more terminal windows (you should now have 4 total)
Arrange them so they take together take 1/4 of the screen (leaving 3/4 for other stuff)
***If you have a small screen you can open up gnome-terminal and open multiple tabs with File -> New Tab instead of multiple windows
Terminal Window 1: roslaunch turtlebot3_gazebo turtlebot3_world.launch
Wait for gazebo to launch and resize it to fit in the top right corner of your screen
Terminal Window 2: roslaunch turtlebot3_teleop turtlebot3_teleop_key.launch
try driving the robot around using the keyboard
Terminal Window 3: roslaunch turtlebot3_gazebo turtlebot3_gazebo_rviz.launch
roslaunch turtlebot3_slam turtlebot3_slam.launch slam_methods:=gmapping