-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathobstacleStopper.h
191 lines (146 loc) · 5.85 KB
/
obstacleStopper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
//
// Academic License - for use in teaching, academic research, and meeting
// course requirements at degree granting institutions only. Not for
// government, commercial, or other organizational use.
//
// File: obstacleStopper.h
//
// Code generated for Simulink model 'obstacleStopper'.
//
// Model version : 1.8
// Simulink Coder version : 8.10 (R2016a) 10-Feb-2016
// C/C++ source code generated on : Fri Jan 27 11:14:49 2017
//
// Target selection: ert.tlc
// Embedded hardware selection: Generic->Unspecified (assume 32-bit Generic)
// Code generation objectives: Unspecified
// Validation result: Not run
//
#ifndef RTW_HEADER_obstacleStopper_h_
#define RTW_HEADER_obstacleStopper_h_
#include <stddef.h>
#include <string.h>
#ifndef obstacleStopper_COMMON_INCLUDES_
# define obstacleStopper_COMMON_INCLUDES_
#include "rtwtypes.h"
#include "slros_initialize.h"
#endif // obstacleStopper_COMMON_INCLUDES_
#include "obstacleStopper_types.h"
// Macros for accessing real-time model data structure
#ifndef rtmGetErrorStatus
# define rtmGetErrorStatus(rtm) ((rtm)->errorStatus)
#endif
#ifndef rtmSetErrorStatus
# define rtmSetErrorStatus(rtm, val) ((rtm)->errorStatus = (val))
#endif
// Block signals (auto storage)
typedef struct {
SL_Bus_obstacleStopper_geometry_msgs_Twist In1;// '<S9>/In1'
SL_Bus_obstacleStopper_geometry_msgs_Twist BusAssignment;// '<Root>/Bus Assignment'
char_T cv0[35];
SL_Bus_obstacleStopper_std_msgs_Float32 In1_d;// '<S8>/In1'
} B_obstacleStopper_T;
// Block states (auto storage) for system '<Root>'
typedef struct {
real_T sinceLastMsg; // '<S2>/timeout set to 0 output'
void *SourceBlock_PWORK; // '<S6>/SourceBlock'
void *SourceBlock_PWORK_b; // '<S5>/SourceBlock'
void *SinkBlock_PWORK; // '<S4>/SinkBlock'
robotics_slros_internal_block_T obj; // '<S4>/SinkBlock'
robotics_slros_internal_blo_f_T obj_l;// '<S6>/SourceBlock'
robotics_slros_internal_blo_f_T obj_e;// '<S5>/SourceBlock'
boolean_T sinceLastMsg_not_empty; // '<S2>/timeout set to 0 output'
} DW_obstacleStopper_T;
// Parameters (auto storage)
struct P_obstacleStopper_T_ {
real_T DeadMansSwitch_stepSize; // Mask Parameter: DeadMansSwitch_stepSize
// Referenced by: '<S2>/Simulate step size'
real_T DeadMansSwitch_timeout; // Mask Parameter: DeadMansSwitch_timeout
// Referenced by: '<S2>/Timeout in seconds'
SL_Bus_obstacleStopper_geometry_msgs_Twist Out1_Y0;// Computed Parameter: Out1_Y0
// Referenced by: '<S9>/Out1'
SL_Bus_obstacleStopper_geometry_msgs_Twist Constant_Value;// Computed Parameter: Constant_Value
// Referenced by: '<S6>/Constant'
SL_Bus_obstacleStopper_geometry_msgs_Twist Constant_Value_h;// Computed Parameter: Constant_Value_h
// Referenced by: '<S1>/Constant'
real_T Constant_Value_e; // Expression: 5
// Referenced by: '<S3>/Constant'
real_T Saturation_UpperSat; // Expression: 1
// Referenced by: '<S3>/Saturation'
real_T Saturation_LowerSat; // Expression: 0
// Referenced by: '<S3>/Saturation'
SL_Bus_obstacleStopper_std_msgs_Float32 Out1_Y0_h;// Computed Parameter: Out1_Y0_h
// Referenced by: '<S8>/Out1'
SL_Bus_obstacleStopper_std_msgs_Float32 Constant_Value_o;// Computed Parameter: Constant_Value_o
// Referenced by: '<S5>/Constant'
};
// Real-time Model Data Structure
struct tag_RTM_obstacleStopper_T {
const char_T *errorStatus;
};
// Block parameters (auto storage)
#ifdef __cplusplus
extern "C" {
#endif
extern P_obstacleStopper_T obstacleStopper_P;
#ifdef __cplusplus
}
#endif
// Block signals (auto storage)
extern B_obstacleStopper_T obstacleStopper_B;
// Block states (auto storage)
extern DW_obstacleStopper_T obstacleStopper_DW;
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
extern "C" {
#endif
// Model entry point functions
extern void obstacleStopper_initialize(void);
extern void obstacleStopper_step(void);
extern void obstacleStopper_terminate(void);
#ifdef __cplusplus
}
#endif
// Real-time Model object
#ifdef __cplusplus
extern "C" {
#endif
extern RT_MODEL_obstacleStopper_T *const obstacleStopper_M;
#ifdef __cplusplus
}
#endif
//-
// The generated code includes comments that allow you to trace directly
// back to the appropriate location in the model. The basic format
// is <system>/block_name, where system is the system number (uniquely
// assigned by Simulink) and block_name is the name of the block.
//
// Use the MATLAB hilite_system command to trace the generated code back
// to the model. For example,
//
// hilite_system('<S3>') - opens system 3
// hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
//
// Here is the system hierarchy for this model
//
// '<Root>' : 'obstacleStopper'
// '<S1>' : 'obstacleStopper/Blank Message'
// '<S2>' : 'obstacleStopper/Dead Man's Switch'
// '<S3>' : 'obstacleStopper/Obstacle Stopper'
// '<S4>' : 'obstacleStopper/Publish'
// '<S5>' : 'obstacleStopper/Subscribe'
// '<S6>' : 'obstacleStopper/Subscribe1'
// '<S7>' : 'obstacleStopper/Dead Man's Switch/timeout set to 0 output'
// '<S8>' : 'obstacleStopper/Subscribe/Enabled Subsystem'
// '<S9>' : 'obstacleStopper/Subscribe1/Enabled Subsystem'
#endif // RTW_HEADER_obstacleStopper_h_
//
// File trailer for generated code.
//
// [EOF]
//