Code Monkey home page Code Monkey logo

turtlesim_cleaner's Introduction

Practicing Python with Turtlesim

This package was created in order to provide the codes related to the Practicing Python with Turtlesim tutorials from roswiki!

The goal of this work is to provide a simple python pratice as an introduction to ROS, simulating some problems that we face in the real world.

Follow the tutorials

You can find all the tutorials here.

teste

Features

This package contain codes related to the 3 tutorials inside the wiki, allowing the following different applications for turtlesim control:

  • Move in a straight line by distance inputusing odometry
  • Rotate the robot
  • Move the robot to a goal using a control loop

The respective python classes and ROS node configuration are inside turtlesim_cleaner/src package.

Package Dependencies

Since turtlesim is a built-in ROS Package, it already comes with the ros version. This package was developed using ROS KINETIC on ubuntu 16.04

Made by: Cleber Couto Filho, 2016, Salvador, Bahia, Brazil

turtlesim_cleaner's People

Contributors

clebercoutof avatar mrmouss avatar simran1901 avatar

Stargazers

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

Watchers

 avatar

turtlesim_cleaner's Issues

modification in move.py code

In the lines -
13 speed = input("Input your speed:")
14 distance = input("Type your distance:")
15 isForward = input("Foward?: ")#True or False

there seems to be some type cast error. what worked for me is -
13 speed = int(input("Input your speed:"))
14 distance = int(input("Type your distance:"))
15 isForward = iint(input("Foward?: "))#True or False

How to update to ROS Noetic

First off, nice basic navigation example of a differential drive robot

This is not really an issue but a comment to update to later versions of ROS
Was able to get this working on ROS noetic (python3)
In the file gotogoal.py, it requires changing lines 29-31 from:

    goal_pose.x = input("Set your x goal:")
    goal_pose.y = input("Set your y goal:")
    distance_tolerance = input("Set your tolerance:")

to

    goal_pose.x = float(input("Set your x goal:"))
    goal_pose.y = float(input("Set your y goal:"))
    distance_tolerance = float(input("Set your tolerance:"))

Feel free to set this issue as closed

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.