This project implements a WebSocket-based robot control system with a React frontend. Key features include:
- WebSocket server for real-time communication
- React frontend for user interface
- Gamepad support for intuitive control
- Gradual stop functionality for safety
- Clone the repository:
git clone https://github.com/jhacksman/trashley.git
- Navigate to the project directory:
cd trashley
- Install dependencies:
npm install
- Start the WebSocket server:
cd server && node index.js
- Start the frontend development server:
cd frontend && npm start
- Use the sliders in the user interface to control the robot's movement
- Connect a gamepad for more intuitive control
- Keyboard controls are also available for basic movement
- The gradual stop feature ensures safe deceleration when stopping the robot
- The frontend is deployed on Netlify: http://sprightly-zabaione-bdd92a.netlify.app
- To deploy the WebSocket server:
- Set up a server with Node.js installed
- Copy the server files to the deployment environment
- Install dependencies and start the server using
node index.js
- The project is hosted on GitHub: https://github.com/jhacksman/trashley
- To contribute, fork the repository and create a pull request
- The main branch contains stable code, while feature branches are used for development
For more detailed information about the project structure and implementation, please refer to the source code and comments within the repository.