CARLA
载入中...
搜索中...
未找到
LibCarla
source
third-party
odrSpiral
odrSpiral.h
浏览该文件的文档.
1
/* ===================================================
2
* file: odrSpiral.c
3
* ---------------------------------------------------
4
* purpose: free sample for computing spirals
5
* in OpenDRIVE applications //这行注释说明了这段代码的用途:它是一个用于在OpenDRIVE应用程序中计算螺旋线的示例代码。
6
* ---------------------------------------------------
7
* first edit: 09.03.2010 by M. Dupuis @ VIRES GmbH
8
* last mod.: 09.03.2010 by M. Dupuis @ VIRES GmbH
9
* ===================================================
10
11
Copyright 2010 VIRES Simulationstechnologie GmbH//这表明这段代码的版权归VIRES Simulationstechnologie GmbH所有,版权年份是2010年。
12
13
Licensed under the Apache License, Version 2.0 (the "License");//这表示代码是在Apache License 2.0版本下授权的。Apache License是一种开源软件许可证,允许用户自由使用、修改和分发软件。
14
you may not use this file except in compliance with the License.//这意味着用户必须遵守Apache License 2.0才能使用这段代码。
15
You may obtain a copy of the License at
16
17
http://www.apache.org/licenses/LICENSE-2.0//提供了获取许可证副本的链接:http://www.apache.org/licenses/LICENSE-2.0
18
19
Unless required by applicable law or agreed to in writing, software
20
distributed under the License is distributed on an "AS IS" BASIS,
21
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.//这是典型的开源软件免责声明,表明软件是“按原样”提供的,没有任何形式的保证。
22
See the License for the specific language governing permissions and
23
limitations under the License.//这提示用户查看许可证以了解具体的权限和限制。
24
*/
25
26
/**
27
* compute the actual "standard" spiral, starting with curvature 0
28
* @param s run-length along spiral//这表示参数s是沿着螺旋线的运行长度。
29
* @param cDot first derivative of curvature [1/m2]//参数cDot是曲率的一阶导数,单位是每平方米(1/m²)。
30
* @param x resulting x-coordinate in spirals local co-ordinate system [m]//参数x是在螺旋线局部坐标系中的x坐标,单位是米(m)。
31
* @param y resulting y-coordinate in spirals local co-ordinate system [m]//参数y是在螺旋线局部坐标系中的y坐标,单位是米(m)。
32
* @param t tangent direction at s [rad]//参数t是在s处的切线方向,单位是弧度(rad)。
33
*/
34
35
extern
void
odrSpiral
(
double
s,
double
cDot,
double
*x,
double
*y,
double
*t );
odrSpiral
void odrSpiral(double s, double cDot, double *x, double *y, double *t)
compute the actual "standard" spiral, starting with curvature 0
Definition
odrSpiral.cpp:240
制作者
1.10.0