ND2 - Project 2 - localization - writeup

utilize ROS packages to accurately localize a mobile robot inside a provided map in the Gazebo and RViz simulation envs.

Building a mobile robot for simulated tasks.

Creating a ROS package -> launches a custom robot model in a Gazebo world and utilizes AMCL & Navigation Stack.

tuning specific parameters

URDF

Launch

maps

URDF = Unified Robot Description Format

Xacro (XML Macros) = shorter and more readable XML files by using macros that expand to larger XML expressions.

udacity_bot.xacro = [1]robot specific information like links, joints, actuators, etc.[2] visual + collision + inertial

.gazebo = add plugin for driver / camera image / hokuyo

DiffDrivePlugin.cc

Gazebo is a physics simulator,

RViz can visualize any type of sensor data being published over a ROS topic like camera images, point clouds, Lidar data, etc.

Adaptive Monte Carlo Localization (AMCL) dynamically adjusts the number of particles. This adaptive process offers a significant computational advantage over MCL.

http://wiki.ros.org/amcl

  • Therobot_state_publisherbuilt out the entire tf tree of your robot based on the URDF file. But it didn't extend that tree by linking in the 'map' frame. The amcl package does that automatically by linking the 'map' and 'odom' frames.

  • The amcl package relies entirely on the robot’s odometry and the laser scan data.

http://wiki.ros.org/move_base

move_base utilizes a costmap - where each part of the map is divided into occupied / unoccupied. As the robot moves around, a local costmap(seeing by laser range finder), in relation to the global costmap, keeps getting updated allowing the package to define a continuous path for the robot to move along.

built-in corrective behaviors

Each arrow is essentially a particle defining the pose of the robot that your localization package created. Your goal is to add/tune the parameters that will help localize your robot better and thereby improve the pose array.

Last updated

Was this helpful?