error: Not connected to physics server

Official Python bindings with a focus on reinforcement learning and robotics.
Post Reply
niju
Posts: 2
Joined: Mon Jun 29, 2020 9:17 pm

error: Not connected to physics server

Post by niju » Mon Jun 29, 2020 9:28 pm

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

User avatar
Erwin Coumans
Site Admin
Posts: 4228
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA
Contact:

Re: error: Not connected to physics server

Post by Erwin Coumans » Mon Jun 29, 2020 11:08 pm

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

niju
Posts: 2
Joined: Mon Jun 29, 2020 9:17 pm

Re: error: Not connected to physics server

Post by niju » Tue Jun 30, 2020 8:56 pm

Hi Erwin ,
Thanks for the reply .I installed pybullet_envs as per you suggestion and its working fine .
Many Thanks for your help

Post Reply