Skip to content

Proyecto inicial de un robot autonomo a cargo de un grupo de alumnos de la materia de Sistema en Tiempo Real de la UNLP

License

Notifications You must be signed in to change notification settings

Petrigh/RobotAutonomoUNLP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RobotAutonomoUNLP

Autonomous robot cover image

Initial project of an autonomous robot led by a group of students from the Real-Time Systems course at UNLP (National University of La Plata).

Overview

This project consists of a tri-wheeled robot that uses de ROS framwork to process scripts and move making geometric figures with its path, also implementing a control system so the movement is smooth and syncronized.

Getting Started

Connection Instructions

For the first iteration of the project, the robot needs to be connected to two 220V power outlets, one using the power jack that is installed on a step down transformer, the second outlet is for the Raspberry Pi 4 that uses an USB C connector.

Remote Access

Once all powered up, the robot will automatically connect to the univerity's wireless local area network. To access it the user must be connected to the same Wi-Fi network.

  SSID: alumnosInfo
  Password: Informatica2019

You can now connect to the robot via ssh, for that you will need the robot ip address. We used the 3rd party mobile app Fing to recognise the Raspberry Pi device and figure out the ip address.

With both previous steps done (Connect to UNLP Informatica Wi-Fi, and knowing device ip address), you can now access remotely via ssh. On your pcs vsCode, you can use the "Connect to Host" feature. Or you can do this on your pcs terminal. In either case, we recommend open 3 terminals and connect to the robot. If using vsCode, you can connect once and then instance more terminals from within. This is for an easier robot initialization after the connection.

enter the following command:

$ ssh robotAutonomoUNLP@[IP ADDRESS]

After that you will be asked for a password, enter:

  undertaker

If its the first time you connect via ssh to the device, it will ask to trust it, please enter yes.

Robot Initialization

Once inside the robot, to start making your own code routines or sending commands you must change directory to project workspace located at:

  ~/robotAutonomoUNLP/locomotion_ws/src/locomotion_robot_pkg/src/

The 3 terminals previously asked for are one for the actual initialization (ROS Launch), one for running the robot (ROS Run), and one for an emergency stop (Emergency) in case its needed. The 3 should all be on the project's workspace

ROS Launch

To start the robot please run the command. To reduce conflicts we recommend to wait at least 15 seconds before start running the robot (ROS Run)

  $ roslaunch locomotion_robot_pkg start.launch

ROS Run

 $ rosrun locomotion_robot_pkg locomotion_receptor.py [movement] [args] 
Parameter Description
test Moves forward, then backwards, then turns left, then right
line {length in cm} Moves forward the ammount of cm specified
square {side lenght in cm} Makes a square of side specified in cm as parameter

Emergency

 $ python3 emergency_stop.py 

Taking the Robot Home

In case any of the project participants need to take the robot home, and use it in their own Wi-Fi, the netplan configuration should be changed. Please read how to change this file and how YAML files should be written on.

LICENSE

MIT License

About

Proyecto inicial de un robot autonomo a cargo de un grupo de alumnos de la materia de Sistema en Tiempo Real de la UNLP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 41.8%
  • CMake 21.6%
  • Python 16.8%
  • C++ 6.9%
  • Common Lisp 4.4%
  • C 3.7%
  • Other 4.8%