ROS 2 rclcpp + rcl - jazzy  jazzy
ROS 2 C++ Client Library with ROS Client Library
context_impl.h
1 // Copyright 2018 Open Source Robotics Foundation, Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef RCL__CONTEXT_IMPL_H_
16 #define RCL__CONTEXT_IMPL_H_
17 
18 #include "rcl/context.h"
19 #include "rcl/error_handling.h"
20 
21 #include "./init_options_impl.h"
22 
23 #ifdef __cplusplus
24 extern "C"
25 {
26 #endif
27 
30 {
36  int64_t argc;
38  char ** argv;
40  rmw_context_t rmw_context;
41 };
42 
43 RCL_LOCAL
45 __cleanup_context(rcl_context_t * context);
46 
47 #ifdef __cplusplus
48 }
49 #endif
50 
51 #endif // RCL__CONTEXT_IMPL_H_
rcutils_allocator_t rcl_allocator_t
Encapsulation of an allocator.
Definition: allocator.h:31
char ** argv
Copy of argv used during init (may be NULL).
Definition: context_impl.h:38
rmw_context_t rmw_context
rmw context.
Definition: context_impl.h:40
int64_t argc
Length of argv (may be 0).
Definition: context_impl.h:36
rcl_init_options_t init_options
Copy of init options given during init.
Definition: context_impl.h:34
rcl_allocator_t allocator
Allocator used during init and shutdown.
Definition: context_impl.h:32
Encapsulates the non-global state of an init/shutdown cycle.
Definition: context.h:114
Encapsulation of init options and implementation defined init options.
Definition: init_options.h:36
rmw_ret_t rcl_ret_t
The type that holds an rcl return code.
Definition: types.h:24