Class: Google::Apis::StreetviewpublishV1::Pose

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

Overview

Raw pose measurement for an entity.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Pose

Returns a new instance of Pose



597
598
599
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 597

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

Instance Attribute Details

#accuracy_metersFloat

The estimated horizontal accuracy of this pose in meters with 68% confidence (one standard deviation). For example, on Android, this value is available from this method: https://developer.android.com/reference/android/location/Location#getAccuracy() . Other platforms have different methods of obtaining similar accuracy estimations. Corresponds to the JSON property accuracyMeters

Returns:

  • (Float)


553
554
555
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 553

def accuracy_meters
  @accuracy_meters
end

#altitudeFloat

Altitude of the pose in meters above WGS84 ellipsoid. NaN indicates an unmeasured quantity. Corresponds to the JSON property altitude

Returns:

  • (Float)


559
560
561
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 559

def altitude
  @altitude
end

#headingFloat

Compass heading, measured at the center of the photo in degrees clockwise from North. Value must be >=0 and <360. NaN indicates an unmeasured quantity. Corresponds to the JSON property heading

Returns:

  • (Float)


566
567
568
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 566

def heading
  @heading
end

#lat_lng_pairGoogle::Apis::StreetviewpublishV1::LatLng

An object representing a latitude/longitude pair. This is expressed as a pair of doubles representing degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. Values must be within normalized ranges. Corresponds to the JSON property latLngPair



575
576
577
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 575

def lat_lng_pair
  @lat_lng_pair
end

#levelGoogle::Apis::StreetviewpublishV1::Level

Level information containing level number and its corresponding name. Corresponds to the JSON property level



580
581
582
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 580

def level
  @level
end

#pitchFloat

Pitch, measured at the center of the photo in degrees. Value must be >=-90 and <= 90. A value of -90 means looking directly down, and a value of 90 means looking directly up. NaN indicates an unmeasured quantity. Corresponds to the JSON property pitch

Returns:

  • (Float)


588
589
590
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 588

def pitch
  @pitch
end

#rollFloat

Roll, measured in degrees. Value must be >= 0 and <360. A value of 0 means level with the horizon. NaN indicates an unmeasured quantity. Corresponds to the JSON property roll

Returns:

  • (Float)


595
596
597
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 595

def roll
  @roll
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



602
603
604
605
606
607
608
609
610
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 602

def update!(**args)
  @accuracy_meters = args[:accuracy_meters] if args.key?(:accuracy_meters)
  @altitude = args[:altitude] if args.key?(:altitude)
  @heading = args[:heading] if args.key?(:heading)
  @lat_lng_pair = args[:lat_lng_pair] if args.key?(:lat_lng_pair)
  @level = args[:level] if args.key?(:level)
  @pitch = args[:pitch] if args.key?(:pitch)
  @roll = args[:roll] if args.key?(:roll)
end