Merge pull request #2781 from erwincoumans/master

bump up pybullet version to 2.7.5
This commit is contained in:
erwincoumans 2020-05-05 08:21:20 -07:00 committed by GitHub
commit bedf63c34d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 4 deletions

View File

@ -1049,7 +1049,7 @@ void PhysicsDirect::postProcessStatus(const struct SharedMemoryStatus& serverCmd
case CMD_REQUEST_OPENGL_VISUALIZER_CAMERA_FAILED:
{
b3Warning("requestOpenGLVisualizeCamera failed");
//b3Warning("requestOpenGLVisualizeCamera failed");
break;
}
case CMD_REMOVE_USER_CONSTRAINT_FAILED:

View File

@ -12709,6 +12709,8 @@ bool PhysicsServerCommandProcessor::processUpdateVisualShapeCommand(const struct
m_data->m_guiHelper->changeSpecularColor(graphicsIndex, clientCmd.m_updateVisualShapeDataArguments.m_specularColor);
}
}
#ifndef SKIP_SOFT_BODY_MULTI_BODY_DYNAMICS_WORLD
else if (bodyHandle->m_softBody)
{
if (clientCmd.m_updateFlags & CMD_UPDATE_VISUAL_SHAPE_RGBA_COLOR)
@ -12720,6 +12722,7 @@ bool PhysicsServerCommandProcessor::processUpdateVisualShapeCommand(const struct
}
}
}
#endif
}
}
}

View File

@ -6980,7 +6980,27 @@ static PyObject* pybullet_getDebugVisualizerCamera(PyObject* self, PyObject* arg
int hasCamInfo;
b3SharedMemoryStatusHandle statusHandle;
struct b3OpenGLVisualizerCameraInfo camera;
PyObject* pyCameraList = 0;
int i;
camera.m_width=0;
camera.m_height=0;
camera.m_dist=0;
camera.m_yaw=0;
camera.m_pitch=0;
for (i=0;i<16;i++)
{
camera.m_viewMatrix[i]=0;
camera.m_projectionMatrix[i]=0;
}
for (i=0;i<3;i++)
{
camera.m_camUp[i]=0;
camera.m_camForward[i]=0;
camera.m_horizontal[i]=0;
camera.m_vertical[i]=0;
camera.m_target[i]=0;
}
PyObject* pyCameraList = 0;
sm = getPhysicsClient(physicsClientId);
if (sm == 0)
@ -6993,7 +7013,7 @@ static PyObject* pybullet_getDebugVisualizerCamera(PyObject* self, PyObject* arg
statusHandle = b3SubmitClientCommandAndWaitStatus(sm, commandHandle);
hasCamInfo = b3GetStatusOpenGLVisualizerCamera(statusHandle, &camera);
if (hasCamInfo)
if (1)
{
PyObject* item = 0;
pyCameraList = PyTuple_New(12);

View File

@ -501,7 +501,7 @@ if 'BT_USE_EGL' in EGL_CXX_FLAGS:
setup(
name='pybullet',
version='2.7.4',
version='2.7.6',
description=
'Official Python Interface for the Bullet Physics SDK specialized for Robotics Simulation and Reinforcement Learning',
long_description=