Changes for page ROS Crash Course

Last modified by Leon Poon on 2021/08/30 23:24

From version 6.1
edited by Leon Poon
on 2021/08/30 23:24
Change comment: There is no comment for this version
To version 4.1
edited by Leon Poon
on 2021/08/23 11:07
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -9,7 +9,7 @@
9 9  
10 10  Paths, "/" and "." and ".." in navigating directories - absolute vs relative
11 11  
12 -data type - binary itself is meaningless unless you say what information that the binary bits represent
12 +data type - binary itself is meaningless unless you say what data the binary represent
13 13  
14 14  declare variables (int, char, string as series of chars)
15 15  
... ... @@ -37,7 +37,7 @@
37 37  
38 38  Switch vs if-else differences - number of times expressions are evaluated
39 39  
40 -write your own function
40 +your own function
41 41  
42 42  calling with parameters copied as separate set of var values in function
43 43  
... ... @@ -53,8 +53,6 @@
53 53  
54 54  Value overflow because not enough number of bits to represent large numbers.
55 55  
56 -Various integer data types - specifier in printf
57 -
58 58  Homework: implement factorial (1 to 20) calculator
59 59  
60 60  in Linux, most things are case-sensitive. (A not equals a)
... ... @@ -101,34 +101,3 @@
101 101  quick reading of code for publisher node
102 102  
103 103  homework: implement message subscriber node according to ROS book
104 -
105 -== Day 4 ==
106 -
107 -message subscriber.
108 -
109 -argc and agrv
110 -
111 -node name during ros::init
112 -
113 -topic advertise/subscribe explained.
114 -
115 -subscribe() only memorises that this node wants messages and what to do with them.
116 -
117 -subscribe() - providing name of function. not calling.
118 -
119 -publisher while ros::ok() loop.
120 -
121 -subscriber spin() loop - handle events.
122 -
123 -the double-colon operator: (1) namespace (2) static member of class
124 -
125 -pointers are memory addresses
126 -
127 -arrow -> operator
128 -
129 -array are elements in sequence in memory.
130 -
131 -char ~*~* = pointer of pointer of char data.
132 -
133 -
134 -