-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.tex
830 lines (821 loc) · 32.9 KB
/
main.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
\section{Panorama}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Motivations générales}
\begin{frame}
\frametitle{Motivations - Application robotique \only<2>{- Outils}\only<3>{distribuée}
}
\motivationpicture
\motivationgraph
\visible<1-2>{\logicalrelationship}
\visible<2>{
\implementationgraph
}
\visible<3>{
\deploymentgraph
\softwarerelationship
}
\end{frame}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\frametitle{Motivations}
\begin{block}{Passage à l'échelle}
La communauté robotique doit \textit{collaborer} pour créer des systèmes robotiques
de qualité à l'exemple de l'informatique et la physique. \\
ROS est l'outil qui a permis ce passage.
\end{block}
\begin{tikzpicture}[remember picture, overlay]
\pgfputat{\pgfxy(0.0,-2.5)}{\pgfbox[left,base]{\pgfuseimage{ROSEquation}}};
\node[xshift=3cm,yshift=-2.5cm]{Plomberie};
\node[xshift=5cm,yshift=-2.5cm]{Outils};
\node[xshift=7.15cm,yshift=-2.5cm]{Capacités};
\node[xshift=9.21cm,yshift=-2.5cm]{Ecosystème};
\end{tikzpicture}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\frametitle{Motivations - Plomberie}
\begin{block}{Middleware}
\begin{itemize}
\item Publication/souscription à la transmission de messages anonymes (Message Passing)
\item Enregistrer et rejouer des messages
\item Requêtes/réponses à des remote procedure calls
\item Système de paramètres distribués
\end{itemize}
\end{block}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\frametitle{Motivations - Outils}
\begin{itemize}
\item[rviz] Visualisateur graphique 3D.
\item[rosbag] Enregistrement et visualisation des données.
\item[rxplot] Affichage en ligne.
\item[rxgraph] Visualisation du système.
\item[rqt] Interface graphique de contrôle incrémentale
\item[catkin] Système de compilation et de gestion de paquets.
\end{itemize}
\begin{tikzpicture}[remember picture,overlay]
\visible<1-5>{\node at (2,-1.) {\pgfuseimage{rviz}};}
\visible<2-5>{\node at (3.5,-1.) {\pgfuseimage{rosbag-slam}};}
\visible<3-5>{\node at (5,-1.) {\pgfuseimage{rxplot}};}
\visible<4-5>{\node at (6.5,-1.) {\pgfuseimage{rxgraph}};}
\visible<5>{\node at (8,-1.) {\pgfuseimage{rqt}};}
\end{tikzpicture}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\frametitle{Motivations - Ecosystème}
\vskip 0.25cm
\begin{itemize}
\item Définitions de messages standards pour les robots
\item Librairie pour la géométrie des robots
\item Language de description des robots
\item Remote Procedure Calls préemptable
\item Diagnostiques
\item Estimation de pose
\item Localisation
\item Cartographie
\item Navigation
\end{itemize}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\frametitle{Motivations - Ecosystème}
\begin{columns}[t]
\begin{column}[T]{0.5\linewidth}
\begin{itemize}
\item Systèmes d'exploitation
\item Robots
\item Packages
\end{itemize}
\end{column}
\begin{column}[T]{0.5\linewidth}
\visible<1>{\rosecosystem}
\visible<2>{\robotsecosystem}
\end{column}
\end{columns}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{ROS - Introduction}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\frametitle{ROS: Bref historique}
\vskip -0.25cm
{\footnotesize
\begin{tabular}{|p{3cm}|p{7.5cm}|} \hline
2008 & Démarrage de ROS par Willow Garage \\
2010 - Janvier & ROS 1.0 \\
2010 - Mars & Box Turtle \\
2010 - Aout & C Turtle \\
2011 - Mars & Diamondback \\
2011 - Aout & Electric Emys \\
2012 - Avril & Fuerte \\
2012 - Décembre & Groovy Galapagos\\
2013 - Février & Open Source Robotics Fundation poursuit la gestion de ROS \\
2013 - Aout & Willow Garage est absorbé par Suitable Technologies \\
2013 - Aout & Le support de PR-2 est repris par Clearpath Robotics\\
2013 - Septembre& Hydro Medusa (prévu) \\
2014 - Juillet & Indigo Igloo (EOL - Avril 2019)\\
2015 - May & Jade Turtle (EOL - Mai 2017) \\
2016 - May & Kinetic Kame (EOL - Mai 2021) \\
2017 - May & Lunar Loggerhead \\ \hline
\end{tabular}
}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\frametitle{ROS: Normalisation des releases}
\vskip -0.25cm
\begin{itemize}
\item Kinetic Kame (Mai 2016 - Mai 2021)
\begin{itemize}
\item Ubuntu Wily (15.10)
\item Ubuntu Xenial (16.04 LTS)
\item C++11, Boost 1.55, Lisp SBCL 1.2.4, Python 2.7, CMake 3.0.2
\item Ogre3D 1.9.x, Gazebo 7, PCL 1.7.x, OpenCV 3.1.x, Qt 5.3.x, PyQt5
\end{itemize}
\item Indigo Igloo (May 2014)
\begin{itemize}
\item Ubuntu Saucy (13.10)
\item Ubuntu Trusty (14.04 LTS)
\item C++03, Boost 1.53, Lisp SBCL 1.0.x, Python 2.7, (Test
additionels contre Python 3.3 recommendés) CMake 2.8.11
\end{itemize}
\item Lien vers la ROS Enhancement Proposal (REPs) :\\
\url{http://www.ros.org/reps/rep-0003.html}
\end{itemize}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Exemple}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\frametitle{Exemple: Asservissement visuel}
\framerosvisualservo
\end{frame}
\begin{frame}
\frametitle{Exemple: Asservissement visuel - Topics}
\framerosvisualservotopics
\end{frame}
\begin{frame}
\frametitle{Exemple: Asservissement visuel - Topics - Params}
\framerosvisualservoparams
\end{frame}
\begin{frame}
\frametitle{Exemple: Asservissement visuel - Software bus}
\framerosvisualservosoftwarebus
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Installation ROS Indigo}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Installation de ROS - Indigo - Ubuntu 14.04.4 LTS}
\begin{tikzpicture}[remember picture, overlay]
\matrix[anchor=west] at (0,-2.5)
{
\node[roslist] (instros1)
{1 - Spécifications des sources.list}; \\
\node[roscode] (instros2)
{sudo sh -c 'echo "deb http ://packages.ros.org/ros/ubuntu
precise main" $>$ /etc/apt/sources.list.d/ros-latest.list'}; \\
\node[roslist]
{2 - Spécifications des clefs}; \\
\node[roscode]
{wget http ://packages.ros.org/ros.key -O - $|$ sudo apt-key add -};\\
\node[roslist]
{3 - Mise à jour des listes de paquets};\\
\node[roscode]
{sudo apt-get update}; \\
\node[roslist]
{4 - Installation des paquets};\\
\node[roscode]
{sudo apt-get install ros-indigo-desktop-full};\\
};
\end{tikzpicture}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Configuration ROS Indigo}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Configuration - Indigo - Ubuntu 14.04.4 LTS}
\begin{tikzpicture}[remember picture, overlay]
\matrix[anchor=west] at (0,-2.5)
{
\node[roslist]
{1 - Spécifications de ROS\_ROOT et ROS PACKAGE PATH }; \\
\node[roscode]
{env $|$ grep ROS}; \\
\node[roslist]
{2 - Ligne à ajouter au fichier .bashrc}; \\
\node[roscode]
{source /opt/ros/indigo/setup.bash};\\
\node[roslist]
{3 - Création de l'espace catkin};\\
\node[roscode]
{mkdir -p \textasciitilde/catkin\_ws/src \\
cd \textasciitilde/catkin\_ws/src \\
catkin\_init\_workspace}; \\
\node {\tiny Tutorial Installing and Confixguring Your ROS Environment :}; \\
\node {\tiny \url{http://wiki.ros.org/ROS/Tutorials/InstallingandConfiguringROSEnvironment}}; \\
};
\end{tikzpicture}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Configuration - Indigo - Ubuntu 14.04.4 LTS}
\begin{tikzpicture}[remember picture, overlay]
\matrix[anchor=west] at (0,-1.0)
{
\node[roslist]
{4 - Ligne à ajouter au fichier .bashrc}; \\
\node[roscode]
{source \$HOME/catkin\_ws/devel/setup.bash}; \\
\node {\tiny Tutorial Installing and Configuring Your ROS Environment :}; \\
\node {\tiny \url{http://wiki.ros.org/ROS/Tutorials/InstallingandConfiguringROSEnvironment}}; \\
};
\end{tikzpicture}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Configuration - Indigo - Ubuntu 14.04.4 LTS}
\begin{tikzpicture}[remember picture, overlay]
\matrix[anchor=west] at (0,-2.5)
{
\node[roslist]
{ Votre distribution ROS est indiquée par ROS\_DISTRO }; \\
\node[roscode]
{ROS\_DISTRO=indigo }; \\
\node[roslist]
{ L'annuaire de votre application est spécifié par ROS\_MASTER\_URI};\\
\node[roscode]
{ROS\_MASTER\_URI=http://localhost:11311 \\
ROS\_MASTER\_URI=http://hostname:port\_number \\}; \\
\node[roslist]
{\textbf{hostname} dans ROS\_MASTER\_URI indique l'ordinateur où \textbf{roscore} est lancé.
\textbf{port\_number} indique le port où \textbf{roscore} attend les connections.
};\\
};
\end{tikzpicture}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Navigation dans ROS Indigo}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{ROS Filesystem - Navigation - Indigo}
\begin{tikzpicture}[remember picture, overlay]
\matrix[anchor=west] at (0,-3.0)
{
\node[roslist]
{1 - rospack : Donne les informations sur les paquets (exemple roscpp)}; \\
\node[roscode]
{rospack find roscpp}; \\
\node[roslist]
{2 - roscd : Bascule le répertoire directement sur le paquet}; \\
\node[roscode]
{roscd roscpp \\
roscd roscpp/cmake \\
roscd log};\\
\node[roslist]
{3 - rosls : Affiche le contenu du répertoire d'un paquet};\\
\node[roscode]
{rosls roscpp\_tutorials}; \\
\node {\tiny Tutorial Navigation dans le système de fichiers }; \\
\node {\tiny \url{http://wiki.ros.org/ROS/Tutorials/NavigatingTheFilesystem}}; \\
};
\end{tikzpicture}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Création d'un paquet pour ROS Indigo}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Création d'un paquet ROS - Définition - Indigo}
\begin{itemize}
\item Le paquet doit contenir un fichier \textcolor{blue}{package.xml} qui suit le
format catkin. Le fichier \textcolor{blue}{package.xml} contient des meta
informations sur le paquet.
\item Il n'y a qu'un seul paquet par répertoire. \\
Les paquets imbriqués, et les paquets dans un même
répertoire sont interdits.
\end{itemize}
Le paquet le plus simple est:
\begin{tikzpicture}
\node[roscode]
{mon\_paquet/\\
CMakeLists.txt\\
package.xml};
\end{tikzpicture}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Organisation des programmes sous ROS}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Création de paquets}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Paquets dans un workspace catkin - (1/9) - Indigo}
\tikzstyle{every node}=[anchor=west
%,font=\fontsize{6}{6}\selectfont
]
\tikzstyle{selected}=[draw=blue!50,fill=blue!20
%,font=\fontsize{6}{6}\selectfont
]
\tikzstyle{root}=[draw=blue,fill=blue!50
%,font=\fontsize{6}{6}\selectfont
]
{\scriptsize
\begin{tikzpicture}[%
grow via three points={one child at (0.75,-0.5) and
two children at (0.75,-0.5) and (0.75,-1.0)},
edge from parent path={(\tikzparentnode.south) |- (\tikzchildnode.west)}]
\node [root] {work\_space\_folder}
child { node [selected] {src}
child { node {CMakeLists.txt}}
child { node [selected] {package\_1}
child { node {CMakeLists.txt}}
child { node {package.xml}}
}
child [missing] {}
child [missing] {}
child { node [selected] {...}}
child { node [selected] {package\_n}
child { node {CMakeLists.txt}}
child { node {package.xml}}
}
};
\end{tikzpicture}
}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Paquets dans un workspace catkin - (2/9) - Indigo}
\begin{tikzpicture}[remember picture, overlay]
\matrix[anchor=west] at (0,-2.5)
{
\node[roslist]
{1 - Aller dans le répertoire src du paquet}; \\
\node[roscode]
{cd \textasciitilde/catkin\_ws/src}; \\
\node[roslist]
{Pour créer un nouveau package, et ses dépendences:\\
{\bf catkin\_create\_pkg}}; \\
\node[roscode]
{catkin\_create\_pkg beginner\_tutorials std\_msgs rospy roscpp\\
catkin\_create\_pkg [package\_name] [depend1] [depend2] [depend3]};\\
};
\end{tikzpicture}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Paquets dans un workspace catkin - (3/9) - Indigo}
\begin{tikzpicture}[remember picture, overlay]
%\draw[help lines] (0,-3) grid (5,0);
%\node at (0,0) {(0,0)};
\matrix[anchor=west] at (0,-2.5)
{
\node[roslist]
{2 - Dépendences du premier ordre}; \\
\node[roscode]
{rospack depends1 beginner\_tutorials}; \\
\node {\footnotesize Dépendences standards: std\_msgs rospy roscpp };\\
\node[roslist]
{3 - Les dépendences sont stockées dans le fichier package.xml}; \\
\node[roscode]
{roscd beginner\_tutorials\\
cat package.xml};\\
\node[roslist]
{ \footnotesize
$<$package$>$\\
...\\
$<$buildtool\_depend$>$catkin$<$/buildtool\_depend$>$\\
$<$build\_depend$>$roscpp$<$/build\_depend$>$\\
...\\
$<$/package$>$
};\\
};
\end{tikzpicture}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Paquets dans un workspace catkin - (4/9) - Indigo}
\begin{tikzpicture}[remember picture, overlay]
%\draw[help lines] (0,-3) grid (5,0);
%\node at (0,0) {(0,0)};
\matrix[anchor=west] at (0,-2.5)
{
\node[roslist]
{4 - Dépendences indirectes d'un paquet}; \\
\node[roscode]
{rospack depends beginner\_tutorials}; \\
\node[roslist]
{ \footnotesize$<$package$>$\\
cpp\_common\\
rostime\\
roscpp\_traits\\
roscpp\_serialization\\
...\\
roslib\\
rospy \\
$<$/package$>$
};\\
};
\end{tikzpicture}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Personnalisation du paquet - (5/9) - Indigo}
\begin{tikzpicture}[remember picture, overlay]
%\draw[help lines] (0,-3) grid (5,0);
%\node at (0,0) {(0,0)};
\matrix[anchor=west] at (0,-2.5)
{
\node[roslist]
{5 - Description du paquet}; \\
\node[roscode]
{$<$description$>$The beginner\_tutorials package$<$/description$>$}; \\
\node[roscode]
{ \footnotesize$<$package$>$\\
$<$!- One maintainer tag required, multiple allowed, one person per tag -$>$ \\
$<$!- Exemple : -$>$ \\
$<$!- $<$maintainer email="[email protected]"$>$Jane Doe$<$/maintainer$>$ -$>$ \\
$<$maintainer email="[email protected]"$>$user$<$/maintainer$>$\\
};\\
};
\end{tikzpicture}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Personnalisation du paquet - (6/9) - Indigo}
\begin{tikzpicture}[remember picture, overlay]
%\draw[help lines] (0,-3) grid (5,0);
%\node at (0,0) {(0,0)};
\matrix[anchor=west] at (0,-2.5)
{
\node[roslist]{7 - License du paquet}; \\
\node[roscode]
{
$<$!- One license tag required, multiple allowed, one license per tag -$>$ \\
$<$!- Commonly used license strings : -$>$\\
$<$!- BSD, MIT, Boost Software License, GPLv2, GPLv3, LGPLv2.1,LGPLv3 -$>$\\
$<$license$>$TODO$<$/license$>$ }; \\
\node[roslist]{La license souvent utilisée sous ROS est la BSD};\\
\node[roscode]{ $<$license$>$BSD$<$/license$>$ };\\
};
\end{tikzpicture}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Personnalisation du paquet - (7/9) - Indigo}
\begin{tikzpicture}[remember picture, overlay]
%\draw[help lines] (0,-3) grid (5,0);
%\node at (0,0) {(0,0)};
\matrix[anchor=west] at (0,-2.5)
{
\node[roslist]{8 - Spécification des dépendences}; \\
\node[roscode]
{\tiny $<$!- The * depend tags are used to specify dependencies -$>$ \\
$<$!- Dependencies can be catkin packages or system dependencies -$>$ \\
$<$!- Exemples : -$>$ \\
$<$!- Use build\_depend for packages you need at compile time : -$>$ \\
$<$!- $<$build\_depend$>$genmsg$<$/build\_depend$>$ -$>$\\
$<$!- Use buildtool\_depend for build tool packages : -$>$\\
$<$!- $<$buildtool\_depend$>$catkin$<$/buildtool\_depend$>$ -$>$\\
$<$!- Use run\_depend for packages you need at runtime : -$>$\\
$<$!- $<$run\_depend$>$python-yaml$<$/run\_depend$>$ -$>$\\
$<$!- Use test depend for packages you need only for testing : -$>$\\
$<$!- $<$test depend$>$gtest$<$/test depend$>$ -$>$\\
$<$buildtool\_depend$>$catkin$<$/buildtool\_depend$>$\\
$<$build\_depend$>$roscpp$<$/build\_depend$>$\\
$<$build\_depend$>$rospy$<$/build\_depend$>$\\
$<$build\_depend$>$std\_msgs$<$/build\_depend$>$ }; \\
};
\end{tikzpicture}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Personnalisation du paquet - (8/9) - Indigo}
\begin{tikzpicture}[remember picture, overlay]
%\draw[help lines] (0,-3) grid (5,0);
%\node at (0,0) {(0,0)};
\matrix[anchor=west] at (0,-2.5)
{
\node[roslist]{9 - Ajout de la dépendence à l'exécution:}; \\
\node[roscode]
{
$<$buildtool\_depend$>$catkin$<$/buildtool\_depend$>$\\
$<$build\_depend$>$roscpp$<$/build\_depend$>$\\
$<$build\_depend$>$rospy$<$/build\_depend$>$\\
$<$build\_depend$>$std\_msgs$<$/build\_depend$>$\\
$<$run\_depend$>$roscpp$<$/run\_depend$>$\\
$<$run\_depend$>$rospy$<$/run\_depend$>$\\
$<$run\_depend$>$std\_msgs$<$/run\_depend$>$
}; \\
};
\end{tikzpicture}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Personnalisation du paquet - (9/9) - Indigo}
\begin{tikzpicture}[remember picture, overlay]
%\draw[help lines] (0,-3) grid (5,0);
%\node at (0,0) {(0,0)};
\matrix[anchor=west] at (0,-2.5)
{
\node[roslist]{10 - Fichier \textcolor{blue}{package.xml} final}; \\
\node[roscode]
{ \tiny
$<$?xml version="1.0" ?$>$ \\
$<$package$>$ \\
$<$name$>$beginner\_tutorials$<$/name$>$\\
$<$version$>$0.1.0$<$/version$>$ \\
$<$description$>$The beginner tutorials package$<$/description$>$ \\
$<$maintainer email="[email protected]"$>$Your Name$<$/maintainer$>$\\
$<$license$>$BSD$<$/license$>$ \\
$<$url type="website"$>$http ://wiki.ros.org/beginner tutorials$<$/url$>$ \\
$<$author email="[email protected]"$>$Jane Doe$<$/author$>$ \\
$<$buildtool\_depend$>$catkin$<$/buildtool\_depend$>$ \\
$<$build\_depend$>$roscpp$<$/build\_depend$>$ \\
$<$build\_depend$>$rospy$<$/build\_depend$>$ \\
$<$build\_depend$>$std\_msgs$<$/build\_depend$>$ \\
$<$run\_depend$>$roscpp$<$/run\_depend$>$ \\
$<$run\_depend$>$rospy$<$/run\_depend$>$ \\
$<$run\_depend$>$std\_msgs$<$/run\_depend$>$ \\
$<$/package$>$
}; \\
};
\end{tikzpicture}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Compilation des paquets Indigo}
\begin{tikzpicture}[remember picture, overlay]
\matrix[anchor=west] at (0,-2.5)
{
\node[roslist]{
La compilation de tous les paquets s'effectue avec une seule commande.\\
Cette commande doit s'effectuer dans le répertoire du workspace.\\
Le répertoire {\bf build} du workspace stocke les objets compilés intermédiaires.\\
Le répertoire {\bf devel} du workspace stocke les exécutables et les
librairies compilées.\\
};\\
\node[roscode]{
catkin\_make \\
catkin\_make install\\
};\\
};
\end{tikzpicture}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Définitions}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Graphe d'applications avec ROS}
\begin{itemize}
\item[Nodes]: Un node est un exécutable qui utilise ROS pour communiquer
avec d'autres noeuds.
\item[Messages]: Types de données ROS utilisés pour souscrire ou publié sur un topic.
\item[Topics]: Les nodes peuvent \textit{publier} des messages sur un topic
aussi bien que \textit{souscrire} à un topic pour recevoir des messages.
\item[Master]: Nom du service pour ROS (i.e. aide les noeuds à se trouver
mutuellement).
\item[{\footnotesize Paramètres}]: Informations très peu dynamiques qui doivent être partagés
dans l'application.
\item[rosout]: Equivalent de stdout/stderr.
\item[roscore]: Master+rosout+parameter server (serveur de paramètres,
introduit plus tard).
\end{itemize}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Définitions - Node}
\begin{itemize}
\item Un fichier éxecutable dans un paquet ROS.
\item Les noeuds ROS utilisent une librairie client pour communiquer avec
les autres noeuds.
\item Les noeuds peuvent \textbf{publier} ou \textbf{souscrire} à des
\textbf{topics}.
\item Les noeuds peuvent fournir ou utiliser un \textbf{service}.
\item Les librairies client sont :
\begin{itemize}
\item \textit{rospy} pour python.
\item \textit{roscpp} pour C++.
\end{itemize}
\end{itemize}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Communications ROS}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{roscore}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Le système des Name services}
\begin{tikzpicture}[remember picture, overlay]
\matrix[anchor=west] at (0,-2.5)
{
\node[roslist]
{Pour pouvoir localiser et interagir entre les nodes il faut un \textbf{annuaire}.\\
C'est le rôle de \textbf{roscore}.};\\
\node[roslist]
{Il doit être lancé \textit{systématiquement} mais une seule fois.\\
Si \textbf{roscore} ne se lance pas, il faut :
\begin{itemize}
\item Vérifier la connection réseau.
\item Si roscore ne s'initialise pas et évoque un problème de droits,
il faut vérifier les droits sur le répertoire .ros
\end{itemize}
};\\
\node[roslist]
{ \tiny
Tutorial Understanding ROS Nodes : \url{http://wiki.ros.org/ROS/Tutorials/UnderstandingNodes}
};\\
};
\end{tikzpicture}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Le système des Name services}
\begin{tikzpicture}[remember picture, overlay]
\matrix[anchor=west] at (0,-2.5)
{
\node[roslist]
{Pour obtenir la liste des nodes actifs :};\\
\node[roscode]
{rosnode list};\\
\node[roslist]
{Pour obtenir des informations sur un node :};\\
\node[roscode]
{rosnode info /rosout};\\
\node[roslist]
{\tiny Tutorial Understanding ROS Nodes : \url{http://wiki.ros.org/ROS/Tutorials/UnderstandingNodes}};\\
};
\end{tikzpicture}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{rosrun}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Utilisation de rosrun}
\begin{tikzpicture}[remember picture, overlay]
\matrix[anchor=west] at (0,-2.5)
{
\node[roslist]
{Pour pouvoir lancer un fichier exécutable/node d'un paquet}; \\
\node[roscode]
{rosrun [package\_name][node\_name]}; \\
\node[roslist]
{Par exemple pour lancer turtlesim :}; \\
\node[roscode]
{rosrun turtlesim turtlesim\_node}; \\
\node[roslist]
{Pour renommer des arguments (utiliser rosnode list pour vérifier) :};\\
\node[roscode]
{rosrun turtlesim turtlesim\_node --name:=my\_turtle};\\
\node[roslist]
{Pour tester si le node est actif};\\
\node[roscode]
{rosnode ping my\_turtle};\\
\node[roslist]
{\tiny Tutorial Understanding ROS Nodes : \url{http://wiki.ros.org/ROS/Tutorials/UnderstandingNodes}};\\
};
\end{tikzpicture}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Comprendre les topics - Préparation}
\begin{tikzpicture}[remember picture, overlay]
\matrix[anchor=west] at (0,-2.5)
{
\node[roslist]
{Pour démarrer turtle\_sim et turtle\_teleop\_key};\\
\node[roscode]
{rosrun turtlesim turtlesim\_node\\
rosrun turtlesim turtle\_teleop\_key};\\
\node[roslist]
{Démarrer le graphe de l'application :};\\
\node[roscode]
{rosrun rqt\_graph rqt\_graph};\\
\node[roslist]
{Démarrer le graphe de l'affichage des topics:};\\
\node[roscode]
{rosrun rqt\_plot rqt\_plot};\\
\node[roslist]
{\tiny Tutorial Understanding ROS Topics : \url{http://wiki.ros.org/ROS/Tutorials/UnderstandingTopics}};\\
};
\end{tikzpicture}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{rostopic}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Comprendre les topics - \textbf{rostopic}}
\begin{tikzpicture}[remember picture, overlay]
\matrix[anchor=west] at (0,-2.5)
{
\node[roslist]
{Les topics sont des données \textbf{publiées} par des noeuds,
et auquelles les noeuds \textbf{souscrivent}.\\
L'exécutable permettant d'avoir des informations sur les topics
est \textbf{rostopic}.};\\
\node[roscode]
{rostopic bw display bandwith used by topic\\
rostopic echo print messages to screen\\
rostopic hz display publishing rate of topic\\
rostopic list print information about active topics\\
rostopic pub publish data to topic\\
rostopic type print topic type
};\\
\node[roslist]
{\tiny Tutorial Understanding ROS Topics : \url{http://wiki.ros.org/ROS/Tutorials/UnderstandingTopics}};\\
};
\end{tikzpicture}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{roswtf}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Vérifier son installation ros - \textbf{roswtf}}
Ce programme vérifie l'installation de ROS et analyse les problèmes.
\begin{itemize}
\item Effectue le test suivant le répertoire.
\item Vérifie la cohérence de l'installation : variables d'environnements,
paquets installés.
\item Analyse le graphe en cours d'exécution.
\end{itemize}
{\tiny Tutorial Getting started with roswtf : \url{http://wiki.ros.org/ROS/Tutorials/Getting\%20started\%20with\%20roswtf}};
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{rqt\_console}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{rqt - \textbf{rqt\_console}}
\begin{tikzpicture}[remember picture, overlay]
\matrix[anchor=west] at (0,-2.5)
{
\node[roslist]
{\textbf{rqt} est une interface d'affichage non 3D qui se peuple avec des plugins.
Elle permet de construire une interface de contrôle incrémentalement.
L'exécutable permettant d'afficher les messages des noeuds de façon centralisé
est \textbf{rqt\_console}.};\\
\node[roscode]
{ rosrun rqt\_console rqt\_console \\
rosrun rqt\_logger\_level rqt\_logger\_level
};\\
\node[roslist]
{\tiny Tutorial Using rqt console et roslaunch \url{http://wiki.ros.org/ROS/Tutorials/UsingRqtconsoleRoslaunch}};\\
};
\end{tikzpicture}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{roslaunch}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Lancer plusieurs noeuds - \textbf{roslaunch}}
\begin{tikzpicture}[remember picture, overlay]
\matrix[anchor=west] at (0,-2.5)
{
\node[roslist]
{\textbf{roslaunch} lit un fichier xml qui contient tous les paramètres
pour lancer une application distribuée ROS.};\\
\node[roscode]
{roslaunch [package] [filename.launch]};\\
\node[roslist]
{Exemple :};\\
\node[roscode]
{roscd beginner\_tutorials\\
roslaunch beginner\_tutorials turtlemimic.launch
};\\
\node[roslist]
{\tiny Tutorial Using rqt console et roslaunch \url{http://wiki.ros.org/ROS/Tutorials/UsingRqtconsoleRoslaunch}};\\
};
\end{tikzpicture}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{rosed}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Spécifier l'éditeur pour ROS - \textbf{rosed}}
\begin{tikzpicture}[remember picture, overlay]
\matrix[anchor=west] at (0,-2.5)
{
\node[roslist]
{\textbf{roslaunch} permet d'éditer un fichier directement par le nom du paquet
et non par le chemin entier. Il inclut la complétion par $<$Tab$>$.};\\
\node[roscode]
{rosed [package] [filename]};\\
\node[roslist]
{Exemple :};\\
\node[roscode]
{rosed roscpp Logger.msg}; \\
\node[roslist]
{L'éditeur utilisé est spécifié par la variable d'environnement EDITOR};\\
\node[roscode]
{export EDITOR='emacs'};\\
\node[roslist]
{\tiny Tutorial Using rosed to edit files in ROS \url{http://wiki.ros.org/ROS/Tutorials/UsingRosEd}};\\
};
\end{tikzpicture}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{rosbag}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Enregistrer des données - \textbf{rosbag}}
\begin{tikzpicture}[remember picture, overlay]
\matrix[anchor=west] at (0,-2.5)
{
\node[roslist]
{\textbf{rosbag} permet d'enregistrer et de rejouer des données sur votre application.\\
Pour enregistrer un sac de données :}; \\
\node[roscode]
{rosbag record -a \\
rosbag record -O subset /turtle1/cmd\_vel /turtle1/pose};\\
\node[roslist]
{Le nom du fichier démarre avec l'année, la date et le temps et le suffixe .bag};\\
\node[roslist]
{\tiny Tutorial Recording and play back data \url{http://wiki.ros.org/ROS/Tutorials/Recording\%20and\%20playing\%20back\%20data}};\\
};
\end{tikzpicture}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Programmer avec ROS}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{Tutorials couverts par cette partie}
\begin{itemize}
\item \href{http://wiki.ros.org/ROS/Tutorials/CreatingMsgAndSrv}{Création de fichiers ROS msg and srv}
\item \href{http://wiki.ros.org/ROS/Tutorials/WritingPublisherSubscriber\%28c\%2B\%2B\%29}{Ecrire un simple souscripteur et publieur (C++)}
\item \href{http://wiki.ros.org/ROS/Tutorials/WritingPublisherSubscriber\%28python\%29}{Ecrire un simple souscripteur et publieur (Python)}
\item \href{http://wiki.ros.org/ROS/Tutorials/WritingServiceClient\%28c\%2B\%2B\%29}{Ecrire un simple service et un client (C++)}
\item \href{http://wiki.ros.org/ROS/Tutorials/WritingServiceClient\%28python\%29}{Ecrire un simple service et un client (Python)}
\item \href{http://wiki.ros.org/ROS/Tutorials/ExaminingServiceClient}{Faire fonctionner ensemble le client simple et le service simple.}
\end{itemize}
\end{frame}