$darkmode
cloe
g1_fitting.hpp
Go to the documentation of this file.
1
/*
2
* Copyright 2023 Robert Bosch GmbH
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*
16
* SPDX-License-Identifier: Apache-2.0
17
*/
18
/*
19
* The present code was adapted from
20
* https://github.com/ebertolazzi/G1fitting/blob/master/src/Clothoid.cc
21
*
22
* Copyright (c) 2016, Enrico Bertolazzi
23
* All rights reserved.
24
*
25
* Redistribution and use in source and binary forms, with or without
26
* modification, are permitted provided that the following conditions are
27
* met:
28
*
29
* * Redistributions of source code must retain the above copyright
30
* notice, this list of conditions and the following disclaimer.
31
* * Redistributions in binary form must reproduce the above copyright
32
* notice, this list of conditions and the following disclaimer in
33
* the documentation and/or other materials provided with the distribution
34
*
35
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
36
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
37
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
38
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
39
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
40
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
41
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
42
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
43
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
44
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
45
* POSSIBILITY OF SUCH DAMAGE.
46
*/
52
namespace
g1_fit {
53
72
void
calc_clothoid
(
double
x0,
73
double
y0,
74
double
theta0,
75
double
x1,
76
double
y1,
77
double
theta1,
78
double
& k,
79
double
& dk,
80
double
& L);
81
101
void
calc_std_fresnel_integral
(
double
y,
double
& int_c,
double
& int_s);
102
103
}
// namespace g1_fit
g1_fit::calc_clothoid
void calc_clothoid(double x0, double y0, double theta0, double x1, double y1, double theta1, double &k, double &dk, double &l)
Definition:
g1_fitting.cpp:553
g1_fit::calc_std_fresnel_integral
void calc_std_fresnel_integral(double y, double &int_c, double &int_s)
Definition:
g1_fitting.cpp:111
plugins
clothoid_fit
src
g1_fitting.hpp
Generated on Mon Jul 15 2024 14:31:24 for cloe by
1.9.1