1 Star 1 Fork 0

焦建军/pybullet_ur5_robotiq

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
agent.py 523 Bytes
一键复制 编辑 原始数据 按行查看 历史
tutian 提交于 2021-02-24 06:22 . first commit
from tqdm import tqdm
import matplotlib.pyplot as plt
from collections import namedtuple
Transition = namedtuple('Transition',
('state', 'action', 'reward', 'next_state'))
class BaseAgent(object):
def act(self, observation, reward, done):
pass
class RandomAgent(BaseAgent):
"""The world's simplest agent!"""
def __init__(self, action_space):
self.action_space = action_space
def act(self, observation, reward, done):
return self.action_space.sample()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jiaojianjun-com/pybullet_ur5_robotiq.git
git@gitee.com:jiaojianjun-com/pybullet_ur5_robotiq.git
jiaojianjun-com
pybullet_ur5_robotiq
pybullet_ur5_robotiq
robotflow

搜索帮助

0d507c66 1850385 C8b1a773 1850385