ros tf 坐标系:base_link odom map base_laser理解

1 前言

ros机器人系统里面,往往存在着多个坐标系系统,这些坐标系系统有着约定俗成的命名规范,便于机器人开发人员更好的理解代码,这里进行总结一下各个坐标系的含义。

关键注意的是odom坐标系,最容易理解错

2 各个坐标系

base_link坐标系

base_link是机器人本体坐标系,以底座中心为原点(一般为机器人的旋转中心)。

跟随robot一起运动,robot身上的任何零件都是以该坐标系为母参考系。

odom坐标系

odom的坐标系是固定世界坐标系,但是odom坐标系会随时间推移而漂移,与map坐标系不同。

这种漂移使odom坐标系无法用作长期的全局参考。但是,可以确保机器人的位姿在 odom坐标系中是连续的,这意味着odom坐标系中的机器人的位姿始终以连续平稳的方式变化,而不会出现离散的跳跃,这一点与map坐标系不同。

一般的,里程计坐标系的数据来源于车轮里程计,视觉里程计或惯性测量单元,以此来计算机器人在里程计坐标系下面的位姿。

里程计坐标系下的机器人位姿可以作为一个短期的参考,但漂移的存在使其不能作为全局的参考。

map坐标系

map坐标系是固定的世界坐标系,其Z轴指向上方。

在map坐标系下,不应存在漂移,但是机器人在map坐标系下面的位姿可能会有离散的变化,因为机器人在map坐标系下面的位姿可能因为回环检测而较大幅度的修改。

ODES / rviz (rviz/rviz) /rb_0/ amcl (amcl/amcl) map_server (map_server/map_server) move_base (move_base/move_base) /rb_1/ amcl (amcl/amcl) map_server (map_server/map_server) move_base (move_base/move_base) ROS_MASTER_URI=http://localhost:11311 process[rb_0/map_server-1]: started with pid [29181] process[rb_0/amcl-2]: started with pid [29182] process[rb_0/move_base-3]: started with pid [29183] process[rb_1/map_server-4]: started with pid [29184] process[rb_1/amcl-5]: started with pid [29189] process[rb_1/move_base-6]: started with pid [29195] process[rviz-7]: started with pid [29202] [ WARN] [1741924358.883894229, 3053.438000000]: Timed out waiting for transform from rb_1/base_link to map to become available before running costmap, tf error: canTransform: target_frame map does not exist. canTransform: source_frame rb_1/base_link does not exist.. canTransform returned after 3053.44 timeout was 0.1. [ WARN] [1741924358.900717261, 3053.450000000]: No laser scan received (and thus no pose updates have been published) for 3053.450000 seconds. Verify that data is being published on the /rb_0/scan_full_filtered topic. [ WARN] [1741924358.900798299, 3053.450000000]: No laser scan received (and thus no pose updates have been published) for 3053.450000 seconds. Verify that data is being published on the /rb_0/scan_full_filtered topic. [ WARN] [1741924358.901443918, 3053.450000000]: No laser scan received (and thus no pose updates have been published) for 3053.450000 seconds. Verify that data is being published on the /rb_1/scan_full_filtered topic. [ WARN] [1741924358.901512249, 3053.450000000]: No laser scan received (and thus no pose updates have been published) for 3053.450000 seconds. Verify that data is being published on the /rb_1/scan_full_filtered topic. [ WARN] [1741924358.925398992, 3053.464000000]: Timed out waiting for transform from rb_0/base_link to map to become available before running costmap, tf error: canTransform: target_frame map does not exist. canTransform: source_frame rb_0/base_link does not exist.. canTransform returned after 3053.46 timeout was 0.1. [ WARN] [1741924359.897009322, 3054.073000000]: global_costmap: Pre-Hydro parameter "static_map" unused since "plugins" is provided [ WARN] [1741924359.897186684, 3054.073000000]: global_costmap: Pre-Hydro parameter "static_map" unused since "plugins" is provided [ WARN] [1741924359.897363362, 3054.073000000]: global_costmap: Pre-Hydro parameter "map_type" unused since "plugins" is provided [ WARN] [1741924359.897534662, 3054.073000000]: global_costmap: Pre-Hydro parameter "map_type" unused since "plugins" is provided [ WARN] [1741924360.310162541, 3054.333000000]: local_costmap: Pre-Hydro parameter "static_map" unused since "plugins" is provided [ WARN] [1741924360.311035775, 3054.333000000]: local_costmap: Pre-Hydro parameter "map_type" unused since "plugins" is provided [ WARN] [1741924360.311746890, 3054.333000000]: local_costmap: Pre-Hydro parameter "static_map" unused since "plugins" is provided [ WARN] [1741924360.312618386, 3054.333000000]: local_costmap: Pre-Hydro parameter "map_type" unused since "plugins" is provided [FATAL] [1741924360.379952684, 3054.373000000]: Failed to create the eband_local_planner/EBandPlannerROS planner, are you sure it is properly registered and that the containing library is built? Exception: According to the loaded plugin descriptions the class eband_local_planner/EBandPlannerROS with base class type nav_core::BaseLocalPlanner does not exist. Declared types are base_local_planner/TrajectoryPlannerROS dwa_local_planner/DWAPlannerROS wpbh_local_planner/WpbhLocalPlanner
03-15
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值