GithubHelp home page GithubHelp logo

rauwuckl / ros_simple_follower Goto Github PK

View Code? Open in Web Editor NEW
50.0 2.0 18.0 24 KB

A very simple implementation for ROS to make a mobile robot follow a target. Either using a Laser Range Finder to follow the closest object or an RGB-D camera to follow a specific colour.

Python 77.23% CMake 22.77%

ros_simple_follower's Introduction

ros_simple_follower

See it in action: https://youtu.be/XpQpfcJzsFU

A very simple implementation for ROS to make a mobile robot follow a target. Either using a Laser Range Finder to follow the closest object or an RGB-D camera to follow a specific color. It was developed for a Robotnik 'Summit XL' robot but should work anywhere (You might have to change the topics in the python files though).

The visual tracker might be of some interest as an example for a very basic and naive approach at tracking colored 3D objects.

Installation

Download the simple_follower folder into the src folder in your catkin workspace. e.g.:

roscd ; cd ../src
git clone https://github.com/rauwuckl/ros_simple_follower.git
cd ..
catkin_make

Usage

roslaunch simple_follower laser_follower.launch or roslaunch simple_follower visual_follower.launch respectively.

Architecture

There are three nodes. They can be independently launched using the .launch files in simple_follower/launch/nodes folder:

  • follower.launch
    • follow object which position is specified in the '/object_tracker/current_position' topic
  • Each of these trackers publishes to that topic and can be used interchangeably
    • visualTracker.launch (follows the biggest object with the color specified in the launch file)
    • laserTracker.launch (follows the closest point in the laser range data)

DISCLAIMER: I wrote this code to familiarize myself with robotics and it probably does not follow best practices.

ros_simple_follower's People

Contributors

rauwuckl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ros_simple_follower's Issues

I don't know how to do it? help me

Hello, I don't see the mistake now, but the car doesn't work
1、Here is the laser rostopic list
nuc16@nuc16desktop:~$ rostopic list
/diagnostics
/lslidar_packet
/lslidar_point_cloud
/lslidar_sweep
/rosout
/rosout_agg
/scan
2、Here is the laser_follower.launch
/cmd_vel/yolo
/hokuyo_base/scan
/joy
/object_tracker/current_position
/object_tracker/info
/rosout
/rosout_agg

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.