VLAdaptorBench / external /pyrep /tests /test_gyroscope.py
lsnu's picture
Add files using upload-large-folder tool
cf8614b verified
import unittest
from tests.core import TestCore
from pyrep.sensors.gyroscope import Gyroscope
class TestGyroscope(TestCore):
def setUp(self):
super().setUp()
self.sensor = Gyroscope('gyroscope')
def test_read(self):
angular_velocities = self.sensor.read()
self.assertEqual(len(angular_velocities), 3)
if __name__ == '__main__':
unittest.main()