Merge branch 'develop' of http://gitlab.mynt.com/mynteye/mynt-eye-sdk-2 into develop
This commit is contained in:
commit
07eb0b36c1
|
@ -15,7 +15,6 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
# pylint: disable=missing-docstring
|
# pylint: disable=missing-docstring
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
@ -27,7 +26,6 @@ sys.path.append(os.path.join(TOOLBOX_DIR, 'internal'))
|
||||||
# pylint: disable=import-error,wrong-import-position
|
# pylint: disable=import-error,wrong-import-position
|
||||||
from data import ROSBag, MYNTEYE, What
|
from data import ROSBag, MYNTEYE, What
|
||||||
|
|
||||||
|
|
||||||
ANGLE_DEGREES = 'd'
|
ANGLE_DEGREES = 'd'
|
||||||
ANGLE_RADIANS = 'r'
|
ANGLE_RADIANS = 'r'
|
||||||
ANGLE_UNITS = (ANGLE_DEGREES, ANGLE_RADIANS)
|
ANGLE_UNITS = (ANGLE_DEGREES, ANGLE_RADIANS)
|
||||||
|
@ -38,6 +36,11 @@ BIN_IMU_NAME = 'stamp_analytics_imu.bin'
|
||||||
RESULT_FIGURE = 'stamp_analytics.png'
|
RESULT_FIGURE = 'stamp_analytics.png'
|
||||||
|
|
||||||
|
|
||||||
|
IMU_ALL = 0
|
||||||
|
IMU_ACCEL = 1
|
||||||
|
IMU_GYRO = 2
|
||||||
|
|
||||||
|
|
||||||
class BinDataset(object):
|
class BinDataset(object):
|
||||||
|
|
||||||
def __init__(self, path, dataset_creator):
|
def __init__(self, path, dataset_creator):
|
||||||
|
@ -147,9 +150,9 @@ class BinDataset(object):
|
||||||
imgs_t_diff = np.diff(imgs['t'])
|
imgs_t_diff = np.diff(imgs['t'])
|
||||||
# imus_t_diff = np.diff(imus['t'])
|
# imus_t_diff = np.diff(imus['t'])
|
||||||
|
|
||||||
accel = imus[imus['flag'] == 1]
|
accel = imus[(imus['flag'] == IMU_ALL) | (imus['flag'] == IMU_ACCEL)]
|
||||||
accel_t_diff = np.diff(accel['t'])
|
accel_t_diff = np.diff(accel['t'])
|
||||||
gyro = imus[imus['flag'] == 2]
|
gyro = imus[(imus['flag'] == IMU_ALL) | (imus['flag'] == IMU_GYRO)]
|
||||||
gyro_t_diff = np.diff(gyro['t'])
|
gyro_t_diff = np.diff(gyro['t'])
|
||||||
|
|
||||||
print('\ncount')
|
print('\ncount')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user