Coder Social home page Coder Social logo

mfussi66 / ros-exercises Goto Github PK

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

A collection of small exercises in with ROS in C++ for a Distributed Robotic Systems course.

License: GNU General Public License v3.0

CMake 68.35% C++ 31.65%
ros ros-melodic

ros-exercises's Introduction

ROS Exercises

The following is a collection of small exercises written in C++ within the ROS middleware for a course in Distributed Robotic Systems.

Building

The catkin software was used to build the programs. Copy the exercises in your catkin source directory and run

catkin_make 

Running

To run the exercises, follow the instructions:

Exercise 1

Exercise 1 uses RViz to visualize the robot pose. In a terminal, run:

roslaunch exercise1 exercise1.launch

Exercise 2

Exercise 2 uses rqt_plot and needs parameters for linear and angular speed saturations. The launch file contains the linear and angular velocities that can be modified and sent to the custom /control topic:

 <node name="topic_pub" pkg="rostopic" type="rostopic" args="pub -r 10 /control exercise2/control &quot; lin_vel: <value> &#13; ang_vel: <value> &quot;" output="screen"/>

In a terminal, run:

roslaunch exercise2 exercise2.launch vel_lin_min:=<value> vel_lin_max:=<value> vel_ang_min:=<value> vel_ang_max:=<value>

Exercise 3

In a terminal, run:

roslaunch exercise3 exercise3.launch

Exercise 4

Use the launch file in the folder to modify the initial position of the robots in the turtlesim. In a terminal, run:

roslaunch exercise4 exercise4.launch

Exercise 5

Exercise 5 uses 3 launch files to demonstrate the characteristics of the usage of potentials to get to a goal. The first two cases show the robot successfully reaching the goal:

roslaunch exercise5 exercise5_1.launch
roslaunch exercise5 exercise5_2.launch

The third case shows that the robot gets stuck in a local minima:

roslaunch exercise5 exercise5_3.launch

ros-exercises's People

Contributors

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