@@ -246,7 +246,7 @@ impl NodeBuilder {
246
246
err,
247
247
s : self . namespace . clone ( ) ,
248
248
} ) ?;
249
- let node_options = self . create_node_options ( ) ?;
249
+ let rcl_node_options = self . create_rcl_node_options ( ) ?;
250
250
let rcl_context = & mut * self . context . lock ( ) ;
251
251
252
252
// SAFETY: Getting a zero-initialized value is always safe.
@@ -261,14 +261,18 @@ impl NodeBuilder {
261
261
node_name. as_ptr ( ) ,
262
262
node_namespace. as_ptr ( ) ,
263
263
rcl_context,
264
- & node_options ,
264
+ & rcl_node_options ,
265
265
)
266
266
. ok ( ) ?;
267
267
} ;
268
268
269
269
let _parameter_map = unsafe {
270
270
let fqn = call_string_getter_with_handle ( & rcl_node, rcl_node_get_fully_qualified_name) ;
271
- resolve_parameter_overrides ( fqn, & rcl_context. global_arguments ) ?
271
+ resolve_parameter_overrides (
272
+ fqn,
273
+ & rcl_node_options. arguments ,
274
+ & rcl_context. global_arguments ,
275
+ ) ?
272
276
} ;
273
277
let rcl_node_mtx = Arc :: new ( Mutex :: new ( rcl_node) ) ;
274
278
@@ -280,15 +284,15 @@ impl NodeBuilder {
280
284
} )
281
285
}
282
286
283
- /// Creates node options .
287
+ /// Creates a rcl_node_options_t struct from this builder .
284
288
///
285
289
/// Any fields not present in the builder will have their default value.
286
290
/// For detail about default values, see [`NodeBuilder`][1] docs.
287
291
///
288
292
/// [1]: crate::NodeBuilder
289
- fn create_node_options ( & self ) -> Result < rcl_node_options_t , RclrsError > {
293
+ fn create_rcl_node_options ( & self ) -> Result < rcl_node_options_t , RclrsError > {
290
294
// SAFETY: No preconditions for this function.
291
- let mut node_options = unsafe { rcl_node_get_default_options ( ) } ;
295
+ let mut rcl_node_options = unsafe { rcl_node_get_default_options ( ) } ;
292
296
293
297
let cstring_args = self
294
298
. arguments
@@ -307,17 +311,17 @@ impl NodeBuilder {
307
311
cstring_arg_ptrs. len ( ) as i32 ,
308
312
cstring_arg_ptrs. as_ptr ( ) ,
309
313
rcutils_get_default_allocator ( ) ,
310
- & mut node_options . arguments ,
314
+ & mut rcl_node_options . arguments ,
311
315
)
312
316
}
313
317
. ok ( ) ?;
314
318
315
- node_options . use_global_arguments = self . use_global_arguments ;
316
- node_options . enable_rosout = self . enable_rosout ;
319
+ rcl_node_options . use_global_arguments = self . use_global_arguments ;
320
+ rcl_node_options . enable_rosout = self . enable_rosout ;
317
321
// SAFETY: No preconditions for this function.
318
- node_options . allocator = unsafe { rcutils_get_default_allocator ( ) } ;
322
+ rcl_node_options . allocator = unsafe { rcutils_get_default_allocator ( ) } ;
319
323
320
- Ok ( node_options )
324
+ Ok ( rcl_node_options )
321
325
}
322
326
}
323
327
0 commit comments