Merge pull request #1010 from khansari/master

Fixing a bug on Visualizer Camera and a few more
This commit is contained in:
erwincoumans 2017-03-13 12:33:40 -07:00 committed by GitHub
commit 6dd47d1062
3 changed files with 178 additions and 178 deletions

File diff suppressed because it is too large Load Diff

View File

@ -3055,8 +3055,8 @@ static PyObject* pybullet_configureDebugVisualizer(PyObject* self, PyObject* arg
static PyObject* pybullet_resetDebugVisualizerCamera(PyObject* self, PyObject* args, PyObject *keywds)
{
float cameraDistance = -1;
float cameraYaw = -1;
float cameraPitch = -1;
float cameraYaw = 35;
float cameraPitch = 50;
PyObject* cameraTargetPosObj=0;
int physicsClientId = 0;
@ -3076,7 +3076,7 @@ static PyObject* pybullet_resetDebugVisualizerCamera(PyObject* self, PyObject* a
{
b3SharedMemoryCommandHandle commandHandle = b3InitConfigureOpenGLVisualizer(sm);
if ((cameraDistance>=0) && (cameraYaw>=0) && (cameraPitch>=0))
if ((cameraDistance>=0))
{
float cameraTargetPosition[3];
if (pybullet_internalSetVector(cameraTargetPosObj,cameraTargetPosition))

View File

@ -43,8 +43,8 @@ for pitch in range (0,360,10) :
print ('width = %d height = %d' % (w,h))
#note that sending the data to matplotlib is really slow
plt.imshow(rgb,interpolation='none')
plt.imshow(rgb,interpolation='none')
plt.pause(0.001)
main_stop = time.time()