ROS 2 rclcpp + rcl - rolling
rolling-e7363f10
ROS 2 C++ Client Library with ROS Client Library
rcl
include
rcl
init.h
Go to the documentation of this file.
1
// Copyright 2014 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
16
17
#ifndef RCL__INIT_H_
18
#define RCL__INIT_H_
19
20
#ifdef __cplusplus
21
extern
"C"
22
{
23
#endif
24
25
#include "
rcl/context.h
"
26
#include "
rcl/init_options.h
"
27
#include "rcl/macros.h"
28
#include "
rcl/types.h
"
29
#include "rcl/visibility_control.h"
30
32
77
RCL_PUBLIC
78
RCL_WARN_UNUSED
79
rcl_ret_t
80
rcl_init
(
81
int
argc,
82
char
const
*
const
* argv,
83
const
rcl_init_options_t
* options,
84
rcl_context_t
* context);
85
87
111
RCL_PUBLIC
112
RCL_WARN_UNUSED
113
rcl_ret_t
114
rcl_shutdown
(
rcl_context_t
* context);
115
116
#ifdef __cplusplus
117
}
118
#endif
119
120
#endif
// RCL__INIT_H_
context.h
rcl_shutdown
RCL_PUBLIC RCL_WARN_UNUSED rcl_ret_t rcl_shutdown(rcl_context_t *context)
Shutdown a given rcl context.
Definition:
init.c:296
rcl_init
RCL_PUBLIC RCL_WARN_UNUSED rcl_ret_t rcl_init(int argc, char const *const *argv, const rcl_init_options_t *options, rcl_context_t *context)
Initialization of rcl.
Definition:
init.c:60
init_options.h
rcl_context_s
Encapsulates the non-global state of an init/shutdown cycle.
Definition:
context.h:117
rcl_init_options_s
Encapsulation of init options and implementation defined init options.
Definition:
init_options.h:38
types.h
rcl_ret_t
rmw_ret_t rcl_ret_t
The type that holds an rcl return code.
Definition:
types.h:25
Generated by
1.9.1