LRAUV  revA
Point.h
Go to the documentation of this file.
1 
12 #ifndef POINT_H_
13 #define POINT_H_
14 
15 #include "component/Behavior.h"
16 
18 
29 class Point : public Behavior
30 {
31 public:
32 
33  Point( const Str& prefix, const Module* module );
34 
35  virtual ~Point();
36 
38  void initialize();
39 
41  bool readParams();
42 
44  bool calcSatisfied();
45 
47  void run();
48 
50  bool isSatisfied();
51 
53  bool runIfUnsatisfied();
54 
56  void uninitialize();
57 
59  static Behavior* CreateBehavior( const Str& prefix, const Module* module );
60 
61 protected:
62 
63  // Slate input setting variables
64 
70 
76 
83 
91 
96 
102 
108 
113 
119 
125 
126  // Slate input measurements
127 
130 
133 
136 
137  // Slate output variables
138 
141 
144 
147 
150 
153 
156 
157  // Settings
158 
161 
164 
167 
170 
173 
174  // Initial Values
175 
178 
181 
184 
185  // Current Values
186 
188  float latitude_;
189 
191  float longitude_;
192 
195 
198 
201 
205 
208 
209 private:
210  // Note that the copy constructor below is private and not given a body.
211  // Any attempt to call it will return a compiler error.
212  Point( const Point& old ); // disallow copy constructor
213 
214 };
215 
216 #endif /*POINT_H_*/
void uninitialize()
Uninit function.
Definition: Point.cpp:413
bool startOverLine_
Is our starting point latitude > than the latitude of the starting longitude on the crossing line...
Definition: Point.h:204
DataWriter * headingCmdWriter_
Sets the specified bearing for HorizontalControl.
Definition: Point.h:149
void initialize()
Initialize function.
Definition: Point.cpp:89
DataWriter * rudderAngleCmdWriter_
Sets the specified rudder angle for HorizontalControl.
Definition: Point.h:155
A DataAccessor that reads values from the Slate Contains a default dataValue that must not be NULL...
Definition: UniversalDataReader.h:26
DataWriter * latitudeCmdWriter_
Sets the specified latitude for HorizontalControl.
Definition: Point.h:143
SettingReader * longitudeSettingReader_
Desired longitude to achieve.
Definition: Point.h:112
float rudderAngleSetting_
Desired rudder angle for the vehicle.
Definition: Point.h:172
float headingSetting_
Desired orientation of the vehicle.
Definition: Point.h:166
float latitude_
Current Latitude of the vehicle.
Definition: Point.h:188
SettingReader * eastingsDeltaSettingReader_
Desired change in longitude to achieve, expressed as a distance.
Definition: Point.h:124
Contains the Point Behavior/Command.
Definition: Point.h:29
Behavior is the abstract base class for components that implement mission behaviors and commands...
Definition: Behavior.h:32
DataWriter * horizontalModeWriter_
Sets the mode for HorizontalControl.
Definition: Point.h:140
float orientation_
Current Orientation of the vehicle.
Definition: Point.h:194
bool runIfUnsatisfied()
Do the run, and return true if envelope "satisfied".
Definition: Point.cpp:338
static Behavior * CreateBehavior(const Str &prefix, const Module *module)
Mission Component factory interface.
Definition: Point.cpp:419
A DataAccessor that writes values to the Slate via its associated DataElement.
Definition: DataWriter.h:27
SettingReader * headingSettingReader_
Desired absolute bearing to direct the vehicle to.
Definition: Point.h:69
float initialLatitude_
Initial latitude of the vehicle.
Definition: Point.h:177
void run()
Just do the run: ignore the results of the satisfied.
Definition: Point.cpp:321
Contains the Behavior class definition.
DataWriter * longitudeCmdWriter_
Sets the specified longitude for HorizontalControl.
Definition: Point.h:146
float lastOrientationDelta_
Last orientation delta of the vehicle.
Definition: Point.h:197
Module is the abstract base class for a collection of Component objects that can be contained in a lo...
Definition: Module.h:45
float latitudeSetting_
Desired latitude of the vehicle.
Definition: Point.h:160
virtual ~Point()
Definition: Point.cpp:85
float headingRateSetting_
Desired yaw rate of the vehicle.
Definition: Point.h:169
Replacement for standard template class string.
Definition: Str.h:12
SettingReader * headingRateSettingReader_
Desired rate of change in heading.
Definition: Point.h:82
SettingReader * rudderAngleSettingReader_
Desired rudder angle for the vehicle.
Definition: Point.h:90
SettingReader * latitudeDeltaSettingReader_
Desired change in latitude to achieve.
Definition: Point.h:101
float initialLongitude_
Initial longitude of the vehicle.
Definition: Point.h:180
float longitude_
Current Longitude of the vehicle.
Definition: Point.h:191
UniversalDataReader * latitudeReader_
Current latitude of the vehicle.
Definition: Point.h:129
bool isSatisfied()
Just do the satisfied: return true if envelope "satisfied".
Definition: Point.cpp:327
UniversalDataReader * longitudeReader_
Current longitude of the vehicle.
Definition: Point.h:132
SettingReader * northingsDeltaSettingReader_
Desired change in latitude to achieve, expressed as a distance.
Definition: Point.h:107
Point(const Str &prefix, const Module *module)
Is our starting point latitude > than the latitude of the starting longitude on the crossing line...
Definition: Point.cpp:22
float longitudeSetting_
Desired longitude of the vehicle.
Definition: Point.h:163
SettingReader * longitudeDeltaSettingReader_
Desired change in longitude to achieve.
Definition: Point.h:118
Reads values from mission settings.
Definition: SettingReader.h:26
bool readParams()
Read in the parameters for satisfied or runIfUnsatisfied: return true if OK.
Definition: Point.cpp:230
bool calcSatisfied()
Perform the satisfied: return true if envelope "satisfied".
Definition: Point.cpp:275
DataWriter * headingRateCmdWriter_
Sets the specified yaw rate for HorizontalControl.
Definition: Point.h:152
UniversalDataReader * orientationReader_
Current orientation of the vehicle.
Definition: Point.h:135
float perpendicularSlope_
Slope for crossing line (thru wapoint)
Definition: Point.h:200
SettingReader * latitudeSettingReader_
Desired latitude to achieve.
Definition: Point.h:95
float initialOrientation_
Initial orientation of the vehicle.
Definition: Point.h:183
bool initialized_
Have we learned all our initial settings?
Definition: Point.h:207
SettingReader * headingDeltaSettingReader_
Desired change in heading to direct the vehicle to.
Definition: Point.h:75