NASA Astrobee Robot Software
Astrobee Version:
develop
master
ros2
v0.17.0
v0.17.1
v0.17.2
v0.17.3
v0.18.0
v0.19.0
v0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
Main Page
Modules
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
feature_track.h
Go to the documentation of this file.
1
/* Copyright (c) 2017, United States Government, as represented by the
2
* Administrator of the National Aeronautics and Space Administration.
3
*
4
* All rights reserved.
5
*
6
* The Astrobee platform is licensed under the Apache License, Version 2.0
7
* (the "License"); you may not use this file except in compliance with the
8
* License. You may obtain a copy of the License at
9
*
10
* http://www.apache.org/licenses/LICENSE-2.0
11
*
12
* Unless required by applicable law or agreed to in writing, software
13
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15
* License for the specific language governing permissions and limitations
16
* under the License.
17
*/
18
19
#ifndef VISION_COMMON_FEATURE_TRACK_H_
20
#define VISION_COMMON_FEATURE_TRACK_H_
21
22
#include <
localization_common/timestamped_set.h
>
23
#include <
vision_common/feature_point.h
>
24
25
namespace
vision_common
{
26
// A Feature track consists of a set of timestamped feature point detections and
27
// an id.
28
class
FeatureTrack
:
public
localization_common::TimestampedSet
<FeaturePoint> {
29
public
:
30
explicit
FeatureTrack
(
const
FeatureId
id
) : id_(
id
) {}
31
// Default constructor for serialization only.
32
FeatureTrack
() =
default
;
33
virtual
~FeatureTrack
() =
default
;
34
const
FeatureId
&
id
()
const
{
return
id_; }
35
36
private
:
37
// Serialization function
38
friend
class
boost::serialization::access
;
39
template
<
class
ARCHIVE>
40
void
serialize(ARCHIVE& ar,
const
unsigned
int
/*version*/
) {
41
ar& BOOST_SERIALIZATION_NVP(id_);
42
ar& BOOST_SERIALIZATION_BASE_OBJECT_NVP(
localization_common::TimestampedSet<FeaturePoint>
);
43
}
44
45
FeatureId
id_;
46
};
47
}
// namespace vision_common
48
49
#endif // VISION_COMMON_FEATURE_TRACK_H_
vision_common::FeatureTrack::id
const FeatureId & id() const
Definition:
feature_track.h:34
vision_common::FeatureTrack::~FeatureTrack
virtual ~FeatureTrack()=default
vision_common
Definition:
brisk_feature_detector_and_matcher.h:25
vision_common::FeatureTrack::access
friend class boost::serialization::access
Definition:
feature_track.h:38
vision_common::FeatureTrack
Definition:
feature_track.h:28
feature_point.h
timestamped_set.h
localization_common::TimestampedSet
Definition:
timestamped_set.h:49
vision_common::FeatureTrack::FeatureTrack
FeatureTrack(const FeatureId id)
Definition:
feature_track.h:30
vision_common::FeatureId
int FeatureId
Definition:
feature_point.h:29
vision_common::FeatureTrack::FeatureTrack
FeatureTrack()=default