当前位置: 首页 > news >正文

做网站的大公司个人网站 创意

做网站的大公司,个人网站 创意,扫一扫网页版在线使用,个人博客网站的建设结构图通过 Eigen 矩阵运算实现线性卡尔曼滤波。模拟的是一辆带火箭发动机的汽车#xff0c;一开始沿着X轴匀速运动#xff0c;到X轴中间开启火箭发动机匀加速向Y轴起飞。同理可以仿真#xff08;x,y,z,yaw,pitch,raw#xff09; 6自由度的真实飞行情况 #include iostream一开始沿着X轴匀速运动到X轴中间开启火箭发动机匀加速向Y轴起飞。同理可以仿真x,y,z,yaw,pitch,raw 6自由度的真实飞行情况 #include iostream #include Eigen/LU #include Eigen/coreusing namespace Eigen;using Matrix6f Eigen::Matrixfloat, 6, 6; using Vector6f Eigen::Matrixfloat, 6, 1;class CalmanFilter { public:CalmanFilter(){// 初始状态不确定度P std::pow(0,2), 0, 0, 0, 0, 0, 0, std::pow(1,2), 0, 0, 0, 0,0, 0, std::pow(0.1,2), 0, 0, 0,0, 0, 0, std::pow(0,2), 0, 0,0, 0, 0, 0, std::pow(1,2), 0,0, 0, 0, 0, 0, std::pow(0.1, 2);// 环境不确定度Q std::pow(0,2), 0, 0, 0, 0, 0, 0, std::pow(0,2), 0, 0, 0, 0,0, 0, std::pow(0,2), 0, 0, 0,0, 0, 0, std::pow(0,2), 0, 0,0, 0, 0, 0, std::pow(0,2), 0,0, 0, 0, 0, 0, std::pow(0,2);// 测量不确定度float xVariance 5;float yVariance 5;R std::pow(xVariance,2), 0,0, std::pow(xVariance,2);// 隐变量到观测变量的映射H 1, 0, 0, 0, 0, 0,0, 0, 0, 1, 0, 0;}void init(const Vector6f x){this-x x;this-fx x;}Matrix6f getA(float dt){Matrix6f A;A 1, dt, 0.5*dt*dt, 0, 0, 0, 0, 1, dt, 0, 0, 0,0, 0, 1, 0, 0, 0,0, 0, 0, 1, dt, 0.5*dt*dt,0, 0, 0, 0, 1, dt,0, 0, 0, 0, 0, 1;return A;}Matrixfloat, 6, 2 getB(float dt){Matrixfloat, 6, 2 B;B 0.5*dt*dt, 0,dt, 0,0, 0,0, 0.5*dt*dt,0, dt,0, 0;return B;}void forcast(const Matrix6f A, const Matrixfloat, 6, 2 B, const Vector2f u){fx A * x B * u;fP A * P * A.transpose() Q;}void calibration(const Vector2f z){Matrixfloat, 6, 2 K P * H.transpose() * (H * P * H.transpose() R).inverse();x fx (K * (z - H * fx));P fP - K * H * fP;}Vector2f getEstimation() const{return H * x;}private:Vector6f fx; // x, vx, ax, y, vy, ayMatrix6f fP; // fx 的协方差Matrix6f Q; // 环境干扰协方差Vector6f x; // fx 校准值Matrix6f P; // fP 校准值Matrix2f R; // 观测协方差Matrixfloat, 2, 6 H; // 隐状态到观测状态的映射 };int main() {// 测试数据float a 1.1;std::vectorVector2f real;std::vectorVector2f observations;for (int i 0; i 100; i) {float x i;float y 0;if (i 50) {float t (i - 50)/10.;y 0.5 * a * t * t;}real.emplace_back(x, y);observations.emplace_back(x rand() % 5, y rand() % 5);}CalmanFilter filter;Vector6f initState;initState observations[0][0], 0, 0, observations[0][1], 0, 0;filter.init(initState);float dt 0.1;Matrix6f A filter.getA(dt);Matrixfloat, 6, 2 B filter.getB(dt);Vector2f u;u 0, 0;std::vectorVector2f estimations;for (int i 0; i observations.size(); i) {if (i 50)u[1] a;filter.forcast(A, B, u);Vector2f d;filter.calibration(observations[i]);Vector2f est filter.getEstimation();estimations.push_back(est);}for (int i 0; i estimations.size(); i) {std::cout i est: estimations[i] real: real[i] obs: observations[i] std::endl;} }
http://www.hkea.cn/news/14421587/

相关文章:

  • 莱州做网站的公司WordPress seo终极优化
  • 查看网站建设时间协策网络
  • 手机营销网站模板免费下载网站开发(源代码)
  • 中国建设工程造价管理协会网站简称怎么设计网站规划方案
  • 自做美食哪些网站设计图纸网站
  • 网站备案和域名备案有什么区别福州做网站开发需要多少钱
  • 济南川芎网站建设公司h5制作平台官网免费
  • 云南网站建设快速排名网站设计是不是会要用代码做
  • 沛县网站文山网站建设公司
  • 织梦做企业网站教程网站开发用什么工具好
  • 网站案例分析湖南全国疾病监测系统
  • 网站建设英文翻译江西专业网站建设
  • 做旅游景区网站wordpress wp_page_menu
  • 腾讯视频网站建设维护环保网站设计
  • 网站动态logo怎么做泰安网络平台
  • 做网站模板用什么框架关键字优化价格
  • 昆山教育云平台网站建设wordpress 链接微博
  • 网站管理有哪些免费静态网页模板下载
  • 淘宝联盟怎么建设网站交友app搭建
  • 茂名住房和城乡建设部网站网站建设免费制作
  • 俄语培训网站建设企信网企业信用信息系统官网
  • 最经济 网站建设江门网站开发多少钱
  • 免费照片的网站模板免费下载wordpress 支付接口
  • 衡水景县专业做淘宝网站公司襄阳专业网站建设公司
  • 网站制作怎样做网站建设参考文献资料
  • c 做彩票网站pre_get_posts wordpress
  • 网站设计app满城区建设局网站
  • 做交流网站做得不好的知名企业网站
  • 佛山网站建设报价随州建设网站
  • php企业网站开发价格线上ui设计培训哪个好