robobuggy / HowToPlayWithTurtles.txt @ master
History | View | Annotate | Download (1.49 KB)
1 | 2afe2054 | Tahm | How To Run Turtlesim |
---|---|---|---|
2 | ===================== |
||
3 | Prereqs: HowToInstall |
||
4 | |||
5 | In this tutorial, you're going to build and play with a fresh cut of |
||
6 | turtlesim. You will become familiar with ROS, and with a framework like |
||
7 | buggysim's. |
||
8 | |||
9 | d006cdc0 | Tahm | 1. Build TurtleSim |
10 | ------------------ |
||
11 | Run: |
||
12 | cd ~/buggyworkspace |
||
13 | catkin_make |
||
14 | 2afe2054 | Tahm | |
15 | d006cdc0 | Tahm | # We have now build the binaries; we will now overlay these on our |
16 | # workspace. |
||
17 | cd ~/buggyworkspace/devel |
||
18 | source setup.bash |
||
19 | 2afe2054 | Tahm | |
20 | 8e58dd0e | Tahm | ---- |
21 | Quick Tip: Whenever you try to tab-complete (for example rosrun turtle<TAB>), and it doesn't show what you want it to, you should source setup.bash again. |
||
22 | ---- |
||
23 | |||
24 | 2afe2054 | Tahm | |
25 | d006cdc0 | Tahm | 2. Run TurtleSim |
26 | ---------------- |
||
27 | |||
28 | We will now run turtlesim. This is, once again, a paraphrasing of the |
||
29 | turtlesim tutorial, that can be found at http://wiki.ros.org/ROS/Tutorials/UnderstandingTopics . |
||
30 | |||
31 | Run: |
||
32 | # Make sure you ran /deve/setup.bash, so the right binaries are run. |
||
33 | # Start up the core service |
||
34 | roscore |
||
35 | |||
36 | # Start up the rostopic viewer. |
||
37 | # This will let you watch as the new nodes come online, and you can see |
||
38 | # what topics and services they offer. |
||
39 | rqt_graph |
||
40 | # (i recommend unhiding all topics, to get a better view) |
||
41 | |||
42 | # In a new terminal |
||
43 | # This command will start |
||
44 | rosrun turtlesim_ref turtlesim_node |
||
45 | |||
46 | # Run some commands to investigate |
||
47 | rosnode list |
||
48 | rosnode info /rosout |
||
49 | |||
50 | # Read from a running topic |
||
51 | rostopic hz /turtle1/pose # see update freq. |
||
52 | rostopic bw /turtle1/pose # see bandwidth |
||
53 | rostopic echo /turtle1/pose |
||
54 | |||
55 |