include
fields2cover
objectives
rp_obj
direct_dist_path_obj.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_OBJECTIVES_DIRECT_DIST_PATH_OBJ_H_
9
#define FIELDS2COVER_OBJECTIVES_DIRECT_DIST_PATH_OBJ_H_
10
11
#include "
fields2cover/types.h
"
12
#include "
fields2cover/objectives/rp_obj/rp_objective.h
"
13
14
namespace
f2c::obj
{
15
17
class
DirectDistPathObj
:
public
RPObjective
{
18
public
:
19
using
RPObjective::computeCost
;
20
21
double
computeCost
(
const
F2CPoint
&
p1
,
const
F2CPoint
&
p2
)
override
;
22
};
23
24
25
}
// namespace f2c::obj
26
27
#endif // FIELDS2COVER_OBJECTIVES_DIRECT_DIST_PATH_OBJ_H_
1_basic_types.p1
p1
Definition:
1_basic_types.py:11
types.h
f2c::obj::DirectDistPathObj
Path cost function as the straight distance between points in a route.
Definition:
direct_dist_path_obj.h:17
f2c::obj
Objective algorithms' namespace.
Definition:
base_objective.h:14
1_basic_types.p2
p2
Definition:
1_basic_types.py:15
f2c::types::Point
Definition:
Point.h:21
rp_objective.h
f2c::obj::RPObjective::computeCost
virtual double computeCost(const F2CPoint &p1, const F2CPoint &p2)
Definition:
rp_objective.cpp:11
f2c::obj::DirectDistPathObj::computeCost
double computeCost(const F2CPoint &p1, const F2CPoint &p2) override
Definition:
direct_dist_path_obj.cpp:11
f2c::obj::RPObjective
Base class for objective functions of route planners.
Definition:
rp_objective.h:18
fields2cover
Author(s):
autogenerated on Fri Apr 25 2025 02:18:31