Skip to content

Commit 4e40bd6

Browse files
committed
updated documentation
1 parent a87f06a commit 4e40bd6

File tree

6 files changed

+105
-76
lines changed

6 files changed

+105
-76
lines changed

doc/release/master.md

+28-3
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,33 @@ New Features
3939
#### `libYARP_dev`
4040

4141
* added new class `yarp::dev::ReturnValue`
42-
* modified interfaces `yarp::dev::ISpeechSynthesizer`,`yarp::dev::ISpeechTranscription` to use the new class ReturnValue.
43-
42+
* The following interfaces have been modified to the new class ReturnValue:
43+
ISpeechSynthesizer
44+
ISpeechTranscription
45+
ILocalization2D
46+
IMap2D
47+
INavigation2D
48+
IOdometry2D
49+
4450
#### `devices`
4551

46-
* modified devices implementing `yarp::dev::ISpeechSynthesizer`,`yarp::dev::ISpeechTranscription` to use the new class ReturnValue.
52+
* Updated all devices which use the interfaces employing the new class `ReturnValue`:
53+
FakeSpeechSynthesizer
54+
FakeSpeechTranscription
55+
FakeNavigation
56+
FakeLocalizer
57+
FakeOdometry2D
58+
Map2DStorage
59+
SpeechTranscription_nws_yarp
60+
SpeechTranscription_nwc_yarp
61+
SpeechSynthesizer_nws_yarp
62+
SpeechSynthesizer_nwc_yarp
63+
Localization2D_nws_yarp
64+
Localization2D_nwc_yarp
65+
Map2D_nws_yarp
66+
Map2D_nwc_yarp
67+
MobileBaseVelocityControl_nws_yarp
68+
MobileBaseVelocityControl_nwc_yarp
69+
Navigation2D_nwc_yarp
70+
Navigation2D_nws_yarp
71+
Odometry2D_nws_yarp

src/libYARP_dev/src/yarp/dev/IMap2D.h

+36-36
Original file line numberDiff line numberDiff line change
@@ -36,246 +36,246 @@ class YARP_dev_API yarp::dev::Nav2D::IMap2D
3636

3737
/**
3838
Removes all the registered maps from the server.
39-
* @return true/false
39+
* @return a ReturnValue, convertible to true/false
4040
*/
4141
virtual yarp::dev::ReturnValue clearAllMaps () = 0;
4242

4343
/**
4444
Stores a map into the map server.
45-
* @return true/false
45+
* @return a ReturnValue, convertible to true/false
4646
*/
4747
virtual yarp::dev::ReturnValue store_map(const yarp::dev::Nav2D::MapGrid2D& map) = 0;
4848

4949
/**
5050
Gets a map from the map server.
51-
* @return true/false
51+
* @return a ReturnValue, convertible to true/false
5252
*/
5353
virtual yarp::dev::ReturnValue get_map(std::string map_name, yarp::dev::Nav2D::MapGrid2D& map) = 0;
5454

5555
/**
5656
Gets a list containing the names of all registered maps.
57-
* @return true/false
57+
* @return a ReturnValue, convertible to true/false
5858
*/
5959
virtual yarp::dev::ReturnValue get_map_names(std::vector<std::string>& map_names) = 0;
6060

6161
/**
6262
Removes a map from the map server.
63-
* @return true/false
63+
* @return a ReturnValue, convertible to true/false
6464
*/
6565
virtual yarp::dev::ReturnValue remove_map(std::string map_name) = 0;
6666

6767
/**
6868
* Store a location specified by the user in the world reference frame
6969
* @param location_name the name of the location
7070
* @param loc the location of the robot
71-
* @return true/false
71+
* @return a ReturnValue, convertible to true/false
7272
*/
7373
virtual yarp::dev::ReturnValue storeLocation(std::string location_name, yarp::dev::Nav2D::Map2DLocation loc) = 0;
7474

7575
/**
7676
* Store an area
7777
* @param area_name the name of the area
7878
* @param area the area
79-
* @return true/false
79+
* @return a ReturnValue, convertible to true/false
8080
*/
8181
virtual yarp::dev::ReturnValue storeArea(std::string area_name, yarp::dev::Nav2D::Map2DArea area) = 0;
8282

8383
/**
8484
* Store a path
8585
* @param path_name the name of the path
8686
* @param path the path
87-
* @return true/false
87+
* @return a ReturnValue, convertible to true/false
8888
*/
8989
virtual yarp::dev::ReturnValue storePath(std::string path_name, yarp::dev::Nav2D::Map2DPath path) = 0;
9090

9191
/**
9292
* Retrieves a location specified by the user in the world reference frame
9393
* @param location_name the name of the location
9494
* @param loc the location
95-
* @return true/false
95+
* @return a ReturnValue, convertible to true/false
9696
*/
9797
virtual yarp::dev::ReturnValue getLocation(std::string location_name, yarp::dev::Nav2D::Map2DLocation& loc) = 0;
9898

9999
/**
100100
* Retrieves an area
101101
* @param area_name the name of the area
102102
* @param area the area
103-
* @return true/false
103+
* @return a ReturnValue, convertible to true/false
104104
*/
105105
virtual yarp::dev::ReturnValue getArea(std::string area_name, yarp::dev::Nav2D::Map2DArea& area) = 0;
106106

107107
/**
108108
* Retrieves a path
109109
* @param path_name the name of the path
110110
* @param path the path
111-
* @return true/false
111+
* @return a ReturnValue, convertible to true/false
112112
*/
113113
virtual yarp::dev::ReturnValue getPath(std::string path_name, yarp::dev::Nav2D::Map2DPath& path) = 0;
114114

115115
/**
116116
* Get a list of the names of all stored locations
117117
* @param the returned list of locations names
118-
* @return true/false
118+
* @return a ReturnValue, convertible to true/false
119119
*/
120120
virtual yarp::dev::ReturnValue getLocationsList(std::vector<std::string>& locations) = 0;
121121

122122
/**
123123
* Get a list of the names of all stored areas
124124
* @param the returned list of areas names
125-
* @return true/false
125+
* @return a ReturnValue, convertible to true/false
126126
*/
127127
virtual yarp::dev::ReturnValue getAreasList(std::vector<std::string>& areas) = 0;
128128

129129
/**
130130
* Get a list of the names of all stored paths
131131
* @param the returned list of paths names
132-
* @return true/false
132+
* @return a ReturnValue, convertible to true/false
133133
*/
134134
virtual yarp::dev::ReturnValue getPathsList(std::vector<std::string>& paths) = 0;
135135

136136
/**
137137
* Get a list of all stored locations
138138
* @param the returned list of locations
139-
* @return true/false
139+
* @return a ReturnValue, convertible to true/false
140140
*/
141141
virtual yarp::dev::ReturnValue getAllLocations(std::vector<yarp::dev::Nav2D::Map2DLocation>& locations) = 0;
142142

143143
/**
144144
* Get a list of all stored areas
145145
* @param the returned list of areas
146-
* @return true/false
146+
* @return a ReturnValue, convertible to true/false
147147
*/
148148
virtual yarp::dev::ReturnValue getAllAreas(std::vector<yarp::dev::Nav2D::Map2DArea>& areas) = 0;
149149

150150
/**
151151
* Get a list of all stored paths
152152
* @param the returned list of paths
153-
* @return true/false
153+
* @return a ReturnValue, convertible to true/false
154154
*/
155155
virtual yarp::dev::ReturnValue getAllPaths(std::vector<yarp::dev::Nav2D::Map2DPath>& paths) = 0;
156156

157157
/**
158158
* Searches for a location and renames it
159159
* @param original_name the name of the area
160160
* @param new_name the new name of the area
161-
* @return true/false
161+
* @return a ReturnValue, convertible to true/false
162162
*/
163163
virtual yarp::dev::ReturnValue renameLocation(std::string original_name, std::string new_name) = 0;
164164

165165
/**
166166
* Delete a location
167167
* @param location_name the name of the location
168-
* @return true/false
168+
* @return a ReturnValue, convertible to true/false
169169
*/
170170
virtual yarp::dev::ReturnValue deleteLocation(std::string location_name) = 0;
171171

172172
/**
173173
* Delete a path
174174
* @param path_name the name of the path
175-
* @return true/false
175+
* @return a ReturnValue, convertible to true/false
176176
*/
177177
virtual yarp::dev::ReturnValue deletePath(std::string path_name) = 0;
178178

179179
/**
180180
* Searches for an area and renames it
181181
* @param original_name the name of the area
182182
* @param new_name the new name of the area
183-
* @return true/false
183+
* @return a ReturnValue, convertible to true/false
184184
*/
185185
virtual yarp::dev::ReturnValue renameArea(std::string original_name, std::string new_name) = 0;
186186

187187
/**
188188
* Searches for a path and renames it
189189
* @param original_name the name of the path
190190
* @param new_name the new name of the path
191-
* @return true/false
191+
* @return a ReturnValue, convertible to true/false
192192
*/
193193
virtual yarp::dev::ReturnValue renamePath(std::string original_name, std::string new_name) = 0;
194194

195195
/**
196196
* Delete an area
197197
* @param area_name the name of the area
198-
* @return true/false
198+
* @return a ReturnValue, convertible to true/false
199199
*/
200200
virtual yarp::dev::ReturnValue deleteArea(std::string area_name) = 0;
201201

202202
/**
203203
* Delete all stored locations
204-
* @return true/false
204+
* @return a ReturnValue, convertible to true/false
205205
*/
206206
virtual yarp::dev::ReturnValue clearAllLocations() = 0;
207207

208208
/**
209209
* Delete all stored areas
210-
* @return true/false
210+
* @return a ReturnValue, convertible to true/false
211211
*/
212212
virtual yarp::dev::ReturnValue clearAllAreas() = 0;
213213

214214
/**
215215
* Delete all stored paths
216-
* @return true/false
216+
* @return a ReturnValue, convertible to true/false
217217
*/
218218
virtual yarp::dev::ReturnValue clearAllPaths() = 0;
219219

220220
/**
221221
* Clear all temporary flags from all stored maps
222-
* @return true/false
222+
* @return a ReturnValue, convertible to true/false
223223
*/
224224
virtual yarp::dev::ReturnValue clearAllMapsTemporaryFlags() = 0;
225225

226226
/**
227227
* Clear all temporary flags from a specific map
228-
* @return true/false
228+
* @return a ReturnValue, convertible to true/false
229229
*/
230230
virtual yarp::dev::ReturnValue clearMapTemporaryFlags(std::string map_name) = 0;
231231

232232
/**
233233
* Save a map to disk
234234
* @param map_name the name of the area
235235
* @param file_name file name with full path
236-
* @return true/false
236+
* @return a ReturnValue, convertible to true/false
237237
*/
238238
virtual yarp::dev::ReturnValue saveMapToDisk(std::string map_name, std::string file_name) = 0;
239239

240240
/**
241241
* Load a map from disk
242242
* @param file_name file name with full path
243-
* @return true/false
243+
* @return a ReturnValue, convertible to true/false
244244
*/
245245
virtual yarp::dev::ReturnValue loadMapFromDisk(std::string file_name) = 0;
246246

247247
/**
248248
* Save a collection of maps to disk
249249
* @param file_name file name with full path
250-
* @return true/false
250+
* @return a ReturnValue, convertible to true/false
251251
*/
252252
virtual yarp::dev::ReturnValue saveMapsCollection(std::string file_name) = 0;
253253

254254
/**
255255
* Load a collection of maps from disk
256256
* @param file_name file name with full path
257-
* @return true/false
257+
* @return a ReturnValue, convertible to true/false
258258
*/
259259
virtual yarp::dev::ReturnValue loadMapsCollection(std::string file_name) = 0;
260260

261261
/**
262262
* Save a collection of locations/area/paths etc to disk
263263
* @param file_name file name with full path
264-
* @return true/false
264+
* @return a ReturnValue, convertible to true/false
265265
*/
266266
virtual yarp::dev::ReturnValue saveLocationsAndExtras(std::string file_name) = 0;
267267

268268
/**
269269
* Load a collection of locations/areas/paths etc from disk
270270
* @param file_name file name with full path
271-
* @return true/false
271+
* @return a ReturnValue, convertible to true/false
272272
*/
273273
virtual yarp::dev::ReturnValue loadLocationsAndExtras(std::string file_name) = 0;
274274

275275
/**
276-
* 99999999999
276+
* Enable/disables maps compression over the network
277277
* @param enable
278-
* @return true/false
278+
* @return a ReturnValue, convertible to true/false
279279
*/
280280
virtual yarp::dev::ReturnValue enableMapsCompression(bool enable) = 0;
281281
};

0 commit comments

Comments
 (0)