com.kuka.nav
Class Position

java.lang.Object
  extended by com.kuka.nav.Position
All Implemented Interfaces:
com.kuka.parameters.IParameter, Serializable

public class Position
extends Object
implements Serializable, com.kuka.parameters.IParameter

A class holding a position.

See Also:
Serialized Form

Constructor Summary
Position(double x, double y)
          The constructor.
Position(Position pos)
          Constructor.
 
Method Summary
 com.kuka.parameters.IParameter copy()
           
 double distance(Position pos)
          Calculates the euclidean square-norm of the position to a given position.
 double getX()
          Returns the x value of this position.
 double getY()
          Returns the y value of this position.
 Pose toPose(double orientation)
          Creates a pose from this position using the given orientation.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Position

public Position(double x,
                double y)
The constructor.

Parameters:
x - the x value
y - the y value

Position

public Position(Position pos)
Constructor.

Parameters:
pos - the position
Method Detail

getX

public double getX()
Returns the x value of this position.

Returns:
the x value

getY

public double getY()
Returns the y value of this position.

Returns:
the y value

toString

public String toString()
Overrides:
toString in class Object

toPose

public Pose toPose(double orientation)
Creates a pose from this position using the given orientation.

Parameters:
orientation - Orientation of the new pose in [rad]
Returns:
a new pose with the given orientation

distance

public double distance(Position pos)
Calculates the euclidean square-norm of the position to a given position.

Parameters:
pos - another position
Returns:
distance between this position and the other position

copy

public com.kuka.parameters.IParameter copy()
Specified by:
copy in interface com.kuka.parameters.IParameter


Copyright © 2019. All rights reserved.