Giter Site home page Giter Site logo

sakshikakde / turtlebot3_walker Goto Github PK

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

ROS based obstacle avoidance robot in python

License: MIT License

CMake 5.45% C++ 90.51% Shell 4.04%
turtlebot3 ros obstacle-avoidance ros-publisher ros-subscriber ros-melodic

turtlebot3_walker's Introduction

License: MIT

turtlebot3_walker

Introduction

This repository provides a simple for obstacle avoidance

File Structure

  • include
    -- walker.hpp

  • src
    -- walker.cpp
    -- walker_node.cpp

walker_node.cpp is where the object for the classes Walker is created.

Prerequisites

  1. sudo apt-get install ros-melodic-urdf
  2. sudo apt-get install ros-melodic-interactive-markers
  3. sudo apt-get install ros-melodic-actionlib 4

Building the package

  1. Create a catkin workspace catkin_ws

  2. Clone the turlebot3 package inside catkin_ws/src using

git clone https://github.com/ROBOTIS-GIT/turtlebot3_msgs.git     
git clone https://github.com/ROBOTIS-GIT/turtlebot3.git       
git clone https://github.com/ROBOTIS-GIT/turtlebot3_simulations.git

Refer link.

  1. Clone the turtlebot3_walker package
git clone https://github.com/sakshikakde/turtlebot3_walker.git

  1. Change the directory
cd catkin_ws

  1. run
catkin build 

How to run the code

  1. Change the directory
cd catkin_ws

  1. Source the workspace
source devel/setup.bash
  1. In a terminal, run
roscore
  1. In a new terminal, run the talker by using
 roslaunch turtlebot3_walker turtlebot3_obstacle_avoidance.launch 

Parameters

  • platform_name : default="turtlebot3"
  • publisher_topic_name : default="/cmd_vel"
  • subscriber_topic_name : default="/scan"
  • publisher_rate : default = 20
  • scan_range : default="10"
  • distance_threshold : default="1"
  • bags_directory : default="/home"
  • record_bag : default="false"
  • launch_gazebo : default="true"

Recording the bag file

Set the record_bag param true in the launch file. Set the bags_directory as well.

Running the bag file

  1. Change the directory to the location where rosbag is recorded

  2. Run the command

rosbag play <bagfile_name> --pause
  1. Launch the file turtlebot3_obstacle_avoidance.launch with gazebo off
roslaunch turtlebot3_walker turtlebot3_obstacle_avoidance.launch launch_gazebo:=false

Bag file

https://drive.google.com/file/d/1rZaai8yFOqWnMEujxXBu6TGUDE9_OtfZ/view?usp=sharing

turtlebot3_walker's People

Contributors

sakshikakde avatar

Watchers

 avatar

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.