|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.nav.Location
public class Location
Objects of this class represent a location in the navigation system. A location consists of a pose on a map with an associated name. A location might also have sensor data and other parameters associated to it.
| Constructor Summary | |
|---|---|
Location(int locId,
int mapId,
String locName,
Pose locPose,
int robotTypeId)
Constructs a newly allocated NavigationLocation with the using the given parameters. |
|
Location(Location loc)
Constructs a newly allocated NavigationLocation using the parameters of the given NavigationLocation object. |
|
| Method Summary | |
|---|---|
com.kuka.parameters.IParameter |
copy()
|
boolean |
equals(Object obj)
|
int |
getId()
Returns the location ID. |
int |
getMapId()
Returns the ID of the map where this location is defined. |
String |
getName()
Returns the name of the location. |
Pose |
getPose()
Returns the pose of the location. |
int |
getRobotTypeId()
|
int |
hashCode()
|
boolean |
hasSensorData()
Returns the flag indicating whether the location has associated sensor data. |
String |
toString()
|
Location |
withPose(Pose pose)
Returns a copy of this location with a changed pose. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Location(int locId,
int mapId,
String locName,
Pose locPose,
int robotTypeId)
locId - the location id.mapId - the corresponding map id.locName - the location name.locPose - the location pose.robotTypeId - The robot type id for which sensor data is present or -1 to indicate no sensor data is present.public Location(Location loc)
loc - The NavigationLocation object from which the parameters are going to be taken.| Method Detail |
|---|
public Location withPose(Pose pose)
pose - The new pose of the location copy.
public int getId()
public String getName()
public int getMapId()
public Pose getPose()
public boolean hasSensorData()
public int getRobotTypeId()
hasSensorData() returns
true, otherwise -1.public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic com.kuka.parameters.IParameter copy()
copy in interface com.kuka.parameters.IParameterpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||