627435f7b4c426e6bf66702f129bb7ef48a87b34,example.py,,editor_example,#,146

Before Change


    This editor example shows how to interact with holodeck worlds while they are being built
    in the Unreal Engine. Most people that use holodeck will not need this.
    
    sensors = [Sensors.RGB_CAMERA, Sensors.LOCATION_SENSOR, Sensors.VELOCITY_SENSOR]
    agent = AgentDefinition("uav0", agents.UavAgent, sensors)
    env = HolodeckEnvironment(agent, start_world=False)
    env.agents["uav0"].set_control_scheme(1)
    command = [0, 0, 10, 50]

    for i in range(10):
        env.reset()
        for _ in range(1000):
            state, reward, terminal, _ = env.step(command)


def editor_multi_agent_example():
    This editor example shows how to interact with holodeck worlds that have multiple agents.

After Change


        env.reset()
        _ = env.act("turtle0", command)
        _ = env.act("turtle1", command)
        _ = env.act("turtle2", command)
        _ = env.act("turtle3", command)
        _ = env.act("turtle4", command)
        for _ in range(10000):
            states = env.tick()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: BYU-PCCL/holodeck
Commit Name: 627435f7b4c426e6bf66702f129bb7ef48a87b34
Time: 2019-01-10
Author: maxdrob1@gmail.com
File Name: example.py
Class Name:
Method Name: editor_example


Project Name: zsdonghao/text-to-image
Commit Name: d42df89c351e0c2a031ea3a9ae17fb7b844e7b79
Time: 2017-01-18
Author: dhsig552@163.com
File Name: tensorlayer/layers.py
Class Name: BatchNormLayer
Method Name: __init__


Project Name: tensorlayer/tensorlayer
Commit Name: 68bea038ee799cfd4397621fb1f6023b657c2bdf
Time: 2017-01-07
Author: dhsig552@163.com
File Name: tensorlayer/layers.py
Class Name: BatchNormLayer
Method Name: __init__