disable the gMaxNumCmdPer1ms experiment by default (-1)

fix minitaur_evaluate.py script, quadruped.py
This commit is contained in:
erwincoumans
2017-03-04 12:59:21 -08:00
parent dcc4c0bda8
commit 44b140dd38
5 changed files with 95 additions and 45 deletions

View File

@@ -606,7 +606,7 @@ static PyObject* pybullet_setPhysicsEngineParameter(PyObject* self, PyObject* ar
int numSubSteps = -1;
int collisionFilterMode = -1;
double contactBreakingThreshold = -1;
int maxNumCmdPer1ms = -1;
int maxNumCmdPer1ms = -2;
b3PhysicsClientHandle sm = 0;
int physicsClientId = 0;
@@ -658,7 +658,8 @@ static PyObject* pybullet_setPhysicsEngineParameter(PyObject* self, PyObject* ar
{
b3PhysicsParamSetContactBreakingThreshold(command,contactBreakingThreshold);
}
if (maxNumCmdPer1ms>=0)
//-1 is disables the maxNumCmdPer1ms feature, allow it
if (maxNumCmdPer1ms>=-1)
{
b3PhysicsParamSetMaxNumCommandsPer1ms(command,maxNumCmdPer1ms);
}