Try to fix tests

This commit is contained in:
Chuyuan Fu
2019-03-08 13:50:12 -08:00
parent 2908bd9641
commit fa2368c6d6

View File

@@ -60,7 +60,7 @@ public:
{
b3RobotSimulatorLoadUrdfFileArgs args;
b3RobotSimulatorChangeDynamicsArgs dynamicsArgs;
for (int i = 0; i < numCubes; i++)
{
args.m_forceOverrideFixedBase = (i == 0);
@@ -110,7 +110,7 @@ public:
{
for (int i = 0; i < numCubes; i++)
{
btVector3 pos = {0, i * 0.05, 1};
btVector3 pos = {0, i * (btScalar)0.05, 1};
btQuaternion quar = {0, 0, 0, 1};
m_robotSim.resetBasePositionAndOrientation(cubeIds[i], pos, quar);
}
@@ -157,12 +157,11 @@ public:
virtual void resetCamera()
{
float dist = 1;
float pitch = -20;
float yaw = -30;
float targetPos[3] = {0, 0.2, 0.5};
m_guiHelper->resetCamera(dist, yaw, pitch, targetPos[0], targetPos[1], targetPos[2]);
float dist = 1;
float pitch = -20;
float yaw = -30;
float targetPos[3] = {0, 0.2, 0.5};
m_guiHelper->resetCamera(dist, yaw, pitch, targetPos[0], targetPos[1], targetPos[2]);
}
};