mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-12 12:50:08 +00:00
Merge pull request #4269 from erwincoumans/master
OpenAI Gym API change: add mode argument to render method
This commit is contained in:
commit
19aa740d84
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
2
setup.py
2
setup.py
@ -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=
|
||||
|
@ -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);
|
||||
|
@ -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()
|
||||
{
|
||||
|
@ -481,7 +481,7 @@ public:
|
||||
|
||||
buffer[9] = '3';
|
||||
buffer[10] = '2';
|
||||
buffer[11] = '4';
|
||||
buffer[11] = '5';
|
||||
}
|
||||
|
||||
virtual void startSerialization()
|
||||
|
Loading…
Reference in New Issue
Block a user