Update pybullet.c
fix compile issue
This commit is contained in:
@@ -7036,10 +7036,12 @@ static PyObject* pybullet_calculateJacobian(PyObject* self, PyObject* args, PyOb
|
|||||||
angularJacobian);
|
angularJacobian);
|
||||||
if (linearJacobian)
|
if (linearJacobian)
|
||||||
{
|
{
|
||||||
|
int r;
|
||||||
PyObject* pymat = PyTuple_New(3);
|
PyObject* pymat = PyTuple_New(3);
|
||||||
for (int r = 0; r < 3; ++r) {
|
for (r = 0; r < 3; ++r) {
|
||||||
|
int c;
|
||||||
PyObject* pyrow = PyTuple_New(dofCount);
|
PyObject* pyrow = PyTuple_New(dofCount);
|
||||||
for (int c = 0; c < dofCount; ++c) {
|
for (c = 0; c < dofCount; ++c) {
|
||||||
int element = r * dofCount + c;
|
int element = r * dofCount + c;
|
||||||
PyTuple_SetItem(pyrow, c,
|
PyTuple_SetItem(pyrow, c,
|
||||||
PyFloat_FromDouble(linearJacobian[element]));
|
PyFloat_FromDouble(linearJacobian[element]));
|
||||||
@@ -7050,10 +7052,12 @@ static PyObject* pybullet_calculateJacobian(PyObject* self, PyObject* args, PyOb
|
|||||||
}
|
}
|
||||||
if (angularJacobian)
|
if (angularJacobian)
|
||||||
{
|
{
|
||||||
|
int r;
|
||||||
PyObject* pymat = PyTuple_New(3);
|
PyObject* pymat = PyTuple_New(3);
|
||||||
for (int r = 0; r < 3; ++r) {
|
for (r = 0; r < 3; ++r) {
|
||||||
|
int c;
|
||||||
PyObject* pyrow = PyTuple_New(dofCount);
|
PyObject* pyrow = PyTuple_New(dofCount);
|
||||||
for (int c = 0; c < dofCount; ++c) {
|
for (c = 0; c < dofCount; ++c) {
|
||||||
int element = r * dofCount + c;
|
int element = r * dofCount + c;
|
||||||
PyTuple_SetItem(pyrow, c,
|
PyTuple_SetItem(pyrow, c,
|
||||||
PyFloat_FromDouble(linearJacobian[element]));
|
PyFloat_FromDouble(linearJacobian[element]));
|
||||||
|
|||||||
Reference in New Issue
Block a user