set dft for kd to be 1.0. note: this is only applicable to CONTROL_MODE_VELOCITY
This commit is contained in:
@@ -294,8 +294,6 @@ pybullet_resetSimulation(PyObject* self, PyObject* args)
|
|||||||
|
|
||||||
static PyObject* pybullet_setJointMotorControl(PyObject* self, PyObject* args)
|
static PyObject* pybullet_setJointMotorControl(PyObject* self, PyObject* args)
|
||||||
{
|
{
|
||||||
//TODO(matkelcey): should this just be three methods?
|
|
||||||
|
|
||||||
int size;
|
int size;
|
||||||
int bodyIndex, jointIndex, controlMode;
|
int bodyIndex, jointIndex, controlMode;
|
||||||
double targetValue=0;
|
double targetValue=0;
|
||||||
@@ -303,7 +301,7 @@ static PyObject* pybullet_setJointMotorControl(PyObject* self, PyObject* args)
|
|||||||
double targetVelocity=0;
|
double targetVelocity=0;
|
||||||
double maxForce=100000;
|
double maxForce=100000;
|
||||||
double kp=0.1;
|
double kp=0.1;
|
||||||
double kd=0.1;
|
double kd=1.0;
|
||||||
int valid = 0;
|
int valid = 0;
|
||||||
|
|
||||||
if (0==sm)
|
if (0==sm)
|
||||||
|
|||||||
Reference in New Issue
Block a user