Skip to content

Commit

Permalink
update robots
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahBarrett98 committed Mar 7, 2021
1 parent f460cdf commit 579b46b
Show file tree
Hide file tree
Showing 14 changed files with 4 additions and 5 deletions.
Binary file modified __pycache__/settings.cpython-37.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def main_train_and_test():
threading.Thread(target=questions.get_user_input, args=()).start()
else:
pibot = PiBot2()
steps = 1
steps = 200
train.train_session(pibot, steps)
# publish_data(actions)

Expand Down
2 changes: 1 addition & 1 deletion outputs/actions.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"PPO2": ["[0, 0, 3]", "[4, 0, 2]", "[5, 0, 1]", "[0, 0, 2]", "[1, 0, 2]", "[1, 0, 4]", "[4, 0, 0]", "[3, 0, 0]", "[5, 0, 4]", "[3, 0, 2]", "[1, 0, 1]"], "A2C": ["[0, 0, 3]", "[3, 0, 3]", "[0, 0, 1]", "[5, 0, 3]", "[2, 0, 4]", "[1, 0, 2]", "[5, 0, 0]", "[1, 0, 3]", "[0, 0, 0]", "[1, 0, 0]", "[0, 0, 0]"]}
{}
Binary file modified src/DRL/gym-pibot/gym_pibot/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion src/DRL/gym-pibot/gym_pibot/envs/pibot_env2.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class PiBotEnv2(gym.Env):
"""
metadata = {'render.modes': ['human']}

def __init__(self, PiBot, servo=True):
def __init__(self, PiBot, servo=False):
super(PiBotEnv2, self).__init__()
self.PiBot = PiBot
self.SERVO = servo
Expand Down
Binary file modified src/DRL/train/__pycache__/train.cpython-37.pyc
Binary file not shown.
3 changes: 1 addition & 2 deletions src/DRL/train/train.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import tensorflow
print(tensorflow.__version__)
import gym
import json
import datetime as dt
Expand All @@ -16,7 +15,7 @@
#"ACER": partial(ACER, policy=MlpPolicy, verbose=1),
# "ACKTR": partial(ACKTR, policy=MlpPolicy, verbose=1),
# "DQN": partial(DQN, policy=MlpPolicy, verbose=1),
"PPO2": partial(PPO2, policy=MlpPolicy, verbose=1),
# "PPO2": partial(PPO2, policy=MlpPolicy, verbose=1),
"A2C": partial(A2C, policy=MlpPolicy, verbose=1),


Expand Down
Binary file not shown.
Binary file modified src/Pi/PiBot/__pycache__/PiBot.cpython-37.pyc
Binary file not shown.
Binary file modified src/Pi/PiBot/__pycache__/PiBot2.cpython-37.pyc
Binary file not shown.
Binary file modified src/SocialStudy/__pycache__/questions.cpython-37.pyc
Binary file not shown.

0 comments on commit 579b46b

Please sign in to comment.