Add opencvsharp.dll / Add Rendertexture observation / add Canny

This commit is contained in:
Tobi
2019-05-15 12:07:27 +02:00
parent 19fa5027ee
commit 7317135cd3
33 changed files with 484569 additions and 424 deletions
+15 -6
View File
@@ -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