Coverage Control Library
Loading...
Searching...
No Matches
constants.h
Go to the documentation of this file.
1
/*
2
* This file is part of the CoverageControl library
3
*
4
* Author: Saurav Agarwal
5
* Contact: sauravag@seas.upenn.edu, agr.saurav1@gmail.com
6
* Repository: https://github.com/KumarRobotics/CoverageControl
7
*
8
* Copyright (c) 2024, Saurav Agarwal
9
*
10
* The CoverageControl library is free software: you can redistribute it and/or
11
* modify it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation, either version 3 of the License, or (at your
13
* option) any later version.
14
*
15
* The CoverageControl library is distributed in the hope that it will be
16
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
18
* Public License for more details.
19
*
20
* You should have received a copy of the GNU General Public License along with
21
* CoverageControl library. If not, see <https://www.gnu.org/licenses/>.
22
*/
23
29
#ifndef CPPSRC_CORE_INCLUDE_COVERAGECONTROL_CONSTANTS_H_
30
#define CPPSRC_CORE_INCLUDE_COVERAGECONTROL_CONSTANTS_H_
31
32
#include <cmath>
33
#include <limits>
34
35
#include "CoverageControl/Config.h"
36
41
namespace
CoverageControl
{
48
double
const
kEps
= 1e-10;
49
float
const
kEpsf
= 1e-6f;
50
double
const
kLargeEps
= 1e-4;
51
double
const
kSqrt2
= std::sqrt(2);
52
double
const
kOneBySqrt2
= 1. / std::sqrt(2);
53
float
const
kOneBySqrt2f
= 1.f / sqrtf(2.f);
54
double
const
kInfD
=
55
std::numeric_limits<double>::infinity();
56
constexpr
auto
kMaxPrecision
{std::numeric_limits<long double>::digits10 +
57
1};
63
}
/* namespace CoverageControl */
64
#endif
// CPPSRC_CORE_INCLUDE_COVERAGECONTROL_CONSTANTS_H_
CoverageControl::kEps
double const kEps
Definition
constants.h:48
CoverageControl::kInfD
double const kInfD
Definition
constants.h:54
CoverageControl::kSqrt2
double const kSqrt2
Definition
constants.h:51
CoverageControl::kLargeEps
double const kLargeEps
Definition
constants.h:50
CoverageControl::kOneBySqrt2
double const kOneBySqrt2
Definition
constants.h:52
CoverageControl::kMaxPrecision
constexpr auto kMaxPrecision
Definition
constants.h:56
CoverageControl::kOneBySqrt2f
float const kOneBySqrt2f
Definition
constants.h:53
CoverageControl::kEpsf
float const kEpsf
Definition
constants.h:49
CoverageControl
Namespace for the CoverageControl library.
Definition
abstract_controller.h:34
cppsrc
core
include
CoverageControl
constants.h
Generated by
1.12.0