PathState.h
Go to the documentation of this file.
1 //=============================================================================
2 // Copyright (C) 2021-2024 Wageningen University - All Rights Reserved
3 // Author: Gonzalo Mier
4 // BSD-3 License
5 //=============================================================================
6 
7 #pragma once
8 #ifndef FIELDS2COVER_TYPES_PATHSTATE_H_
9 #define FIELDS2COVER_TYPES_PATHSTATE_H_
10 
12 
13 namespace f2c::types {
14 
15 enum class PathSectionType {
16  SWATH = 1,
17  TURN = 2,
18  HL_SWATH = 3,
19 };
20 
21 enum class PathDirection {
22  FORWARD = 1,
23  BACKWARD = -1,
24  // STOP = 0,
25 };
26 
27 struct PathState {
28  Point point {0, 0, 0};
29  double angle {0.0};
30  double len {0.0}; // >= 0
33  double velocity {1.0};
34 
35  public:
36  Point atEnd() const;
37 };
38 
39 
40 } // namespace f2c::types
41 
42 #endif // FIELDS2COVER_TYPES_PATHSTATE_H_
f2c::types::PathDirection
PathDirection
Definition: PathState.h:21
f2c::types::PathSectionType::HL_SWATH
@ HL_SWATH
Point.h
f2c::types
Types used by fields2cover library.
Definition: Cell.h:20
f2c::types::PathState::point
Point point
Definition: PathState.h:28
f2c::types::PathState::type
PathSectionType type
Definition: PathState.h:32
f2c::types::PathState::dir
PathDirection dir
Definition: PathState.h:31
f2c::types::PathState
Definition: PathState.h:27
f2c::types::PathSectionType
PathSectionType
Definition: PathState.h:15
f2c::types::PathDirection::FORWARD
@ FORWARD
f2c::types::PathDirection::BACKWARD
@ BACKWARD
f2c::types::PathSectionType::SWATH
@ SWATH
f2c::types::Point
Definition: Point.h:21
f2c::types::PathState::atEnd
Point atEnd() const
Definition: PathState.cpp:11
f2c::types::PathSectionType::TURN
@ TURN
f2c::types::PathState::len
double len
Definition: PathState.h:30
f2c::types::PathState::angle
double angle
Definition: PathState.h:29
f2c::types::PathState::velocity
double velocity
Definition: PathState.h:33


fields2cover
Author(s):
autogenerated on Fri Apr 25 2025 02:18:31