Merge pull request #4269 from erwincoumans/master

OpenAI Gym API change: add mode argument to render method
This commit is contained in:
erwincoumans 2022-05-20 12:35:28 -07:00 committed by GitHub
commit 19aa740d84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 15 additions and 14 deletions

View File

@ -1 +1 @@
3.24
3.25

View File

@ -54,7 +54,7 @@ def main():
frame += 1
distance = 5
yaw = 0
still_open = env.render("human")
still_open = env.render(mode="human")
if still_open == False:
return
if not done: continue

View File

@ -49,7 +49,7 @@ def main():
obs, r, done, _ = env.step(a)
score += r
frame += 1
still_open = env.render("human")
still_open = env.render(mode="human")
if still_open == False:
return
if not done: continue

View File

@ -48,7 +48,7 @@ def main():
obs, r, done, _ = env.step(a)
score += r
frame += 1
still_open = env.render("human")
still_open = env.render(mode="human")
if still_open == False:
return
continue

View File

@ -53,7 +53,7 @@ def demo_run():
score += r
frame += 1
still_open = env.render("human")
still_open = env.render(mode="human")
if still_open == False:
return

View File

@ -48,7 +48,7 @@ def main():
obs, r, done, _ = env.step(a)
score += r
frame += 1
still_open = env.render("human")
still_open = env.render(mode="human")
if still_open == False:
return
if not done: continue

View File

@ -48,7 +48,7 @@ def main():
obs, r, done, _ = env.step(a)
score += r
frame += 1
still_open = env.render("human")
still_open = env.render(mode="human")
if still_open == False:
return
if not done: continue

View File

@ -48,7 +48,7 @@ def main():
obs, r, done, _ = env.step(a)
score += r
frame += 1
still_open = env.render("human")
still_open = env.render(mode="human")
if still_open == False:
return
if not done: continue

View File

@ -50,7 +50,7 @@ def main():
score += r
frame += 1
still_open = env.render("human")
still_open = env.render(mode="human")
if still_open == False:
return
if not done: continue

View File

@ -505,7 +505,7 @@ if 'BT_USE_EGL' in EGL_CXX_FLAGS:
setup(
name='pybullet',
version='3.2.4',
version='3.2.5',
description=
'Official Python Interface for the Bullet Physics SDK specialized for Robotics Simulation and Reinforcement Learning',
long_description=

View File

@ -103,7 +103,8 @@ void btConvexTriangleCallback::processTriangle(btVector3* triangle, int partId,
if (m_convexBodyWrap->getCollisionShape()->isConvex())
{
#ifndef BT_DISABLE_CONVEX_CONCAVE_EARLY_OUT
#ifdef BT_ENABLE_CONVEX_CONCAVE_EARLY_OUT
//todo: check this issue https://github.com/bulletphysics/bullet3/issues/4263
//an early out optimisation if the object is separated from the triangle
//projected on the triangle normal)
{
@ -139,7 +140,7 @@ void btConvexTriangleCallback::processTriangle(btVector3* triangle, int partId,
if (dist > contact_threshold)
return;
}
#endif //BT_DISABLE_CONVEX_CONCAVE_EARLY_OUT
#endif //BT_ENABLE_CONVEX_CONCAVE_EARLY_OUT
btTriangleShape tm(triangle[0], triangle[1], triangle[2]);
tm.setMargin(m_collisionMarginTriangle);

View File

@ -25,7 +25,7 @@ subject to the following restrictions:
#include <float.h>
/* SVN $Revision$ on $Date$ from http://bullet.googlecode.com*/
#define BT_BULLET_VERSION 324
#define BT_BULLET_VERSION 325
inline int btGetVersion()
{

View File

@ -481,7 +481,7 @@ public:
buffer[9] = '3';
buffer[10] = '2';
buffer[11] = '4';
buffer[11] = '5';
}
virtual void startSerialization()