Created
January 26, 2022 13:36
-
-
Save AurelianTactics/29a745abc645d5a40181e3bfa32f6a75 to your computer and use it in GitHub Desktop.
BasicEnvWithGRPC Python Client
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
# create the container | |
container = docker.from_env().containers.run( image="basic_example", detach=True, ports={30051:30051}) | |
# connect to the container | |
connection = dm_env_rpc_connection.create_secure_channel_and_connect("localhost:30051") | |
# create the dm_env | |
env, _ = dm_env_adaptor.create_and_join_world( connection, create_world_settings={}, join_world_settings={}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment