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!
- Install Raspberry Pi OS (fka Rasbpian) on your Raspberry Pi (Instruction).
sudo ssh-keygen -A
- Start ssh:
sudo systemctl restart ssh.service
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!
sudo apt-get install joystick
- Supported by the Kernel - if used with the USB connector.
- Connect a Gamepad to the Pi, start the following command and press any buttons or move some axes:
jstest --normal /dev/input/js0