Skip to content

env.render() induces different results in robotics and mujoco environments #2255

@SkittlePox

Description

@SkittlePox

It appears as though the results of running a robotics environment differ based on whether the simulation was rendered using env.render() or not. I'm running FetchEnv and the way the simulation plays out is consistently different. I'm also calling env.seed(1) before resetting each environment and my agent's behavior is completely deterministic.

Creating window glfw
achieved goal: [1.67919555 0.77144518 0.41404505]    # calls env.render() each step
achieved goal: [1.68385299 0.76366328 0.41406109]    # does not call env.render()
Creating window glfw
achieved goal: [1.67919555 0.77144518 0.41404505]    # calls env.render() each step
achieved goal: [1.68385299 0.76366328 0.41406109]    # does not call env.render()

Might this have something to do with the _render_callback() method? I have not overridden this method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions