⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rangesensor.h

📁 Particle filtering implementation and application to people tracking.
💻 H
字号:
#ifndef RANGESENSOR_H#define RANGESENSOR_H#include <vector>#include <sensor/sensor_base/sensor.h>#include <utils/point.h>namespace GMapping{class RangeSensor: public Sensor{	friend class Configuration;	friend class CarmenConfiguration;	friend class CarmenWrapper;	public:		struct Beam{			OrientedPoint pose;	//pose relative to the center of the sensor			double span;	//spam=0 indicates a line-like beam			double maxRange;	//maximum range of the sensor			double s,c;		//sinus and cosinus of the beam (optimization);		};			RangeSensor(std::string name);		RangeSensor(std::string name, unsigned int beams, double res, const OrientedPoint& position=OrientedPoint(0,0,0), double span=0, double maxrange=89.0);		inline const std::vector<Beam>& beams() const {return m_beams;}		inline std::vector<Beam>& beams() {return m_beams;}		inline OrientedPoint getPose() const {return m_pose;}		void updateBeamsLookup();		bool newFormat;	protected:		OrientedPoint m_pose;		std::vector<Beam> m_beams;};};#endif

⌨️ 快捷键说明

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