ROS Robot

A simple ROS robot which can navigate with terminal commands.

Introduction

This project is aimed at creating a robot based running ROS which allows us to turn any generic robot hardware platform into a smart robot.

https://youtu.be/nTAU5yGOXnI

https://youtu.be/NKvj2queEno

Hardware Installation

Connect the 9V battery pack to the +V and GND pins of the RasPiRobot Board V3 (check board documentation for clarification).

Connect the left motors to L pins and the right motors to R pins of the RasPiRobot Board.

Plug the RasPiRobot Board on top of the Raspberry Pi 2.

Software Installation

a. Dont connect other boards while doing this.

b . Sufficient power (2A USB) is required for working with the raspberry pi 2.

c. Required Libraries – gccg++pythongit

  • SSH onto the raspberry pi – ssh @

a. Need the private key in ubuntu core account, it should not ask for password(the password does not work)

b. To get apt-get and other applications, run sudo classic to get the classic ubuntu environment.

Running the program

  • SSH onto the RPi in 3 separate terminal windows.
  • Terminal 1

a. Run sudo classic

b. Start the roscore. roscore

  • Terminal 2

a. Run sudo classic

b. Navigate to the project repo folder.

c. Run catkin_make and then source ./devel/setup.bash. d. Run rosrun robot_motion_control node_keyboard_motion_controller.py. This starts the keyboard inputs for controlling the robot.

  • Terminal 3

a. Run sudo classic

b. Run sudo su. We need to do this as the driver library needs root access to manipulate IOs.

c. Navigate to the project repo folder, run source ./devel/setup.bash.

d. Run rosrun rpi_support node_raspirobotv3_driver.py. This starts the motor control part of the robot.

  • In terminal 2, type in the control commmands

a. F – Move forward

b. B – Move backward

c. L – Move right

d. R – Move left

e. S – Stop

References

Source: ROS Robot


About The Author

Muhammad Bilal

I am highly skilled and motivated individual with a Master's degree in Computer Science. I have extensive experience in technical writing and a deep understanding of SEO practices.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top