Changes for page ROS Crash Course
Last modified by Leon Poon on 2021/08/30 23:24
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -101,3 +101,34 @@ 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 +