Coder Social home page Coder Social logo

isratialv / mybot Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 74.06 MB

The objective of this project is to implement a navigation system based on ROS for the control of a terrestrial robot that performs autonomous localization and navigation tasks.

Arduino 4.51% CMake 57.46% C++ 38.03%
navigation teleoperation mapserver ros mapping autonomous-navigation

mybot's Introduction

IMT-350 Robotics, II - 2017 MY BOT

by, Israel Raul Tiñini Alvarez and Ruben Coarecona

Instructor: Ing. Pinaya Gutierrez Benjamin

MAPPING AND NAVIGATION: USING THE ROS NAVIGATION STACK

The objective of this project is to implement a navigation system based on ROS for the control of a terrestrial robot that performs autonomous localization and navigation tasks.

A simulated differential vehicle model was created that satisfies the necessary requirements: the transformation tree, the odometry, the laser scanner and the base controller, whose code can be found in the folder src/mybot_description/mybot.xacro robot

Gmapping, mapserver and teleoperation were used to map the simulated environment in Gazebo, for this three steps were followed: create the map, save the map and load the map. The maps are in src/mybot_navigation/maps and the worlds of Gazebo are in src/mybot_gazebo/world mapping

In the simulation of the autonomous navigation of the robot, ACML was used for the location and the base move package for navigation, in addition to the simulated model of the robot that was charged in Gazebo to perform the simulation, the parameters of the navigation node were configured find in src/mybot_navigation/config navigation

A differential vehicle was built, which was composed mainly of two engines, an arduino and a raspberry pi 3B, and autonomous navigation was carried out with this. Autonomous navigation of a simulated and physical land vehicle could be performed, however the evasion of obstacles I just managed to make it through the simulation. For the detection of physical osbtaculos Visp_auto_track was used, because this uses the node of usb_cam which is compatible with the Raspberry

Physical robot

physicsRobot

Diagram of nodes and topics

allnodes

Serial communication

SerialCom

MAPPING

There are basically three steps:

  • Creating the map
  • Saving the map
  • Loading the map.

CREATING THE MAP

Run the following commands below. Use gmapping to map the environment, acml for localitation, the teleop to move the robot around to create an accurate and thorough map:

  • Launch the Gazebo world roslaunch mybot_gazebo mybot_world.launch
  • Start map building roslaunch mybot_navigation gmapping_demo.launch
  • Launch RVIZ roslaunch mybot_description mybot_rviz_gmapping.launch
  • Start teleop roslaunch mybot_navigation mybot_teleop.launch

MAPPING VIDEO

SAVING THE MAP

Run the following commands below. Use MapServer to save the map.

  • Save the map using MapServer rosrun map_server map_saver -f ~/mybot_ws/src/mybot_navigation/maps/test_map

LOADING THE MAP

Run the following commands below. Verify that the mapping was done well

  • Launch the World roslaunch mybot_gazebo mybot_world.launch
  • Load the map roslaunch mybot_navigation amcl_demo.launch

SIMULATE AUTONOMOUS NAVIGATION

Run the following commands below. Use rviz to set navigation waypoints and the robot should move autonomously

  • Launch the World roslaunch mybot_gazebo mybot_world.launch
  • Load the map roslaunch mybot_navigation amcl_demo.launch
  • Launch RVIZ roslaunch mybot_description mybot_rviz_amcl.launch

SIMULATE AUTONOMOUS NAVIGATION VIDEO

SIMULATE TELEOPERATION ON THE PHYSICAL ROBOT

Run the following commands below.

  • Start serial communication (Raspberry) rosrun rosserial_python serial_node.py /dev/ttyACM0
  • Launch the World roslaunch mybot_gazebo mybot_world.launch
  • Launch the teleoperation roslaunch mybot_navigation mybot_teleop.launch
  • Start the node that transforms speed messages rosrun odometria twist_to_motor
  • Start the node that transforms the count of the encoders into a odometry message rosrun odometria diff_tf
  • Listen to the speed in PWM of the engine 1 rostopic echo /motor1
  • Listen to the speed in PWM of the engine 2 rostopic echo /motor2

AUTONOMOUS NAVIGATION ON THE PHYSICAL ROBOT AND SIMULATE TELEOPERATION

Run the following commands below.

  • Start serial communication (Raspberry) rosrun rosserial_python serial_node.py /dev/ttyACM0
  • Start the node that transforms the count of the encoders into a odometry message rosrun odometria diff_tf
  • Start the node that transforms speed messages rosrun odometria twist_to_motor
  • Launch the Move Base node with ACML roslaunch mybot_navigation amcl_demo.launch
  • Launch RVIZ roslaunch mybot_description mybot_rviz_amcl.launch
  • Listen to the speed in PWM of the engine 1 rostopic echo /motor1
  • Listen to the speed in PWM of the engine 2 rostopic echo /motor2

AUTONOMOUS NAVIGATION ON THE PHYSICAL ROBOT VIDEO

mybot's People

Forkers

salimz04

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.