Class: Google::Apis::StreetviewpublishV1::Pose
- Inherits:
-
Object
- Object
- Google::Apis::StreetviewpublishV1::Pose
- 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
-
#altitude ⇒ Float
Altitude of the pose in meters above WGS84 ellipsoid.
-
#heading ⇒ Float
Compass heading, measured at the center of the photo in degrees clockwise from North.
-
#lat_lng_pair ⇒ Google::Apis::StreetviewpublishV1::LatLng
An object representing 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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Pose
Returns a new instance of Pose
586 587 588 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 586 def initialize(**args) update!(**args) end |
Instance Attribute Details
#altitude ⇒ Float
Altitude of the pose in meters above WGS84 ellipsoid.
NaN indicates an unmeasured quantity.
Corresponds to the JSON property altitude
548 549 550 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 548 def altitude @altitude end |
#heading ⇒ Float
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
555 556 557 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 555 def heading @heading end |
#lat_lng_pair ⇒ Google::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
564 565 566 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 564 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
569 570 571 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 569 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
577 578 579 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 577 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
584 585 586 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 584 def roll @roll end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
591 592 593 594 595 596 597 598 |
# File 'generated/google/apis/streetviewpublish_v1/classes.rb', line 591 def update!(**args) @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 |