rcl  beta1
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 
28 // rcl specific ret codes start at 100
30 #define RCL_RET_ALREADY_INIT 100
31 #define RCL_RET_NOT_INIT 101
33 #define RCL_RET_BAD_ALLOC 102
35 #define RCL_RET_INVALID_ARGUMENT 103
37 #define RCL_RET_MISMATCHED_RMW_ID 104
39 
40 // rcl node specific ret codes in 2XX
42 #define RCL_RET_NODE_INVALID 200
43 
44 // rcl publisher specific ret codes in 3XX
46 #define RCL_RET_PUBLISHER_INVALID 300
47 
48 // rcl subscription specific ret codes in 4XX
50 #define RCL_RET_SUBSCRIPTION_INVALID 400
51 #define RCL_RET_SUBSCRIPTION_TAKE_FAILED 401
53 
54 // rcl service client specific ret codes in 5XX
56 #define RCL_RET_CLIENT_INVALID 500
57 #define RCL_RET_CLIENT_TAKE_FAILED 501
59 
60 // rcl service server specific ret codes in 6XX
62 #define RCL_RET_SERVICE_INVALID 600
63 #define RCL_RET_SERVICE_TAKE_FAILED 601
65 
66 // rcl guard condition specific ret codes in 7XX
67 
68 // rcl timer specific ret codes in 8XX
70 #define RCL_RET_TIMER_INVALID 800
71 #define RCL_RET_TIMER_CANCELED 801
73 
74 // rcl wait and wait set specific ret codes in 9XX
76 #define RCL_RET_WAIT_SET_INVALID 900
77 #define RCL_RET_WAIT_SET_EMPTY 901
79 #define RCL_RET_WAIT_SET_FULL 902
81 
82 #endif // RCL__TYPES_H_
rmw_ret_t rcl_ret_t
Definition: types.h:20
int rmw_ret_t