41 #ifndef INCLUDE_OKVIS_FRAMETYPEDEFS_HPP_
42 #define INCLUDE_OKVIS_FRAMETYPEDEFS_HPP_
124 Match(
size_t idxA_,
size_t idxB_,
float distance_)
141 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
172 typedef std::vector<MapPoint, Eigen::aligned_allocator<MapPoint> >
MapPointVector;
173 typedef std::map<uint64_t, MapPoint, std::less<uint64_t>,
175 typedef std::map<uint64_t, okvis::kinematics::Transformation, std::less<uint64_t>,
181 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
202 : keypointIdx(keypointIdx),
203 cameraIdx(cameraIdx),
205 keypointMeasurement(keypointMeasurement),
206 keypointSize(keypointSize),
207 landmark_W(landmark_W),
208 landmarkId(landmarkId),
209 isInitialized(isInitialized)
size_t keypointIdx
Keypoint ID.
Definition: FrameTypedefs.hpp:221
A type to store information about a point in the world map.
Definition: FrameTypedefs.hpp:139
size_t idxA
Keypoint index in frame A.
Definition: FrameTypedefs.hpp:130
bool operator<(const KeypointIdentifier &rhs) const
Less than operator. Compares first multiframe ID, then camera index, then keypoint index...
Definition: FrameTypedefs.hpp:100
Unique identifier for a keypoint.
Definition: FrameTypedefs.hpp:58
double distance
Distance to origin of the frame the coordinates are given in.
Definition: FrameTypedefs.hpp:168
size_t cameraIndex
Camera index.
Definition: FrameTypedefs.hpp:74
Eigen::Matrix< double, 9, 1 > SpeedAndBias
Definition: FrameTypedefs.hpp:234
Eigen::Vector4d landmark_W
landmark as homogeneous point in body frame B
Definition: FrameTypedefs.hpp:226
Eigen::Vector4d point
Homogeneous coordinate of the point.
Definition: FrameTypedefs.hpp:166
double keypointSize
Keypoint size. Basically standard deviation of the image coordinates in pixels.
Definition: FrameTypedefs.hpp:225
void setFrameId(uint64_t fid)
Set multiframe ID.
Definition: FrameTypedefs.hpp:83
std::vector< MapPoint, Eigen::aligned_allocator< MapPoint > > MapPointVector
Definition: FrameTypedefs.hpp:172
EIGEN_MAKE_ALIGNED_OPERATOR_NEW Observation(size_t keypointIdx, const Eigen::Vector2d &keypointMeasurement, double keypointSize, size_t cameraIdx, uint64_t frameId, const Eigen::Vector4d &landmark_W, uint64_t landmarkId, bool isInitialized)
Constructor.
Definition: FrameTypedefs.hpp:195
float distance
Distance between the keypoints.
Definition: FrameTypedefs.hpp:132
size_t cameraIdx
index of the camera this point is observed in
Definition: FrameTypedefs.hpp:222
std::map< uint64_t, okvis::kinematics::Transformation, std::less< uint64_t >, Eigen::aligned_allocator< okvis::kinematics::Transformation > > TransformationMap
Definition: FrameTypedefs.hpp:176
uint64_t id
ID of the point. E.g. landmark ID.
Definition: FrameTypedefs.hpp:165
uint64_t landmarkId
unique landmark ID
Definition: FrameTypedefs.hpp:227
bool operator==(const KeypointIdentifier &rhs) const
Equal to operator.
Definition: FrameTypedefs.hpp:94
EIGEN_MAKE_ALIGNED_OPERATOR_NEW MapPoint()
Default constructor. Point is at origin with quality 0.0 and ID 0.
Definition: FrameTypedefs.hpp:144
Type to store the result of matching.
Definition: FrameTypedefs.hpp:116
Eigen::Vector2d keypointMeasurement
2D image keypoint [pixels]
Definition: FrameTypedefs.hpp:224
Eigen::Matrix< double, 9, 1 > SpeedAndBiases
Definition: FrameTypedefs.hpp:233
size_t keypointIndex
Index of the keypoint.
Definition: FrameTypedefs.hpp:75
uint64_t frameId
Multiframe ID.
Definition: FrameTypedefs.hpp:73
double quality
Quality of the point. Usually between 0 and 1.
Definition: FrameTypedefs.hpp:167
uint64_t frameId
unique pose block ID == multiframe ID
Definition: FrameTypedefs.hpp:223
std::map< uint64_t, MapPoint, std::less< uint64_t >, Eigen::aligned_allocator< MapPoint > > PointMap
Definition: FrameTypedefs.hpp:174
Observation()
Definition: FrameTypedefs.hpp:212
MapPoint(uint64_t id, const Eigen::Vector4d &point, double quality, double distance)
Constructor.
Definition: FrameTypedefs.hpp:157
std::vector< Match > Matches
Definition: FrameTypedefs.hpp:134
Match(size_t idxA_, size_t idxB_, float distance_)
Constructor.
Definition: FrameTypedefs.hpp:124
KeypointIdentifier(uint64_t fi=0, size_t ci=0, size_t ki=0)
Constructor.
Definition: FrameTypedefs.hpp:66
uint64_t getFrameId()
Get multiframe ID.
Definition: FrameTypedefs.hpp:78
bool isBinaryEqual(const KeypointIdentifier &rhs) const
Are two identifiers identical?
Definition: FrameTypedefs.hpp:88
std::map< okvis::KeypointIdentifier, uint64_t > observations
Observations of this point.
Definition: FrameTypedefs.hpp:169
For convenience to pass associations - also contains the 3d points.
Definition: FrameTypedefs.hpp:179
bool isInitialized
Initialisation status of landmark.
Definition: FrameTypedefs.hpp:228
std::vector< Observation, Eigen::aligned_allocator< Observation > > ObservationVector
Definition: FrameTypedefs.hpp:230
size_t idxB
Keypoint index in frame B.
Definition: FrameTypedefs.hpp:131