Skip to content

Commit

Permalink
Merge pull request #4 from afan1/master
Browse files Browse the repository at this point in the history
Dynamic Agent Initial Demo Using Python Agents
  • Loading branch information
afan1 committed Jan 15, 2016
2 parents 91efbbb + cf02c86 commit 6ddc6f3
Show file tree
Hide file tree
Showing 12 changed files with 7,835 additions and 0 deletions.
47 changes: 47 additions & 0 deletions README.md
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.
1 change: 1 addition & 0 deletions agent_map.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Loading

0 comments on commit 6ddc6f3

Please sign in to comment.