Class: Google::Apis::StreetviewpublishV1::Pose
- Inherits:
-
Object
- Object
- Google::Apis::StreetviewpublishV1::Pose
- 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
Raw pose measurement for an entity.
Instance Attribute Summary collapse
-
#accuracy_meters ⇒ Float
The estimated horizontal accuracy of this pose in meters with 68% confidence ( one standard deviation).
-
#altitude ⇒ Float
Altitude of the pose in meters above WGS84 ellipsoid.
-
#gps_record_timestamp_unix_epoch ⇒ String
Time of the GPS record since UTC epoch.
-
#heading ⇒ Float
The following pose parameters pertain to the center of the photo.
-
#lat_lng_pair ⇒ Google::Apis::StreetviewpublishV1::LatLng
An object that represents a latitude/longitude pair.
-
#level ⇒ Google::Apis::StreetviewpublishV1::Level
Level information containing level number and its corresponding name.
-
#pitch ⇒ Float
Pitch, measured at the center of the photo in degrees.
-
#roll ⇒ Float
Roll, measured in degrees.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Pose
constructor
A new instance of Pose.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Pose
Returns a new instance of Pose.
883 884 885 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 883 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accuracy_meters ⇒ Float
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
836 837 838 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 836 def accuracy_meters @accuracy_meters end |
#altitude ⇒ Float
Altitude of the pose in meters above WGS84 ellipsoid. NaN indicates an
unmeasured quantity.
Corresponds to the JSON property altitude
842 843 844 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 842 def altitude @altitude end |
#gps_record_timestamp_unix_epoch ⇒ String
Time of the GPS record since UTC epoch.
Corresponds to the JSON property gpsRecordTimestampUnixEpoch
847 848 849 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 847 def @gps_record_timestamp_unix_epoch end |
#heading ⇒ Float
The following pose parameters pertain to the center of the photo. They match
https://developers.google.com/streetview/spherical-metadata. 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
855 856 857 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 855 def heading @heading end |
#lat_lng_pair ⇒ Google::Apis::StreetviewpublishV1::LatLng
An object that represents a latitude/longitude pair. This is expressed as a
pair of doubles to represent degrees latitude and degrees longitude. Unless
specified otherwise, this object must conform to the WGS84 standard. Values
must be within normalized ranges.
Corresponds to the JSON property latLngPair
863 864 865 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 863 def lat_lng_pair @lat_lng_pair end |
#level ⇒ Google::Apis::StreetviewpublishV1::Level
Level information containing level number and its corresponding name.
Corresponds to the JSON property level
868 869 870 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 868 def level @level end |
#pitch ⇒ Float
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
875 876 877 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 875 def pitch @pitch end |
#roll ⇒ Float
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
881 882 883 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 881 def roll @roll end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
888 889 890 891 892 893 894 895 896 897 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 888 def update!(**args) @accuracy_meters = args[:accuracy_meters] if args.key?(:accuracy_meters) @altitude = args[:altitude] if args.key?(:altitude) @gps_record_timestamp_unix_epoch = args[:gps_record_timestamp_unix_epoch] if args.key?(:gps_record_timestamp_unix_epoch) @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 |