Skip to content

Collision avoidance project for the Robot Programming course 2021, "Sapienza" University of Rome

Notifications You must be signed in to change notification settings

FilippoBetello/Robot-Programming-Project

Repository files navigation

Robot-Programming-Project

Project for the course Robot Programming 🤖, "Sapienza" University of Rome.

Short description

Obstacle Avoidance : Build a node that computes a repulsive field from the local laser scans and modulates the /cmd_vel so that the robot does not clash to the wall if instructed to do so. It is written in C++.

How use it

  1. Clone this repository into your ros workspace
  2. Every time you open a new terminal:
    source devel/setup.bash  
  3. From your workspace build with
    catkin_make
  4. Start the roscore:
    roscore
  5. In a different window:
    rosrun project project
  6. In another window:
    rosrun stage_ros stageros cappero_laser_odom_diag_obstacle_2020-05-06-16-26-03.world
    I used a map of the DIAG departament. There are 3 cubes:
    🟩 is the robot that is controlled;
    !:red_square: :purple_square: are the two obstacles.
    It is possible to set the dimension and the initial position in the .world file.
  7. In a different window give the velocity command:
    rostopic pub /cmd_vel geometry_msgs/Twist -r 1 -- '[0.4, 0.0, 0.0]' '[0.0, 0.0, 0.0]'
    where the components are [linear.x, linear.y, linear.z] and [angular.x, angular.y, angular.z]


Info 👨‍💻

For any doubt or clarification send me an email

About

Collision avoidance project for the Robot Programming course 2021, "Sapienza" University of Rome

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published