class Roby::Pos::Euler3D

This class represents both a position and an orientation

Attributes

pitch[RW]

The orientation angles

roll[RW]

The orientation angles

yaw[RW]

The orientation angles

Public Class Methods

new(x = 0, y = 0, z = 0, yaw = 0, pitch = 0, roll = 0) click to toggle source

Create an euler position object

Calls superclass method Roby::Pos::Vector3D::new
# File lib/roby/state/pos.rb, line 95
def initialize(x = 0, y = 0, z = 0, yaw = 0, pitch = 0, roll = 0)
    super(x, y, z)
    @yaw, @pitch, @roll = yaw, pitch, roll
end

Public Instance Methods

ypr() click to toggle source

Returns [yaw, pitch, roll]

# File lib/roby/state/pos.rb, line 101
def ypr
    [yaw, pitch, roll]
end