def _create_sphere(self, space, density, radius):
        # Create body and mass
        body = ode.Body(self.world)
        M = ode.Mass()
        M.setSphere(density, radius)
        body.setMass(M)
        body.name = None

        # Create a sphere geom for collision detection
        geom = ode.GeomSphere(space, radius)
        geom.setBody(body)
        geom.name = None

        return (body, geom)
Execute code in a namespace.
dataset/ETHPy150Open pybrain/pybrain/pybrain/rl/environments/ode/environment.py/ODEEnvironment._create_sphere--crossover with--dataset/ETHPy150Open cdsousa/SymPyBotics/sympybotics/_compatibility_.py/exec_