Marine systems simulation
VeresData.h
1#ifndef _CVERES_THEORY_H_
2#define _CVERES_THEORY_H_
3
4#include <string>
5#include <map>
6
7#include <Eigen/Eigen>
8
9#include "../HullData/HullData.h"
10#include "PotentialData.h"
11
12namespace Ship{
14 {
15 public:
16 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
17 VeresData( const std::string &fname, int flipPhaseForOSC = 0);
18 void Read( const std::string &fname, int flipPhaseForOSC = 0);
19 Eigen::Matrix<double,6,6> GetHToO();
20
21 static double ToFhSimHeading(double Heading);
22 static double FromFhSimHeading(double Heading);
23
24 void SetOriginWorigin();
25 void SetOriginGorigin();
26 void SetOrigin( Eigen::Matrix<double,3,1> &r );
27
28 protected:
29 bool is2Ddata(){
30 return true;
31 }
32
33 private:
34 bool m_addViscousRollVERES;
35
36 void ReadRE2(const std::string &fname);
37 void ReadRE7(const std::string &fname);
38 void ReadRE8(const std::string &fname, int flipPitchPhaseForOSC);
39 void ReadHYD(const std::string &fname);
40
41 Eigen::Matrix<double,6,6> VtoF;
42 };
43}
44
45#endif
46
Definition: PotentialData.h:28
Definition: VeresData.h:14
Simple waypoint object.
Definition: CableAttach.h:16