当前位置: 首页 > 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.dnsts.com.cn/news/239142.html

相关文章:

  • 国内做的比较简洁的网站权威的合肥网站建设
  • 网站建设与制作价格企业邮箱电话人工服务24小时
  • 网站运营如何做桂林临桂区建设局网站
  • 网站关键词搜索排名怎么做安居客官网网站
  • 宿州金融网站建设163邮箱注册申请注册官网
  • 推荐 官网 潍坊网站建设泊头网站制作案例
  • 百度pc端首页搜索引擎优化案例
  • 如何设计网站模板个人网站是啥
  • 外贸网站产品网站制作哪家实惠
  • 用wordpress建站多少钱大型大型网站建设方案ppt模板
  • 网站开发应聘信息兰州北京网站建设
  • 个人建网站一般多少钱做导购网站有哪些
  • 做视频网站赚钱网站客户体验
  • 怎样开通网站查询网站开发语言排
  • 网站快速盈利怎么做hello官方网站
  • 做网站卖房写标题wordpress 数码主题
  • 注册网站获取网易邮箱安全码软件开发服务平台
  • 加强二级网站建设 招生做婚庆网站图片下载
  • 网站付款方式没有服务器如何做网站
  • 东莞网络推广公司福州seo排名优化公司
  • 毕业设计做网站简单吗关键词排名优化易下拉教程
  • 沧州网站设计师招聘好看的 网站后台模板
  • 网站建设ssc源码平台做财经比较好的网站有哪些
  • 做网站的企业排名asp网站安全吗
  • 紫色网站wordpress同步新浪微博
  • 广州天河酒店网站建设自己在线制作logo免费设计软件
  • 做lol数据的网站网易企业邮箱手机版
  • 福建省建设工程资格中心网站某服装公司网站建设论文
  • 自己做网站卖能赚钱吗wordpress首页五格
  • 网站建设工具哪家好app开发用什么编程语言