Message_cmd.h
Go to the documentation of this file.
1 
46 #ifndef CLEARPATH_MESSAGE_CMD_H
47 #define CLEARPATH_MESSAGE_CMD_H
48 
50 
51 namespace clearpath
52 {
53 
54  class CmdMessage : public Message
55  {
56  private:
57  static long total_destroyed;
58  static long total_sent;
59 
60  public:
62  {
63  }
64 
65  CmdMessage(const CmdMessage &other) : Message(other)
66  {
67  }
68 
69  virtual ~CmdMessage();
70  };
71 
73  {
74  public:
76 
78  };
79 
81  {
82  public:
84  {
85  USER_SETTINGS = 0x1,
86  FACTORY_SETTINGS = 0x2
87  };
88  public:
89  CmdRestoreSettings(enum restoreFlags flags);
90 
92  };
93 
95  {
96  public:
98 
99  CmdStoreSettings(const CmdStoreSettings &other);
100  };
101 
103  {
104  public:
106  {
107  STEERING = 0,
108  THROTTLE = 2,
109  BRAKE = 4,
110  PAYLOAD_LEN = 6
111  };
112 
113  public:
114  SetAckermannOutput(double steering, double throt, double brake);
115 
117  };
118 
120  {
121  public:
123  {
124  LEFT_P = 0,
125  LEFT_I = 2,
126  LEFT_D = 4,
127  LEFT_FEEDFWD = 6,
128  LEFT_STIC = 8,
129  LEFT_INT_LIM = 10,
130  RIGHT_P = 12,
131  RIGHT_I = 14,
132  RIGHT_D = 16,
133  RIGHT_FEEDFWD = 18,
134  RIGHT_STIC = 20,
135  RIGHT_INT_LIM = 22,
136  PAYLOAD_LEN = 24
137  };
138 
139  public:
140  SetDifferentialControl(double p,
141  double i,
142  double d,
143  double feedfwd,
144  double stic,
145  double int_lim);
146 
147  SetDifferentialControl(double left_p,
148  double left_i,
149  double left_d,
150  double left_feedfwd,
151  double left_stic,
152  double left_int_lim,
153  double right_p,
154  double right_i,
155  double right_d,
156  double right_feedfwd,
157  double right_stic,
158  double right_int_lim);
159 
161  };
162 
164  {
165  public:
167  {
168  LEFT = 0,
169  RIGHT = 2,
170  PAYLOAD_LEN = 4
171  };
172 
173  public:
174  SetDifferentialOutput(double left, double right);
175 
177  };
178 
180  {
181  public:
183  {
184  LEFT_SPEED = 0,
185  RIGHT_SPEED = 2,
186  LEFT_ACCEL = 4,
187  RIGHT_ACCEL = 6,
188  PAYLOAD_LEN = 8
189  };
190 
191  public:
192  SetDifferentialSpeed(double left_spd, double right_speed, double left_accel, double right_accel);
193 
195  };
196 
197  class SetGear : public CmdMessage
198  {
199  public:
200  SetGear(uint8_t gear);
201 
202  SetGear(const SetGear &other);
203  };
204 
205  class SetMaxAccel : public CmdMessage
206  {
207  public:
209  {
210  MAX_FWD = 0,
211  MAX_REV = 2,
212  PAYLOAD_LEN = 4
213  };
214 
215  public:
216  SetMaxAccel(double max_fwd, double max_rev);
217 
218  SetMaxAccel(const SetMaxAccel &other);
219  };
220 
221  class SetMaxSpeed : public CmdMessage
222  {
223  public:
225  {
226  MAX_FWD = 0,
227  MAX_REV = 2,
228  PAYLOAD_LEN = 4
229  };
230 
231  public:
232  SetMaxSpeed(double max_fwd, double max_rev);
233 
234  SetMaxSpeed(const SetMaxSpeed &other);
235  };
236 
238  {
239  public:
240  SetPlatformName(const char *name);
241 
242  SetPlatformName(const SetPlatformName &other);
243  };
244 
246  {
247  public:
248  SetPlatformTime(uint32_t time);
249 
250  SetPlatformTime(const SetPlatformTime &other);
251  };
252 
254  {
255  public:
256  SetSafetySystem(uint16_t flags);
257 
258  SetSafetySystem(const SetSafetySystem &other);
259  };
260 
261  class SetTurn : public CmdMessage
262  {
263  public:
265  {
266  TRANSLATIONAL = 0,
267  TURN_RADIUS = 2,
268  TRANS_ACCEL = 4,
269  PAYLOAD_LEN = 6
270  };
271 
272  public:
273  SetTurn(double trans, double rad, double accel);
274 
275  SetTurn(const SetTurn &other);
276  };
277 
278  class SetVelocity : public CmdMessage
279  {
280  public:
282  {
283  TRANSLATIONAL = 0,
284  ROTATIONAL = 2,
285  TRANS_ACCEL = 4,
286  PAYLOAD_LEN = 6
287  };
288 
289  public:
290  SetVelocity(double trans, double rot, double accel);
291 
292  SetVelocity(const SetVelocity &other);
293  };
294 
295 }; // namespace clearpath
296 
297 #endif // CLEARPATH_MESSAGE_CMD_H
298 
static long total_destroyed
Definition: Message_cmd.h:57
static long total_sent
Definition: Message_cmd.h:58
CmdMessage(const CmdMessage &other)
Definition: Message_cmd.h:65


husky_base
Author(s): Mike Purvis , Paul Bovbel
autogenerated on Fri Oct 2 2020 03:40:07