Skip to content

Commit a79da28

Browse files
authored
Merge pull request #593 from jmvega/TurtlebotReceipt
[Issue #592]: Receipt for running Turtlebot2 on ROS Melodic and Ubuntu 18.04
2 parents e96aee1 + 219c276 commit a79da28

File tree

1 file changed

+97
-1
lines changed

1 file changed

+97
-1
lines changed

docs/_pages/installation.md

+97-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Robotics-Academy currently supports **Linux** operating system. These installati
1919

2020
2. *Specific infrastructure*
2121
- Optional, depends on the exercise
22-
- Some exercises require also additional software pieces such as OpenCV, MoveIt!, MavROS, PX4, VisualStates, OpenMotionPlanningLibrary, etc.
22+
- Some exercises require also additional software pieces such as OpenCV, MoveIt!, MavROS, PX4, VisualStates, OpenMotionPlanningLibrary, Turtlebot2, etc.
2323

2424
3. *JdeRobot Academy source code*
2525
- Required
@@ -277,6 +277,102 @@ Install previous dependencies:
277277
source ~/.bashrc
278278
```
279279

280+
## Real Turtlebot2 on ROS Melodic
281+
282+
0. Prerequisites
283+
- ROS Melodic on Ubuntu 18
284+
- Turtlebot2
285+
286+
1. Build Turtlebot2 Workspace
287+
288+
Firstly, `cd` to your catkin workspace.
289+
290+
If you don't have one, `cd` to somewhere you want to create it, and then run the following commands to create one
291+
```bash
292+
mkdir -p src
293+
catkin_make
294+
```
295+
296+
Now run the following command (inside the root of catkin workspace) to build up running environment for Turtlebot2
297+
```bash
298+
curl -sLf https://raw.githubusercontent.com/gaunthan/Turtlebot2-On-Melodic/master/install_basic.sh | bash
299+
catkin_make
300+
```
301+
302+
2. Bring Up Turtlebot2
303+
Now connect a turtlebot2 to the computer. After that, run this command to bring up the Turtlebot2
304+
```bash
305+
source ./devel/setup.bash
306+
roslaunch turtlebot_bringup minimal.launch
307+
```
308+
309+
If nothing wrong, you will hear the Turtlebot2 give out a reminder.
310+
311+
3. Test Turtlebot2
312+
If you want to use keyboard to control it, just run the following command
313+
```bash
314+
source ./devel/setup.bash
315+
roslaunch turtlebot_teleop keyboard_teleop.launch
316+
```
317+
318+
And it will output something like this
319+
320+
```bash
321+
ROS_MASTER_URI=http://localhost:11311
322+
323+
process[turtlebot_teleop_keyboard-1]: started with pid [23757]
324+
325+
Control Your Turtlebot!
326+
---------------------------
327+
Moving around:
328+
u i o
329+
j k l
330+
m , .
331+
332+
q/z : increase/decrease max speeds by 10%
333+
w/x : increase/decrease only linear speed by 10%
334+
e/c : increase/decrease only angular speed by 10%
335+
space key, k : force stop
336+
anything else : stop smoothly
337+
338+
CTRL-C to quit
339+
340+
currently: speed 0.2 turn 1
341+
```
342+
343+
Now you should be able to use keyboard to control your Turtlebot2.
344+
345+
4. Asus Xtion
346+
347+
Install dependencies:
348+
```bash
349+
sudo apt-get install ros-melodic-rgbd-launch ros-melodic-openni2-camera ros-melodic-openni2-launch
350+
sudo apt-get install ros-melodic-rqt ros-melodic-rqt-common-plugins ros-melodic-rqt-robot-plugins
351+
```
352+
353+
Run these commands on three different terminals to test it:
354+
```bash
355+
roscore
356+
```
357+
```bash
358+
roslaunch openni2_launch openni2.launch
359+
```
360+
```bash
361+
rqt
362+
```
363+
364+
In this last application, `rqt`, go to `Plugins` -> `Visualization` -> `Image view` -> `depth/image_raw` to view the camera depth raw data.
365+
366+
5. RPLidar
367+
368+
Just test it! Run these commands on two different terminals:
369+
```bash
370+
roscore
371+
```
372+
```bash
373+
roslaunch rplidar_ros view_rplidar.launch
374+
```
375+
280376
## MoveIt!
281377
282378
# Academy source code

0 commit comments

Comments
 (0)