Player
Frontpage
Contents
User
Installation
Quick start
Supported devices
Tutorials
Utilities
Client libraries
FAQ
Help
Developer
Architecture
libplayercore
libplayerinterface
interfaces
libplayerdrivers
drivers
libplayercommon
libplayersd
libplayertcp
libplayerxdr
TODO
Online
Homepage
Download
Project
Bugs
Help
server
drivers
localization
ekfvloc
segment_map.hh
1
/*
2
* Player - One Hell of a Robot Server
3
* Copyright (C) 2010
4
* Mayte Lázaro, Alejandro R. Mosteo
5
*
6
*
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation; either
10
* version 2.1 of the License, or (at your option) any later version.
11
*
12
* This library is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
16
*
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with this library; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
*/
21
22
23
#ifndef SEG_MAP_H_
24
#define SEG_MAP_H_
25
26
#include <vector>
27
#include "transf.hh"
28
29
class
SegmentMap
30
{
31
public
:
32
SegmentMap
();
33
SegmentMap
(
string
filename);
34
virtual
~
SegmentMap
();
35
36
void
AddSegment(
double
x1,
double
y1,
double
x2,
double
y2);
37
38
bool
IsEmpty(
void
)
const
;
39
40
int
NumSegments(
void
)
const
;
41
42
Transf
segments(
int
i)
const
;
43
double
lengths(
int
i)
const
;
44
45
private
:
46
vector<Transf> segments_;
47
vector<double> lengths_;
48
};
49
50
#endif
/* SEG_MAP_H_ */
Transf
Definition:
transf.hh:36
SegmentMap
Definition:
segment_map.hh:29
Generated on Wed Sep 2 2020 16:39:28 for Player by
1.8.13