Skip to content

Instantly share code, notes, and snippets.

@AurelianTactics
Created January 26, 2022 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AurelianTactics/29a745abc645d5a40181e3bfa32f6a75 to your computer and use it in GitHub Desktop.
Save AurelianTactics/29a745abc645d5a40181e3bfa32f6a75 to your computer and use it in GitHub Desktop.
BasicEnvWithGRPC Python Client
# 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