ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
map_auxiliary.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2017-2020 German Aerospace Center (DLR).
3  * Eclipse ADORe, Automated Driving Open Research https://eclipse.org/adore
4  *
5  * This program and the accompanying materials are made available under the
6  * terms of the Eclipse Public License 2.0 which is available at
7  * http://www.eclipse.org/legal/epl-2.0.
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  * Thomas Lobig - initial API and implementation
13  ********************************************************************************/
14 
15 
16 #pragma once
17 
18 #include <vector>
19 
20 namespace adore
21 {
22  namespace env
23  {
24  namespace MAP_AUX
25  {
34  inline std::vector<double> getCornerPoints(double x, double y, double r)
35  {
36  std::vector<double> value;
37 
38  value.push_back(x-r);
39  value.push_back(x+r);
40  value.push_back(y-r);
41  value.push_back(y+r);
42 
43  return value;
44  }
45  }
46  }
47 }
std::vector< double > getCornerPoints(double x, double y, double r)
Get corner points vector from center point and radius.
Definition: map_auxiliary.h:34
x
Definition: adore_set_goal.py:30
y
Definition: adore_set_goal.py:31
r
Definition: adore_suppress_lanechanges.py:209
Definition: areaofeffectconverter.h:20