Page 1 of 1

error: Not connected to physics server

Posted: Mon Jun 29, 2020 9:28 pm
by niju
Hi ,
I am using the "HalfCheetahMuJoCoEnv-v0" env in pybulletgym.
I frequently end up in this error . This error doesnt happen always. But randomly ..

Code: Select all

  File "..\lib\pybullet-gym\pybulletgym\envs\mujoco\robots\robot_bases.py", line 356, in set_torque
   self._p.setJointMotorControl2(bodyIndex=self.bodies[self.bodyIndex], jointIndex=self.jointIndex,
    controlMode=pybullet.TORQUE_CONTROL, force=torque) #, positionGain=0.1, velocityGain=0.1)

error: Not connected to physics server.
My python version is : 3.7.3

Appreciate any help to debug this. Thanks

Re: error: Not connected to physics server

Posted: Mon Jun 29, 2020 11:08 pm
by Erwin Coumans
We don't support those envs.

Please try using the envs included with pybullet_envs (after pip install pybullet --upgrade --user)

HalfCheetahBulletEnv-v0 etc.

Here is a list:
https://github.com/pat-coady/trpo

HumanoidDeepMimicBulletEnv-v1
CartPoleBulletEnv-v1
MinitaurBulletEnv-v0
MinitaurBulletDuckEnv-v0
RacecarBulletEnv-v0
RacecarZedBulletEnv-v0
KukaBulletEnv-v0
KukaCamBulletEnv-v0
InvertedPendulumBulletEnv-v0
InvertedDoublePendulumBulletEnv-v0
InvertedPendulumSwingupBulletEnv-v0
ReacherBulletEnv-v0
PusherBulletEnv-v0
ThrowerBulletEnv-v0
StrikerBulletEnv-v0
Walker2DBulletEnv-v0
HalfCheetahBulletEnv-v0
AntBulletEnv-v0
HopperBulletEnv-v0
HumanoidBulletEnv-v0
HumanoidFlagrunBulletEnv-v0
HumanoidFlagrunHarderBulletEnv-v0

Also stable-baselines uses the official pybullet_envs

https://github.com/araffin/rl-baselines-zoo

Re: error: Not connected to physics server

Posted: Tue Jun 30, 2020 8:56 pm
by niju
Hi Erwin ,
Thanks for the reply .I installed pybullet_envs as per you suggestion and its working fine .
Many Thanks for your help