Merge remote-tracking branch 'bp/master'
This commit is contained in:
@@ -2417,7 +2417,8 @@ static PyObject* pybullet_setJointMotorControl2(PyObject* self, PyObject* args,
|
||||
|
||||
if ((controlMode != CONTROL_MODE_VELOCITY) &&
|
||||
(controlMode != CONTROL_MODE_TORQUE) &&
|
||||
(controlMode != CONTROL_MODE_POSITION_VELOCITY_PD))
|
||||
(controlMode != CONTROL_MODE_POSITION_VELOCITY_PD) &&
|
||||
(controlMode != CONTROL_MODE_PD))
|
||||
{
|
||||
PyErr_SetString(SpamError, "Illegral control mode.");
|
||||
return NULL;
|
||||
@@ -2446,6 +2447,7 @@ static PyObject* pybullet_setJointMotorControl2(PyObject* self, PyObject* args,
|
||||
}
|
||||
|
||||
case CONTROL_MODE_POSITION_VELOCITY_PD:
|
||||
case CONTROL_MODE_PD:
|
||||
{
|
||||
if (maxVelocity>0)
|
||||
{
|
||||
@@ -9561,6 +9563,8 @@ initpybullet(void)
|
||||
CONTROL_MODE_VELOCITY); // user read
|
||||
PyModule_AddIntConstant(m, "POSITION_CONTROL",
|
||||
CONTROL_MODE_POSITION_VELOCITY_PD); // user read
|
||||
PyModule_AddIntConstant(m, "PD_CONTROL",
|
||||
CONTROL_MODE_PD); // user read
|
||||
|
||||
PyModule_AddIntConstant(m, "LINK_FRAME", EF_LINK_FRAME);
|
||||
PyModule_AddIntConstant(m, "WORLD_FRAME", EF_WORLD_FRAME);
|
||||
|
||||
Reference in New Issue
Block a user