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

【自动驾驶】点与向量从ego系转odometry系

1.点从ego系转odometry系(ego -> odometry)

struct Point
{float x;float y;float angle;
};
Point trans; // is the odom to ego transform
Point odom_coord; is the odom coord
Point ego_coord; is the ego coordfloat odom_coord.x = (ego_coord.x - trans.x) * std::cos(trans.angle) + (ego_coord.y - trans.y) * std::sin(angle);
float odom_coord.y = -(ego_coord.x - trans.x) * std::sin(trans.angle) + (ego_coord.y - trans.y) * std::cos(angle);
float odom_coord.angle = ego_coord.angle + trans.angle;

2. 点从odometry系转ego系(odometry -> ego)

struct Point
{float x;float y;float angle;
};
Point trans; // is the odom to ego transform
Point odom_coord; is the odom coord
Point ego_coord; is the ego coordfloat ego_coord.x = trans.x + odom_coord.x * std::cos(trans.angle) - odom_coord.y * std::sin(trans.angle);
float ego_coord.y
http://www.lryc.cn/news/359793.html

相关文章:

  • jsmug:一个针对JSON Smuggling技术的测试PoC环境
  • Qt 控件提升
  • 封装一个websocket,支持断网重连、心跳检测,拿来开箱即用
  • 推荐一款开源电子签章/电子合同系统
  • Qt Creator(Qt 6.6)拷贝一行
  • 红队内网攻防渗透:内网渗透之数据库权限提升技术
  • 从0开始制作微信小程序
  • Linux学习笔记:日志文件的编写
  • 为什么要保持方差为1
  • Wpf 使用 Prism 实战开发Day31
  • Linux权限提升二
  • [AI OpenAI] 推出ChatGPT Edu
  • HTML5+CSS3回顾总结
  • AI推介-多模态视觉语言模型VLMs论文速览(arXiv方向):2024.05.01-2024.05.10
  • Python 点云生成高程模型图(DSM)
  • [第五空间 2021]WebFTP
  • SQL—DQL(数据查询语言)之小结
  • 找回xmind文件办法:一切意外均可找回(误删/重启关机等)
  • 微信小程序 npm构建+vant-weaap安装
  • 【LeetCode 63】 不同路径 II
  • OpenAI助手API接入-问答对自动生成
  • 9. C++通过epoll+fork的方式实现高性能网络服务器
  • 【Mac】XMind for mac(XMind思维导图)v24.04.10311软件介绍和安装教程
  • 使用 Django ORM 进行数据库操作
  • 行为型设计模式之模板模式
  • 大泽动力车载柴油发电机的特点和优势有哪些
  • 基于 IP 的 DDOS 攻击实验
  • GPT-4o如何重塑AI未来!
  • window本地域名映射修改
  • 【退役之重学】为什么要加入多级缓存