GithubHelp home page GithubHelp logo

wanckl / ros_turtle_track Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 31 KB

A beginner level example of turtlesim, include ros service call and topic publish and subscrib.

License: GNU General Public License v3.0

CMake 60.85% C++ 39.15%

ros_turtle_track's Introduction

ROS Turtle track


A beginner level example of turtlesim, include ros service call and topic publish and subscrib.

Requrments:

  1. Ubuntu 16.04 LTS
  2. ros-kinetic-desktop-full
  3. turtlesim (installed by default)

This demo is mainly a target track founction, use default turtlesim pkg. first step is calling inner service of turtlesim node to spawn a new turtle named turtle2, so there is now two turtles in the playgrund. then subscrib the posetion of two turtle to calculate where and how long the turtle1 is located from turtle2. finally publish a turtle2/cmd_val include abouve info and loop again to have a realtime situation.

Usage:

  1. Start roscore first
  2. Start turtlesim node
  3. If you compile the pakage and add refresh your terminal source, you can find rosrun <your_pkg_name> service_spawn, enter
  4. As same, find rosrun <your_pkg_name> track_path, enter
  5. Use "rosrun turtlesim turtle_teleop_key" to move your turtle1 anywhere, have fun!

NOTICE: track_path while calculate only when two turtles are exist and alive.

It is only a learning demo at beginner level, over. 05-07-2020, Wenthday. Email:[email protected]

ros_turtle_track's People

Contributors

wanckl avatar

Stargazers

Mazhichao 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.