All Classes Namespaces Files Functions Enumerations Enumerator Friends Macros Pages
Waypoint.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Open Source Robotics Foundation
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 */
17 
18 #ifndef MANIFOLD_WAYPOINT_WAYPOINT_HH_
19 #define MANIFOLD_WAYPOINT_WAYPOINT_HH_
20 
21 #include <iosfwd>
22 #include <memory>
23 
24 #include "manifold/Helpers.hh"
25 
26 namespace ignition
27 {
28  namespace math
29  {
30  class SphericalCoordinates;
31  }
32 }
33 
34 namespace manifold
35 {
36  namespace rndf
37  {
38  // Forward declarations.
39  class WaypointPrivate;
40 
43  {
45  public: Waypoint();
46 
52  public: Waypoint(const int _id,
53  const ignition::math::SphericalCoordinates &_location);
54 
57  public: Waypoint(const Waypoint &_other);
58 
60  public: virtual ~Waypoint();
61 
65 
75  public: bool Load(std::ifstream &_rndfFile,
76  const int _segmentId,
77  const int _laneId,
78  int &_lineNumber);
79 
83 
86  public: int Id() const;
87 
92  public: bool SetId(const int _id);
93 
97 
100  public: ignition::math::SphericalCoordinates &Location();
101 
105 
108  public: bool Valid() const;
109 
113 
117  public: bool operator==(const Waypoint &_other) const;
118 
122  public: bool operator!=(const Waypoint &_other) const;
123 
127  public: Waypoint &operator=(const Waypoint &_other);
128 
131  private: std::unique_ptr<WaypointPrivate> dataPtr;
132  };
133  }
134 }
135 #endif
A reference point.
Definition: Waypoint.hh:42
#define MANIFOLD_VISIBLE
Use to represent "symbol visible" if supported.
Definition: Helpers.hh:55