landmark.h

来自「Particle filtering implementation and ap」· C头文件 代码 · 共 62 行

H
62
字号
#ifndef LANDMARK_H_#define LANDMARK_H_#include "point.h"#include "point3d.h"struct WeightedPoint: public Point{	double w;			WeightedPoint():		w(0)	{}	WeightedPoint(const double& _x, const double& _y, const double& _w):		Point(_x,_y),		w(_w)	{}	WeightedPoint(const Point& p, const double& _w):		Point(p),		w(_w)	{}};struct FeatureLandmark{	Point3d landmark;	Point feature;	FeatureLandmark(const Point3d& landmark, const Point& feature):		landmark(landmark),		feature(feature)	{	}};struct Landmark: public Point3d{	bool tracked;	double w;	Landmark():		tracked(false),		w(0)	{}	Landmark(const double& _x, const double& _y, const double& _z, const double& _w):		Point3d(_x,_y,_z),		tracked(false),		w(_w)	{}	Landmark(const Point3d& p, const double& _w):		Point3d(p),		tracked(false),		w(_w)	{}};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?