opendrive_line.cpp 980 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
#include "opendrive_line.h"

COpendriveLine::COpendriveLine()
{

}

COpendriveLine::COpendriveLine(const COpendriveGeometry &object) : COpendriveGeometry(object)
{

}

13
bool COpendriveLine::transform_local_pose(const TOpendriveTrackPose &track,TOpendriveLocalPose &local) const
14
{
15
  local.u=track.s;
16
17
18
19
20
21
22
23
24
25
26
  local.v=track.t;
  local.heading=track.heading;

  return true;
}

void COpendriveLine::print(std::ostream &out)
{
  COpendriveGeometry::print(out);
}

27
28
29
30
31
std::string COpendriveLine::get_name(void)
{
  return std::string("line");
}

32
33
34
35
36
37
38
39
40
41
42
43
void COpendriveLine::load_params(const planView::geometry_type &geometry_info)
{

}

COpendriveGeometry *COpendriveLine::clone(void)
{
  COpendriveLine *new_line=new COpendriveLine(*this);

  return new_line;
}

44
45
46
47
48
49
void COpendriveLine::get_curvature(double &start,double &end)
{
  start=0.0;
  end=0.0;
}

50
51
52
53
54
55
56
57
58
59
void COpendriveLine::operator=(const COpendriveLine &object)
{
  COpendriveGeometry::operator=(object);
}

COpendriveLine::~COpendriveLine()
{

}