Skip to content

haotsunglee/ROB550-BotLab

Repository files navigation

Botlab : SlAM and Path Planning implementation project

A project for 2021 Fall ROB 550: Robotics Systems Lab at University of Michigan, Ann Arbor.

image

An overview of this project:

  • Acting

    • Cascade Control & PID
    • Planar kinematics of a differential-drive ground robot
    • Motion models with uncertainty
  • Perception

    • Quadrature Encoders
    • MEMS Inertial Measurement Unit
    • 2D LIDAR Rangefinders
  • Reasoning

    • Monte Carlo Localization
    • Simultaneous Localization and Mapping
    • A* search
    • Frontiers-based exploration

Check the images directory and final report for detailed explanation and results.

Running the code

log_mbot_sensors.sh

  • a script to log the sensor data needed for SLAM so you can easily create your own log files for testing

setenv.sh

  • a script for setting environment variables needed for running Vx applications
  • run this script before running botgui in a terminal on your laptop
  • run via . setenv.sh -- note the space
  1. Mapping

    • lcm-logplayer-gui <log_file.log> and uncheck all SLAM channels but SLAM_POSE
    • ./botgui
    • ./slam --mapping-only
  2. Action Model

    • lcm-logplayer-gui <log_file.log> and uncheck all SLAM channels
    • ./botgui
    • ./slam --action-only
  3. Sensor Model

    • lcm-logplayer-gui <log_file.log> and uncheck all SLAM channels
    • ./botgui
    • ./slam --localization-only <map_file.map>
  4. Full SLAM

    • lcm-logplayer-gui <log_file.log> and uncheck all SLAM channels
    • ./botgui
    • ./slam
  5. Obstacle Distance Grid

    • lcm-logplayer-gui <log_file.log> and uncheck all SLAM channels
    • ./botgui
    • View the generated obstacle distance grid by ticking “Show Obstacle Distances” in botgui
  6. A* Algorithm

    • ./launch_botlab.sh
    • Right-click on the botgui to drive the robot to that location
  7. Frontier exploration

    • ./launch_botlab.sh
    • ./exploration

Directories

bin/

  • where all built binaries are located

data/

  • where data needed to run parts of the assignment are located
  • log files and target files for SLAM and exploration are here

lcmtypes/

  • where the .lcm type definitions are located
  • the generated types are stored in src/lcmtypes

lib/

  • where static libraries are saved during the build process

src/

  • where all source code for botlab is located
  • subdirectories have a further description of their contents

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published