ROS基礎知識學習筆記(9)—Robot_Localization

Robot_Localization

鏈接:https://kapernikov.com/the-ros-robot_localization-package/
github源代碼鏈接:https://github.com/Kapernikov/ros_robot_localization_tutorial

虛擬傳感器

This tutorial uses the turtlesim package as a virtual robot. We will add a virtual odometer and a virtual (LiDAR) positioning system (both with a configurable systematic and random error) to the turtlesim robot and estimate its location by using the robot_localization package.

如果你是ros kinetic版本,CMakeLists.txt文件要修改一下,要使用C++11標準,所以要將第五行的註釋去掉。
在這裏插入圖片描述在這裏插入圖片描述

結果

在這裏插入圖片描述
灰線:實際路線
藍線:位置傳感器的數據
紅線:速度傳感器
綠線:Robot_Localization節點估計位置

以下內容爲tf2包的一些內容

https://wiki.ros.org/tf2_geometry_msgs

在這裏插入圖片描述

在這裏插入圖片描述

https://wiki.ros.org/tf2_bullet

在這裏插入圖片描述

移動機器人的座標系(Coordinate systems for mobile robots)

在這裏插入圖片描述
The odom frame is useful as an accurate, short-term local reference, but drift makes it a poor frame for long-term reference.

The map frame is useful as a long-term global reference, but discrete jumps in position estimators make it a poor reference frame for local sensing and acting.

The tree, especially the construction with the map and odom frames, may look counterintuitive at first. It should make sense if you think about the odom → base_link transform as the (best) estimate of the mobile robot’s pose based on continuous sensors (IMUs, odometry sources, open-loop control…) only. The map → odom transform includes the non-continuous sensors (GPS, LiDAR based positioning system…) and models the jumps in the estimated position of the mobile robot, keeping the odom → base_linktransform continuous. This approach provides a drift-free but non-continuous (map → base_link) as well as a continuous but drifting (odom → base_link) pose estimation of the mobile robot.

在這裏插入圖片描述

two virtual sensors for our turtlebot:

  1. an odometer, ‘measuring’ the linear and angular velocity of the
  2. turtlebot a position sensor, ‘measuring’ the absolute position and orientation of the turtlebot.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章