Skip to content

Commit c0e48b8

Browse files
author
Dominik
committed
cleanup merge
1 parent cd45451 commit c0e48b8

15 files changed

+3877
-11
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/build/
22
/devel/
3-
*/ydlidar/**
3+
/ydlidar/
44

55
*.pyc

.gitmodules

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
[submodule "src/teleop_twist_keyboard"]
2-
path = src/teleop_twist_keyboard
3-
url = https://github.com/ros-teleop/teleop_twist_keyboard.git
1+
[submodule "src/ydlidar"]
2+
path = src/ydlidar
3+
url = https://github.com/YDLIDAR/ydlidar_ros.git
4+
branch = X4

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,31 @@ Lidar guided autonomous robot.
1010
* Ydlidar X4
1111
* LiPo 3.7V JST PH 2.0
1212

13+
### Wiring
14+
H-Bridge | Raspberry Pi GPIO
15+
--- | ---:
16+
N1 | 13 (PWM1)
17+
N2 | 19 (PWM1)
18+
N3 | 18 (PWM0)
19+
N4 | 12 (PWM0)
20+
21+
<img alt="Raspi 3 PWM pins" src="doc/raspberry_pi_3_PWM_pins.png" width="50%">
22+
<img alt="H-bridge wiring" src="doc/wiring_hbrige_raspi.jpg" width="50%">
23+
24+
[//]: <> (https://funduino.de/nr-34-motoren-mit-h-bruecke-l298n-ansteuern)
25+
1326
## Setup
1427

1528
* Ubuntu 18.04 LTS
1629
* ROS Melodic
1730
* `$ sudo ./ros_install.sh`
1831

19-
[TF tree](doc/frames.pdf)
32+
![TF tree](doc/frames.pdf)
33+
34+
<img alt="rqt_graph" src="doc/rqt_graph.svg" width="100%">
2035

21-
## Start
2236

37+
## Start robot
2338
```
2439
$ catkin_make
2540
$ source /devel/setup.bash

doc/frames.pdf

3.36 KB
Binary file not shown.

doc/raspberry_pi_3_PWM_pins.png

61.9 KB
Loading

doc/rqt_graph.svg

Lines changed: 3213 additions & 0 deletions
Loading

doc/wiring_hbrige_raspi.jpg

3.46 MB
Loading

ros_install.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
apt-get update &&
2-
apt-get upgrade &&
3-
apt-get install ros-melodic-navigation \
1+
#apt-get update &&
2+
#apt-get upgrade -y &&
3+
apt-get install -y ros-melodic-navigation \
44
ros-melodic-geometry \
5-
ros-melodic-hector-mapping
5+
ros-melodic-hector-mapping \
6+
ros-melodic-teleop-twist-keyboard \
7+
ros-melodic-hector-slam

rviz/rviz.launch

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0"?>
2+
<launch>
3+
<node pkg="rviz" type="rviz" name="rviz" args="-d ~/code/RRRAGV/rviz/rviz.rviz"/>
4+
</launch>

rviz/rviz.rviz

Lines changed: 310 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,310 @@
1+
Panels:
2+
- Class: rviz/Displays
3+
Help Height: 84
4+
Name: Displays
5+
Property Tree Widget:
6+
Expanded:
7+
- /Global Options1
8+
- /Status1
9+
Splitter Ratio: 0.5819209218025208
10+
Tree Height: 706
11+
- Class: rviz/Selection
12+
Name: Selection
13+
- Class: rviz/Tool Properties
14+
Expanded:
15+
- /2D Pose Estimate1
16+
- /2D Nav Goal1
17+
- /Publish Point1
18+
Name: Tool Properties
19+
Splitter Ratio: 0.5886790156364441
20+
- Class: rviz/Views
21+
Expanded:
22+
- /Current View1
23+
Name: Views
24+
Splitter Ratio: 0.5
25+
- Class: rviz/Time
26+
Experimental: false
27+
Name: Time
28+
SyncMode: 0
29+
SyncSource: PointCloud
30+
- Class: rviz/Tool Properties
31+
Expanded:
32+
- /2D Pose Estimate1
33+
Name: Tool Properties
34+
Splitter Ratio: 0.5
35+
Preferences:
36+
PromptSaveOnExit: true
37+
Toolbars:
38+
toolButtonStyle: 2
39+
Visualization Manager:
40+
Class: ""
41+
Displays:
42+
- Alpha: 0.5
43+
Cell Size: 1
44+
Class: rviz/Grid
45+
Color: 160; 160; 164
46+
Enabled: true
47+
Line Style:
48+
Line Width: 0.029999999329447746
49+
Value: Lines
50+
Name: Grid
51+
Normal Cell Count: 0
52+
Offset:
53+
X: 0
54+
Y: 0
55+
Z: 0
56+
Plane: XY
57+
Plane Cell Count: 10
58+
Reference Frame: <Fixed Frame>
59+
Value: true
60+
- Alpha: 0.699999988079071
61+
Class: rviz/Map
62+
Color Scheme: map
63+
Draw Behind: false
64+
Enabled: true
65+
Name: Map
66+
Topic: /map
67+
Unreliable: false
68+
Use Timestamp: false
69+
Value: true
70+
- Alpha: 0.5
71+
Class: rviz/Map
72+
Color Scheme: costmap
73+
Draw Behind: false
74+
Enabled: true
75+
Name: PotentialMap
76+
Topic: /move_base/GlobalPlanner/potential
77+
Unreliable: false
78+
Use Timestamp: false
79+
Value: true
80+
- Alpha: 0.4000000059604645
81+
Class: rviz/Map
82+
Color Scheme: costmap
83+
Draw Behind: false
84+
Enabled: true
85+
Name: GlobalCostMap
86+
Topic: /move_base/global_costmap/costmap
87+
Unreliable: false
88+
Use Timestamp: false
89+
Value: true
90+
- Alpha: 0.800000011920929
91+
Class: rviz/Map
92+
Color Scheme: costmap
93+
Draw Behind: false
94+
Enabled: true
95+
Name: LocalCostMap
96+
Topic: /move_base/local_costmap/costmap
97+
Unreliable: false
98+
Use Timestamp: false
99+
Value: true
100+
- Alpha: 1
101+
Buffer Length: 1
102+
Class: rviz/Path
103+
Color: 25; 255; 0
104+
Enabled: true
105+
Head Diameter: 0.30000001192092896
106+
Head Length: 0.20000000298023224
107+
Length: 0.30000001192092896
108+
Line Style: Lines
109+
Line Width: 0.029999999329447746
110+
Name: Path
111+
Offset:
112+
X: 0
113+
Y: 0
114+
Z: 0
115+
Pose Color: 255; 85; 255
116+
Pose Style: None
117+
Radius: 0.029999999329447746
118+
Shaft Diameter: 0.10000000149011612
119+
Shaft Length: 0.10000000149011612
120+
Topic: /trajectory
121+
Unreliable: false
122+
Value: true
123+
- Alpha: 1
124+
Buffer Length: 1
125+
Class: rviz/Path
126+
Color: 25; 255; 0
127+
Enabled: true
128+
Head Diameter: 0.30000001192092896
129+
Head Length: 0.20000000298023224
130+
Length: 0.30000001192092896
131+
Line Style: Lines
132+
Line Width: 0.029999999329447746
133+
Name: Global Plan
134+
Offset:
135+
X: 0
136+
Y: 0
137+
Z: 0
138+
Pose Color: 255; 85; 255
139+
Pose Style: None
140+
Radius: 0.029999999329447746
141+
Shaft Diameter: 0.10000000149011612
142+
Shaft Length: 0.10000000149011612
143+
Topic: /move_base/TrajectoryPlannerROS/global_plan
144+
Unreliable: false
145+
Value: true
146+
- Alpha: 1
147+
Buffer Length: 1
148+
Class: rviz/Path
149+
Color: 225; 0; 255
150+
Enabled: true
151+
Head Diameter: 0.30000001192092896
152+
Head Length: 0.20000000298023224
153+
Length: 0.30000001192092896
154+
Line Style: Lines
155+
Line Width: 0.029999999329447746
156+
Name: Local Plan
157+
Offset:
158+
X: 0
159+
Y: 0
160+
Z: 0
161+
Pose Color: 255; 85; 255
162+
Pose Style: None
163+
Radius: 0.029999999329447746
164+
Shaft Diameter: 0.10000000149011612
165+
Shaft Length: 0.10000000149011612
166+
Topic: /move_base/TrajectoryPlannerROS/local_plan
167+
Unreliable: false
168+
Value: true
169+
- Alpha: 1
170+
Axes Length: 1
171+
Axes Radius: 0.10000000149011612
172+
Class: rviz/Pose
173+
Color: 255; 25; 0
174+
Enabled: true
175+
Head Length: 0.30000001192092896
176+
Head Radius: 0.10000000149011612
177+
Name: Pose
178+
Shaft Length: 1
179+
Shaft Radius: 0.05000000074505806
180+
Shape: Axes
181+
Topic: /slam_out_pose
182+
Unreliable: false
183+
Value: true
184+
- Alpha: 1
185+
Axes Length: 1
186+
Axes Radius: 0.10000000149011612
187+
Class: rviz/Pose
188+
Color: 255; 25; 0
189+
Enabled: true
190+
Head Length: 0.30000001192092896
191+
Head Radius: 0.10000000149011612
192+
Name: CurrentGoalPose
193+
Shaft Length: 1
194+
Shaft Radius: 0.05000000074505806
195+
Shape: Arrow
196+
Topic: /move_base/current_goal
197+
Unreliable: false
198+
Value: true
199+
- Alpha: 1
200+
Axes Length: 1
201+
Axes Radius: 0.10000000149011612
202+
Class: rviz/Pose
203+
Color: 255; 25; 0
204+
Enabled: true
205+
Head Length: 0.30000001192092896
206+
Head Radius: 0.10000000149011612
207+
Name: GoalPose
208+
Shaft Length: 1
209+
Shaft Radius: 0.05000000074505806
210+
Shape: Arrow
211+
Topic: /move_base_simple/goal
212+
Unreliable: false
213+
Value: true
214+
- Alpha: 1
215+
Autocompute Intensity Bounds: true
216+
Autocompute Value Bounds:
217+
Max Value: 10
218+
Min Value: -10
219+
Value: true
220+
Axis: Z
221+
Channel Name: intensity
222+
Class: rviz/PointCloud
223+
Color: 255; 255; 255
224+
Color Transformer: Intensity
225+
Decay Time: 0
226+
Enabled: true
227+
Invert Rainbow: false
228+
Max Color: 255; 255; 255
229+
Max Intensity: 47
230+
Min Color: 0; 0; 0
231+
Min Intensity: 47
232+
Name: PointCloud
233+
Position Transformer: XYZ
234+
Queue Size: 10
235+
Selectable: true
236+
Size (Pixels): 3
237+
Size (m): 0.009999999776482582
238+
Style: Flat Squares
239+
Topic: /slam_cloud
240+
Unreliable: false
241+
Use Fixed Frame: true
242+
Use rainbow: true
243+
Value: true
244+
Enabled: true
245+
Global Options:
246+
Background Color: 48; 48; 48
247+
Default Light: true
248+
Fixed Frame: map
249+
Frame Rate: 30
250+
Name: root
251+
Tools:
252+
- Class: rviz/Interact
253+
Hide Inactive Objects: true
254+
- Class: rviz/MoveCamera
255+
- Class: rviz/Select
256+
- Class: rviz/FocusCamera
257+
- Class: rviz/Measure
258+
- Class: rviz/SetInitialPose
259+
Theta std deviation: 0.2617993950843811
260+
Topic: /initialpose
261+
X std deviation: 0.5
262+
Y std deviation: 0.5
263+
- Class: rviz/SetGoal
264+
Topic: /move_base_simple/goal
265+
- Class: rviz/PublishPoint
266+
Single click: true
267+
Topic: /clicked_point
268+
Value: true
269+
Views:
270+
Current:
271+
Class: rviz/XYOrbit
272+
Distance: 15.731557846069336
273+
Enable Stereo Rendering:
274+
Stereo Eye Separation: 0.05999999865889549
275+
Stereo Focal Distance: 1
276+
Swap Stereo Eyes: false
277+
Value: false
278+
Focal Point:
279+
X: 3.1519601345062256
280+
Y: -3.6296582221984863
281+
Z: 4.226488272252027e-6
282+
Focal Shape Fixed Size: true
283+
Focal Shape Size: 0.05000000074505806
284+
Invert Z Axis: false
285+
Name: Current View
286+
Near Clip Distance: 0.009999999776482582
287+
Pitch: 1.5697963237762451
288+
Target Frame: <Fixed Frame>
289+
Value: XYOrbit (rviz)
290+
Yaw: 4.778598308563232
291+
Saved: ~
292+
Window Geometry:
293+
"&Displays":
294+
collapsed: false
295+
"&Time":
296+
collapsed: false
297+
Height: 1051
298+
Hide Left Dock: false
299+
Hide Right Dock: true
300+
QMainWindow State: 000000ff00000000fd00000004000000000000016a00000363fc0200000009fb0000001200530065006c0065006300740069006f006e00000001e10000009b0000007601000003fb0000001e0054006f006f006c002000500072006f007000650072007400690065007302000001ed000001df00000185000000a3fb000000120056006900650077007300200054006f006f02000001df000002110000018500000122fb000000200054006f006f006c002000500072006f0070006500720074006900650073003203000002880000011d000002210000017afb000000100044006900730070006c006100790073010000004400000363000000f701000003fb0000002000730065006c0065006300740069006f006e00200062007500660066006500720200000138000000aa0000023a00000294fb00000014005700690064006500530074006500720065006f02000000e6000000d2000003ee0000030bfb0000000c004b0069006e0065006300740200000186000001060000030c00000261fb0000001e0054006f006f006c002000500072006f007000650072007400690065007300000001ea000001bd0000007601000003000000010000010f000002c6fc0200000002fb0000000a005600690065007700730000000027000002c6000000d001000003fb0000001200530065006c0065006300740069006f006e010000025a000000b200000000000000000000000200000490000000a9fc0100000001fb0000000a00560069006500770073030000004e00000080000002e10000019700000003000007800000004cfc0100000002fb0000000800540069006d0065010000000000000780000002ad01000003fb0000000800540069006d00650100000000000004500000000000000000000006150000036300000004000000040000000800000008fc0000000100000002000000010000000a0054006f006f006c00730100000000ffffffff0000000000000000
301+
Selection:
302+
collapsed: false
303+
Tool Properties:
304+
collapsed: false
305+
Views:
306+
collapsed: true
307+
Width: 1920
308+
X: 1920
309+
Y: 0
310+

0 commit comments

Comments
 (0)