Giter Club home page Giter Club logo

rt-assignment-2's Introduction

Second Assignment of Research Track 1 - Robotics Engineering

Author: Simone Contorno


Control of a robot in a simulated environment.

Introduction

An overview of this program function.
Go to Introduction

How it works

A rapid description of how the program works (pseudo-code).
Go to How it works

Installation and Execution

How install and run this program in Linux.
Go to Installation and Execution

Improvements

How this program could be improved.
Go to Improvements

Introduction

This program manage a robot, endowed with laser scanners, which should move autonomously inside a circuit.
You can use the robot controller to:

  • Increase the linear velocity;
  • Decrease the linear velocity;
  • Stop the robot;
  • Reset the robot to the initial position.

The circuit is this one:

map

How it works

There are 3 packages:

  • second_assignment: contains the map of the circuit.
  • second_assignment_node: contains 2 source files .cpp
    • robot.cpp: controls the robot to follow the ciruit avoiding the borders; for this task it reads data from laser scanners (base_scan topic), compare them (on the left and on the right) when it is too close to an obstacle (in front of its) and choose the direction where there is more space; it also publishes the new linear velocity (managed from the user interface provided by robot_controller node) in the cmd_vel topic.
    • robot_controller.cpp: provides the user interface to digit commands and sends them to the service (server.cpp).
  • second_assignment_server: contains the source file server.cpp that provides a service that takes in input the requested command from the robot_controller node, and execute the corrisponding task; Robot.srv is the file used by this service.

Look the pseudocode files into the corresponding directories for more details.

Installation and Execution

First of all download into your ROS workspace the current repository opening the terminal and typing:

git clone https://github.com/simone-contorno/rt-assignment-2

Move the folders into the src directory of your ROS workspace.
After, go into the root folder of your ROS workspace and type:

catkin_make

Afterwards type:

rospack profile

Now, open 5 terminals; in the first one run ROS core:

roscore

In the second one run the node to visualize the map:

rosrun stage_ros stageros $(rospack find second_assignment)/world/my_world.world

In the third one run the service node:

rosrun second_assignment_server server

In the fourth one run the robot controller node to manage the robot through the user interface:

rosrun second_assignment_node robot_controller

In the last one run the robot node:

rosrun second_assignment_node robot

Improvements

To improve the robot performance, it could be done an improvement to mantain better the robot in the center of the path.

Thanks to have read this file, i hope it was clear and interesting.

rt-assignment-2's People

Contributors

simone-contorno 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.