Checkpoint.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 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 IGNITION_RNDF_CHECKPOINT_HH_
19 #define IGNITION_RNDF_CHECKPOINT_HH_
20 
21 #include <memory>
22 
23 #include "ignition/rndf/Helpers.hh"
24 
25 namespace ignition
26 {
27  namespace rndf
28  {
29  // Forward declarations.
30  class CheckpointPrivate;
31 
35  {
37  public: Checkpoint();
38 
43  public: explicit Checkpoint(const int _checkpointId,
44  const int _waypointId);
45 
48  public: Checkpoint(const Checkpoint &_other);
49 
51  public: virtual ~Checkpoint();
52 
55  public: int CheckpointId() const;
56 
62  public: bool SetCheckpointId(const int _id);
63 
66  public: int WaypointId() const;
67 
73  public: bool SetWaypointId(const int _id);
74 
76  public: bool Valid() const;
77 
81  public: bool operator==(const Checkpoint &_other) const;
82 
86  public: bool operator!=(const Checkpoint &_other) const;
87 
91  public: Checkpoint &operator=(const Checkpoint &_other);
92 
95  private: std::unique_ptr<CheckpointPrivate> dataPtr;
96  };
97  }
98 }
99 #endif
#define IGNITION_RNDF_VISIBLE
Use to represent "symbol visible" if supported.
Definition: Helpers.hh:55
A checkpoint is a waypoint that has to be visited.
Definition: Checkpoint.hh:34
Definition: Checkpoint.hh:25