FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
VesselDeploy.h
1#pragma once
55#include <stdio.h>
56#include <string>
57
58#include <fhsim/simobject/SimObject.h>
59#include "trawl/TrawlVessel.h"
60#include "AttractorNetBin.h"
61
63{
64public:
66 VesselDeploy(std::string simObjectName, ISimObjectCreator* creator);
67
70
72 static void CheckAttractor(ISimObjectCreator* const creator, const std::string& which, double radius, double stiffness, double damping);
73
75 double DesiredSpeed(const double dT, const double* const adX) const override;
76
78 double DesiredHeading(const double dT, const double* const adX) const override;
79
80protected:
81
82 double m_apSpeed;
83
86 void NetBinPosAndVel(const double dT, const double* const adX, double pos[3], double vel[3]) const;
87
88 double m_netbinPos_body[3];
89
90 ISignalPort* m_inHeading;
91 ISignalPort* m_inVel;
92
93 std::string m_netAttractor;
94 std::string m_warpAttractor;
95 AttractorNetBin NetBinAttractor;
96 AttractorNetBin WarpAttractor;
97};
The net bin of Seine/Vessel: a sphere that pulls the net and warp nodes inside it.
Definition AttractorNetBin.h:16
Class modelling a simple vessel used for the trawl optimization tool.
Definition TrawlVessel.h:20
Definition VesselDeploy.h:63
double m_apSpeed
The speed of the autopilot.
Definition VesselDeploy.h:82
VesselDeploy(std::string simObjectName, ISimObjectCreator *creator)
The constructor sets the pointer to the output object and the parser object.
void NetBinPosAndVel(const double dT, const double *const adX, double pos[3], double vel[3]) const
double DesiredHeading(const double dT, const double *const adX) const override
The commanded heading: the Heading input at (dT, adX).
~VesselDeploy()
The destructor cleans up.
static void CheckAttractor(ISimObjectCreator *const creator, const std::string &which, double radius, double stiffness, double damping)
Reports a parameter error when an attractor's radius is not above zero or its stiffness or damping is...
ISignalPort * m_inVel
The Vel input port, a scalar speed.
Definition VesselDeploy.h:91
double DesiredSpeed(const double dT, const double *const adX) const override
The commanded speed: the Vel input at (dT, adX).
ISignalPort * m_inHeading
The Heading input port.
Definition VesselDeploy.h:90