Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pratikpaudel/picar-x-team1
https://github.com/pratikpaudel/picar-x-team1
Last synced: 30 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pratikpaudel/picar-x-team1
- Owner: PratikPaudel
- License: mit
- Created: 2023-11-11T17:02:54.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-02T04:33:05.000Z (about 1 year ago)
- Last Synced: 2024-11-07T04:18:21.516Z (2 months ago)
- Language: Python
- Size: 50.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Robot Control Program
## Overview
This program enables you to control a robot car (picar) using a keyboard, sending commands over a UDP connection.
## Setup
- Ensure that Python and the 'keyboard' library are installed. You can install 'keyboard' using 'pip install keyboard'.
- The script communicates with the robot server at the 'port no.':25565.## Usage
### Run the Script
- Start the python server script on picar, and client program on client computer.
- Once the client code is running, it will ask for IP of the server(the picar-x) so it can send the commands to the picar.### Control Keys
- **Left Arrow:** Move the wheels to the left. Press to start and release to stop.
- **Right Arrow:** Move the wheels to the right. Press to start and release to stop.
- **Up Arrow:** Moves the car forward. Press to start and release to stop.
- **Down Arrow:** Move the car backward. Press to start and release to stop.
- **J Key:** Set robot's speed (0-100). Press 'J', then enter the speed, then press Enter. If you input an invalid speed, it will reset to 30 speed.
- **Exit:** Stop the script with Ctrl + C or by closing Python; this will halt the code.
- **'A', 'D', 'W', and 'S' keys:** Control the camera movement and direction.
- **H key:** Honk function.
- **T key:** Take photo from the picar camera as you move the angle of the camera.## Troubleshooting
- Make sure that the robot's server is running first.
- Check if you have the correct IP address.
- Ensure that 'keyboard' is installed and functioning correctly.