-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from afan1/master
Dynamic Agent Initial Demo Using Python Agents
- Loading branch information
Showing
12 changed files
with
7,835 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
## Important Dependencies (Currently only tested on Ubuntu) ## | ||
* Python 2.X | ||
* Python 3.X | ||
* python-can (python3 install) | ||
* websocket-client (python-pip3) | ||
* psutil (python-pip3) | ||
|
||
#### Optional for backend #### | ||
* flask | ||
* redis | ||
|
||
## Requiements ## | ||
1. RVI setup on both the client side and the server side and can communicate with each other. | ||
-Please refer to https://github.com/PDXostc/rvi_core for more information | ||
2. RVI backend is installed to push agents to client. | ||
-Please refer to https://github.com/PDXostc/rvi_backend for more information to find the backend w/ dynamic_agent code | ||
3. All dependencies are met | ||
|
||
## Server Side Deployment ## | ||
1. Make sure RVI is running | ||
2. Clone the repo | ||
3. cd into repo i.e. "cd rvi_dynamic_agents" | ||
#### Optional Redis Server and Flask Counter Demo Setup #### | ||
1. Install flask and redis | ||
2. Make sure redis server is setup | ||
3. Change flaskserver/demoagentsite.py to make sure your redis client will work if not using default setup | ||
4. python flaskserver/demoagentsite.py | ||
5. Access and see reported agent counts at localhost:5000 | ||
4. python3 agentserver/agentserver.py | ||
|
||
## Client Side Deployment ## | ||
1. Make sure RVI is running | ||
2. Clone the repo | ||
3. cd into repo i.e. "cd rvi_dynamic_agents" | ||
4. Make sure if you are tracking can signals that you have enabled your can link "sudo ip link set can0 up type can bitrate <XXXXX>" | ||
5. python3 agenthandler.py | ||
|
||
## Deploying Agents ## | ||
1. Make sure RVI is running | ||
2. Clone the rvi_backend repo | ||
3. Follow setup instructions for the rvi_backend repo | ||
4. Add a vehicle and make sure the vin is what you set up for RVI | ||
5. Add an Agent where launch command is how you would launch your script | ||
* For example python3 script ABC.py would be launched with "python3 ABC.py" | ||
6. Add an update choosing which agent you wish to send to which vehicle and its expiration date | ||
7. Click checkbox and select start agent from dropdown list and hit go. | ||
8. Agent should not be running, you are also able to remotely terminate from this page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
Oops, something went wrong.