Skip to content

markusk/rvr

Repository files navigation

rvr

A ROS Python package for the Sphero RVR - used on a Raspberry Pi.

Please note: this code is still in the middle of the development process!

GitHub issues GitHub stars GitHub license


Step 1: Setup Raspberry Pi OS

  • Install Raspberry Pi OS (fka Rasbpian) on your Raspberry Pi (Instruction).
sudo ssh-keygen -A
  • Start ssh:
sudo systemctl restart ssh.service

Setup the Raspbery Pi serial port

sudo raspi-config

Choose:

  • Interfacing Options
  • P5 Serial
  • No (No Login shell over serial port)
  • Yes (Enable serial port hardware)

Do not reboot now!

  • Change /boot/cmdline.txt file regarding tty-entries to this (credits to richard_mark):

[...] console=tty1 [...]

sudo nano /boot/cmdline.txt
  • Add your user to the dialout group:
sudo gpasswd --add ${USER} dialout
  • Now reboot the Raspberry Pi!

Step 2: Joystick/Gamepad OS support

sudo apt-get install joystick

Microsoft XBOX Wireless Controller

  • Supported by the Kernel - if used with the USB connector.

Gamepad/Joystick test

  • Connect a Gamepad to the Pi, start the following command and press any buttons or move some axes:
jstest --normal /dev/input/js0

Step 3: ROS Noetic Setup (with Python 3 support)