rcl  master
C API providing common ROS client library functionality.
types.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 
15 #ifndef RCL__TYPES_H_
16 #define RCL__TYPES_H_
17 
18 #include <rmw/types.h>
19 
22 #define RCL_RET_OK RMW_RET_OK
23 #define RCL_RET_ERROR RMW_RET_ERROR
25 #define RCL_RET_TIMEOUT RMW_RET_TIMEOUT
27 #define RCL_RET_BAD_ALLOC RMW_RET_BAD_ALLOC
29 #define RCL_RET_INVALID_ARGUMENT RMW_RET_INVALID_ARGUMENT
31 
32 // rcl specific ret codes start at 100
34 #define RCL_RET_ALREADY_INIT 100
35 #define RCL_RET_NOT_INIT 101
37 #define RCL_RET_MISMATCHED_RMW_ID 102
39 #define RCL_RET_TOPIC_NAME_INVALID 103
41 #define RCL_RET_SERVICE_NAME_INVALID 104
43 #define RCL_RET_UNKNOWN_SUBSTITUTION 105
45 #define RCL_RET_ALREADY_SHUTDOWN 106
47 
48 // rcl node specific ret codes in 2XX
50 #define RCL_RET_NODE_INVALID 200
51 #define RCL_RET_NODE_INVALID_NAME 201
52 #define RCL_RET_NODE_INVALID_NAMESPACE 202
53 
54 // rcl publisher specific ret codes in 3XX
56 #define RCL_RET_PUBLISHER_INVALID 300
57 
58 // rcl subscription specific ret codes in 4XX
60 #define RCL_RET_SUBSCRIPTION_INVALID 400
61 #define RCL_RET_SUBSCRIPTION_TAKE_FAILED 401
63 
64 // rcl service client specific ret codes in 5XX
66 #define RCL_RET_CLIENT_INVALID 500
67 #define RCL_RET_CLIENT_TAKE_FAILED 501
69 
70 // rcl service server specific ret codes in 6XX
72 #define RCL_RET_SERVICE_INVALID 600
73 #define RCL_RET_SERVICE_TAKE_FAILED 601
75 
76 // rcl guard condition specific ret codes in 7XX
77 
78 // rcl timer specific ret codes in 8XX
80 #define RCL_RET_TIMER_INVALID 800
81 #define RCL_RET_TIMER_CANCELED 801
83 
84 // rcl wait and wait set specific ret codes in 9XX
86 #define RCL_RET_WAIT_SET_INVALID 900
87 #define RCL_RET_WAIT_SET_EMPTY 901
89 #define RCL_RET_WAIT_SET_FULL 902
91 
92 // rcl argument parsing specific ret codes in 1XXX
94 #define RCL_RET_INVALID_REMAP_RULE 1001
95 #define RCL_RET_WRONG_LEXEME 1002
97 #define RCL_RET_INVALID_PARAM_RULE 1010
99 #define RCL_RET_INVALID_LOG_LEVEL_RULE 1020
101 
104 
105 #endif // RCL__TYPES_H_
rmw_serialized_message_t rcl_serialized_message_t
typedef for rmw_serialized_message_t;
Definition: types.h:103
rmw_ret_t rcl_ret_t
Definition: types.h:20
int32_t rmw_ret_t