Class: Google::Apis::StreetviewpublishV1::Imu

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/streetviewpublish_v1/classes.rb,
lib/google/apis/streetviewpublish_v1/representations.rb,
lib/google/apis/streetviewpublish_v1/representations.rb

Overview

IMU data from the device sensors.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Imu

Returns a new instance of Imu.



206
207
208
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 206

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#accel_mpspsArray<Google::Apis::StreetviewpublishV1::Measurement3d>

The accelerometer measurements in meters/sec^2 with increasing timestamps from devices. Corresponds to the JSON property accelMpsps



192
193
194
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 192

def accel_mpsps
  @accel_mpsps
end

#gyro_rpsArray<Google::Apis::StreetviewpublishV1::Measurement3d>

The gyroscope measurements in radians/sec with increasing timestamps from devices. Corresponds to the JSON property gyroRps



198
199
200
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 198

def gyro_rps
  @gyro_rps
end

#mag_utArray<Google::Apis::StreetviewpublishV1::Measurement3d>

The magnetometer measurements of the magnetic field in microtesla (uT) with increasing timestamps from devices. Corresponds to the JSON property magUt



204
205
206
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 204

def mag_ut
  @mag_ut
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



211
212
213
214
215
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 211

def update!(**args)
  @accel_mpsps = args[:accel_mpsps] if args.key?(:accel_mpsps)
  @gyro_rps = args[:gyro_rps] if args.key?(:gyro_rps)
  @mag_ut = args[:mag_ut] if args.key?(:mag_ut)
end