Add opencvsharp.dll / Add Rendertexture observation / add Canny
This commit is contained in:
@@ -22,6 +22,10 @@ public class CozmoMovementTester : MonoBehaviour
|
||||
[Tooltip("Choose which speed of the virtual cozmo should be tested.")]
|
||||
public TestStates testState = TestStates.MovementSpeed;
|
||||
|
||||
[Tooltip("Start and stop testing")]
|
||||
public bool isTesting = false;
|
||||
|
||||
|
||||
void Start()
|
||||
{
|
||||
movement = GetComponent<CozmoMovement>();
|
||||
@@ -35,13 +39,16 @@ public class CozmoMovementTester : MonoBehaviour
|
||||
|
||||
private void FixedUpdate()
|
||||
{
|
||||
if (testState == TestStates.MovementSpeed)
|
||||
if (isTesting)
|
||||
{
|
||||
TestMovementSpeed();
|
||||
}
|
||||
else if (testState == TestStates.RotationSpeed)
|
||||
{
|
||||
TestRotationSpeed();
|
||||
if (testState == TestStates.MovementSpeed)
|
||||
{
|
||||
TestMovementSpeed();
|
||||
}
|
||||
else if (testState == TestStates.RotationSpeed)
|
||||
{
|
||||
TestRotationSpeed();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,6 +67,7 @@ public class CozmoMovementTester : MonoBehaviour
|
||||
"\nElapsed time in milliseconds (Rotation): " + rotationWatch.ElapsedMilliseconds);
|
||||
}
|
||||
|
||||
isTesting = false;
|
||||
return;
|
||||
}
|
||||
else
|
||||
@@ -87,6 +95,7 @@ public class CozmoMovementTester : MonoBehaviour
|
||||
"/nElapsed time in milliseconds (Movement): " + movementWatch.ElapsedMilliseconds);
|
||||
}
|
||||
|
||||
isTesting = false;
|
||||
return;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user