Skip to content

Commit 588e914

Browse files
committed
Add gmapping and rviz to task5
Launch.sh tests that gmapping works in rviz.
1 parent a392740 commit 588e914

File tree

2 files changed

+344
-1
lines changed

2 files changed

+344
-1
lines changed

‎task5/workspace/catkin_ws/launch.sh‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
# a -hold option can be used to keep xterm persistent upon an exception (before -e)
55

66
# House the robot into the world
7-
xterm -e "source devel/setup.bash; roslaunch turtlebot_gazebo turtlebot_world.launch" &
7+
#xterm -e "source devel/setup.bash; roslaunch turtlebot_gazebo turtlebot_world.launch" &
8+
xterm -e "source devel/setup.bash ; roslaunch turtlebot_gazebo turtlebot_world.launch world_file:=worlds/willowgarage.world" &
89
sleep 10
910

1011
# Launch the optional teleop keyboard package to move the robot via keyboard
@@ -13,6 +14,12 @@ sleep 10
1314
xterm -e "source devel/setup.bash; roslaunch turtlebot_teleop keyboard_teleop.launch" &
1415
sleep 5
1516

17+
xterm -e "source devel/setup.bash ; rosrun gmapping slam_gmapping " &
18+
sleep 5
19+
20+
xterm -e "source devel/setup.bash ; rosrun rviz rviz -d src/rvizConfig/myslamconfig.rviz" &
21+
sleep 5
22+
1623
#xterm -e "source devel/setup.bash; roslaunch my_robot mapping.launch" &
1724
#sleep 5
1825

Lines changed: 336 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,336 @@
1+
Panels:
2+
- Class: rviz/Displays
3+
Help Height: 78
4+
Name: Displays
5+
Property Tree Widget:
6+
Expanded:
7+
- /Global Options1
8+
- /Status1
9+
- /Grid1
10+
Splitter Ratio: 0.5
11+
Tree Height: 858
12+
- Class: rviz/Selection
13+
Name: Selection
14+
- Class: rviz/Tool Properties
15+
Expanded:
16+
- /2D Pose Estimate1
17+
- /2D Nav Goal1
18+
- /Publish Point1
19+
Name: Tool Properties
20+
Splitter Ratio: 0.588679016
21+
- Class: rviz/Views
22+
Expanded:
23+
- /Current View1
24+
Name: Views
25+
Splitter Ratio: 0.5
26+
- Class: rviz/Time
27+
Experimental: false
28+
Name: Time
29+
SyncMode: 0
30+
SyncSource: LaserScan
31+
Visualization Manager:
32+
Class: ""
33+
Displays:
34+
- Alpha: 0.5
35+
Cell Size: 1
36+
Class: rviz/Grid
37+
Color: 160; 160; 164
38+
Enabled: true
39+
Line Style:
40+
Line Width: 0.0299999993
41+
Value: Lines
42+
Name: Grid
43+
Normal Cell Count: 0
44+
Offset:
45+
X: 0
46+
Y: 0
47+
Z: 0
48+
Plane: XY
49+
Plane Cell Count: 10
50+
Reference Frame: odom
51+
Value: true
52+
- Alpha: 1
53+
Class: rviz/RobotModel
54+
Collision Enabled: false
55+
Enabled: true
56+
Links:
57+
All Links Enabled: true
58+
Expand Joint Details: false
59+
Expand Link Details: false
60+
Expand Tree: false
61+
Link Tree Style: Links in Alphabetic Order
62+
base_footprint:
63+
Alpha: 1
64+
Show Axes: false
65+
Show Trail: false
66+
base_link:
67+
Alpha: 1
68+
Show Axes: false
69+
Show Trail: false
70+
Value: true
71+
camera_depth_frame:
72+
Alpha: 1
73+
Show Axes: false
74+
Show Trail: false
75+
camera_depth_optical_frame:
76+
Alpha: 1
77+
Show Axes: false
78+
Show Trail: false
79+
camera_link:
80+
Alpha: 1
81+
Show Axes: false
82+
Show Trail: false
83+
Value: true
84+
camera_rgb_frame:
85+
Alpha: 1
86+
Show Axes: false
87+
Show Trail: false
88+
camera_rgb_optical_frame:
89+
Alpha: 1
90+
Show Axes: false
91+
Show Trail: false
92+
caster_back_link:
93+
Alpha: 1
94+
Show Axes: false
95+
Show Trail: false
96+
Value: true
97+
caster_front_link:
98+
Alpha: 1
99+
Show Axes: false
100+
Show Trail: false
101+
Value: true
102+
cliff_sensor_front_link:
103+
Alpha: 1
104+
Show Axes: false
105+
Show Trail: false
106+
cliff_sensor_left_link:
107+
Alpha: 1
108+
Show Axes: false
109+
Show Trail: false
110+
cliff_sensor_right_link:
111+
Alpha: 1
112+
Show Axes: false
113+
Show Trail: false
114+
gyro_link:
115+
Alpha: 1
116+
Show Axes: false
117+
Show Trail: false
118+
mount_asus_xtion_pro_link:
119+
Alpha: 1
120+
Show Axes: false
121+
Show Trail: false
122+
Value: true
123+
plate_bottom_link:
124+
Alpha: 1
125+
Show Axes: false
126+
Show Trail: false
127+
Value: true
128+
plate_middle_link:
129+
Alpha: 1
130+
Show Axes: false
131+
Show Trail: false
132+
Value: true
133+
plate_top_link:
134+
Alpha: 1
135+
Show Axes: false
136+
Show Trail: false
137+
Value: true
138+
pole_bottom_0_link:
139+
Alpha: 1
140+
Show Axes: false
141+
Show Trail: false
142+
Value: true
143+
pole_bottom_1_link:
144+
Alpha: 1
145+
Show Axes: false
146+
Show Trail: false
147+
Value: true
148+
pole_bottom_2_link:
149+
Alpha: 1
150+
Show Axes: false
151+
Show Trail: false
152+
Value: true
153+
pole_bottom_3_link:
154+
Alpha: 1
155+
Show Axes: false
156+
Show Trail: false
157+
Value: true
158+
pole_bottom_4_link:
159+
Alpha: 1
160+
Show Axes: false
161+
Show Trail: false
162+
Value: true
163+
pole_bottom_5_link:
164+
Alpha: 1
165+
Show Axes: false
166+
Show Trail: false
167+
Value: true
168+
pole_kinect_0_link:
169+
Alpha: 1
170+
Show Axes: false
171+
Show Trail: false
172+
Value: true
173+
pole_kinect_1_link:
174+
Alpha: 1
175+
Show Axes: false
176+
Show Trail: false
177+
Value: true
178+
pole_middle_0_link:
179+
Alpha: 1
180+
Show Axes: false
181+
Show Trail: false
182+
Value: true
183+
pole_middle_1_link:
184+
Alpha: 1
185+
Show Axes: false
186+
Show Trail: false
187+
Value: true
188+
pole_middle_2_link:
189+
Alpha: 1
190+
Show Axes: false
191+
Show Trail: false
192+
Value: true
193+
pole_middle_3_link:
194+
Alpha: 1
195+
Show Axes: false
196+
Show Trail: false
197+
Value: true
198+
pole_top_0_link:
199+
Alpha: 1
200+
Show Axes: false
201+
Show Trail: false
202+
Value: true
203+
pole_top_1_link:
204+
Alpha: 1
205+
Show Axes: false
206+
Show Trail: false
207+
Value: true
208+
pole_top_2_link:
209+
Alpha: 1
210+
Show Axes: false
211+
Show Trail: false
212+
Value: true
213+
pole_top_3_link:
214+
Alpha: 1
215+
Show Axes: false
216+
Show Trail: false
217+
Value: true
218+
wheel_left_link:
219+
Alpha: 1
220+
Show Axes: false
221+
Show Trail: false
222+
Value: true
223+
wheel_right_link:
224+
Alpha: 1
225+
Show Axes: false
226+
Show Trail: false
227+
Value: true
228+
Name: RobotModel
229+
Robot Description: robot_description
230+
TF Prefix: ""
231+
Update Interval: 0
232+
Value: true
233+
Visual Enabled: true
234+
- Alpha: 1
235+
Autocompute Intensity Bounds: true
236+
Autocompute Value Bounds:
237+
Max Value: 10
238+
Min Value: -10
239+
Value: true
240+
Axis: Z
241+
Channel Name: intensity
242+
Class: rviz/LaserScan
243+
Color: 255; 255; 255
244+
Color Transformer: Intensity
245+
Decay Time: 0
246+
Enabled: true
247+
Invert Rainbow: false
248+
Max Color: 255; 255; 255
249+
Max Intensity: 4096
250+
Min Color: 0; 0; 0
251+
Min Intensity: 0
252+
Name: LaserScan
253+
Position Transformer: XYZ
254+
Queue Size: 10
255+
Selectable: true
256+
Size (Pixels): 3
257+
Size (m): 0.00999999978
258+
Style: Flat Squares
259+
Topic: /scan
260+
Unreliable: false
261+
Use Fixed Frame: true
262+
Use rainbow: true
263+
Value: true
264+
- Alpha: 0.699999988
265+
Class: rviz/Map
266+
Color Scheme: map
267+
Draw Behind: false
268+
Enabled: true
269+
Name: Map
270+
Topic: /map
271+
Unreliable: false
272+
Use Timestamp: false
273+
Value: true
274+
Enabled: true
275+
Global Options:
276+
Background Color: 48; 48; 48
277+
Default Light: true
278+
Fixed Frame: base_link
279+
Frame Rate: 30
280+
Name: root
281+
Tools:
282+
- Class: rviz/Interact
283+
Hide Inactive Objects: true
284+
- Class: rviz/MoveCamera
285+
- Class: rviz/Select
286+
- Class: rviz/FocusCamera
287+
- Class: rviz/Measure
288+
- Class: rviz/SetInitialPose
289+
Topic: /initialpose
290+
- Class: rviz/SetGoal
291+
Topic: /move_base_simple/goal
292+
- Class: rviz/PublishPoint
293+
Single click: true
294+
Topic: /clicked_point
295+
Value: true
296+
Views:
297+
Current:
298+
Class: rviz/Orbit
299+
Distance: 20.5603065
300+
Enable Stereo Rendering:
301+
Stereo Eye Separation: 0.0599999987
302+
Stereo Focal Distance: 1
303+
Swap Stereo Eyes: false
304+
Value: false
305+
Focal Point:
306+
X: 0
307+
Y: 0
308+
Z: 0
309+
Focal Shape Fixed Size: true
310+
Focal Shape Size: 0.0500000007
311+
Invert Z Axis: false
312+
Name: Current View
313+
Near Clip Distance: 0.00999999978
314+
Pitch: 0.915397942
315+
Target Frame: <Fixed Frame>
316+
Value: Orbit (rviz)
317+
Yaw: 5.45358515
318+
Saved: ~
319+
Window Geometry:
320+
Displays:
321+
collapsed: false
322+
Height: 1146
323+
Hide Left Dock: false
324+
Hide Right Dock: true
325+
QMainWindow State: 000000ff00000000fd000000040000000000000156000003e2fc0200000008fb0000001200530065006c0065006300740069006f006e00000001e10000009b0000005c00fffffffb0000001e0054006f006f006c002000500072006f007000650072007400690065007302000001ed000001df00000185000000a3fb000000120056006900650077007300200054006f006f02000001df000002110000018500000122fb000000200054006f006f006c002000500072006f0070006500720074006900650073003203000002880000011d000002210000017afb000000100044006900730070006c006100790073010000003a000003e2000000c600fffffffb0000002000730065006c0065006300740069006f006e00200062007500660066006500720200000138000000aa0000023a00000294fb00000014005700690064006500530074006500720065006f02000000e6000000d2000003ee0000030bfb0000000c004b0069006e0065006300740200000186000001060000030c00000261000000010000010f000003e2fc0200000003fb0000001e0054006f006f006c002000500072006f00700065007200740069006500730100000041000000780000000000000000fb0000000a00560069006500770073000000003a000003e20000009e00fffffffb0000001200530065006c0065006300740069006f006e010000025a000000b200000000000000000000000200000490000000a9fc0100000001fb0000000a00560069006500770073030000004e00000080000002e10000019700000003000003be0000003efc0100000002fb0000000800540069006d00650100000000000003be0000024400fffffffb0000000800540069006d0065010000000000000450000000000000000000000262000003e200000004000000040000000800000008fc0000000100000002000000010000000a0054006f006f006c00730100000000ffffffff0000000000000000
326+
Selection:
327+
collapsed: false
328+
Time:
329+
collapsed: false
330+
Tool Properties:
331+
collapsed: false
332+
Views:
333+
collapsed: true
334+
Width: 958
335+
X: 0
336+
Y: 0

0 commit comments

Comments
 (0)