$ sudo apt-get install libprotobuf-dev protobuf-compiler -y
$ cd rc_gym/grsim_ssl/Communication/pb/proto
$ protoc --python_out=../ *.proto
On file rc_gym/grsim_ssl/Communication/pb/messages_robocup_ssl_wrapper_pb2.py:
'before:'
15 - import messages_robocup_ssl_detection_pb2 as messages__robocup__ssl__detection__pb2
16 - import messages_robocup_ssl_geometry_pb2 as messages__robocup__ssl__geometry__pb2
'after:'
15 + import rc_gym.grsim_ssl.Communication.pb.messages_robocup_ssl_detection_pb2 as messages__robocup__ssl__detection__pb2
16 + import rc_gym.grsim_ssl.Communication.pb.messages_robocup_ssl_geometry_pb2 as messages__robocup__ssl__geometry__pb2
On file rc_gym/grsim_ssl/Communication/pb/grSim_Packet_pb2.py:
'before:'
15 - import grSim_Commands_pb2 as grSim__Commands__pb2
16 - import grSim_Replacement_pb2 as grSim__Replacement__pb2
'after:'
15 + import rc_gym.grsim_ssl.Communication.pb.grSim_Commands_pb2 as grSim__Commands__pb2
16 + import rc_gym.grsim_ssl.Communication.pb.grSim_Replacement_pb2 as grSim__Replacement__pb2
$ pip install -e .
- grSimSSLPenalty-v0
- grSimSSLShootGoalie-v0
import gym
import rc_gym
# Using penalty env
env = gym.make('grSimSSLPenalty-v0')
env.reset()
# Run for 1 episode and print reward at the end
for i in range(1):
done = False
while not done:
action = env.action_space.sample()
next_state, reward, done, _ = env.step(action)
print(reward)