|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.nav.command.AbstractParameterizable
com.kuka.nav.fleet.GraphMotion
public class GraphMotion
The graph motion implementation class.
| Constructor Summary | |
|---|---|
protected |
GraphMotion(com.kuka.parameters.IParameterMap params,
List<? extends TopologyNodeId> whiteList,
List<? extends TopologyNodeId> blackList)
Copy constructor. |
|
GraphMotion(TopologyGraph graph,
TopologyNodeId goal)
Creates a new graph motion in the specified graph to the specified goal node. |
| Method Summary | |
|---|---|
GraphMotion |
addViaNode(TopologyNodeId via)
Appends the given via node to the list of via nodes of this graph motion. |
GraphMotion |
addViaNodes(List<? extends TopologyNodeId> vias)
Appends a list of via nodes to the list of via nodes defined for this graph motion. |
GraphMotion |
clearViaNodes()
Clears the via nodes list. |
GraphMotion |
copy()
Creates a deep copy of the command. |
boolean |
equals(Object obj)
|
List<TopologyNode> |
getBlackList()
Gets the list of black-listed nodes of this graph motion. |
String |
getDescription()
Gets the textual description of the command. |
TopologyNode |
getGoalNode()
Gets the goal node of this graph motion. |
Double |
getGoalOrientation()
Gets the goal orientation of this graph motion. |
TopologyGraph |
getGraph()
Gets the graph of this graph motion. |
GraphMotionIdentifier |
getIdentifier()
Returns the identifier for this graph motion. |
int |
getPriority()
Gets this graph motion's priority. |
DispatcherFilter |
getResourceFilter()
Gets the resource filter specifying resources with required capabilities to complete the graph motion. |
List<TopologyNode> |
getViaNodes()
Gets the via nodes of this graph motion. |
List<TopologyNode> |
getWhiteList()
Gets the list of white-listed nodes of this graph motion. |
boolean |
hasBlackList()
Checks whether this graph motion has a black-list. |
int |
hashCode()
|
boolean |
hasWhiteList()
Checks whether this graph motion has a white-list. |
GraphMotion |
setBlackList(List<? extends TopologyNodeId> blackList)
Sets the black-listed nodes for this graph motion. |
GraphMotion |
setDescription(String description)
Sets textual description for the command. |
GraphMotion |
setGoalNode(TopologyNodeId goal)
Sets the goal node of this graph motion. |
GraphMotion |
setGoalOrientation(double orientation)
Sets the goal orientation of this graph motion. |
GraphMotion |
setGraph(TopologyGraph graph)
Sets the graph of this graph motion. |
protected void |
setIdentifier()
Sets a new identifier for this graph motion. |
GraphMotion |
setPriority(int prio)
Sets this graph motion's priority. |
GraphMotion |
setResourceFilter(DispatcherFilter filter)
Sets the DispatcherFilter specifying the robot configuration required to perform the graph motion. |
GraphMotion |
setViaNodes(List<? extends TopologyNodeId> vias)
Sets the list of via nodes of this graph motion to the given list of via nodes. |
GraphMotion |
setWhiteList(List<? extends TopologyNodeId> whiteList)
Sets the white-listed nodes for this graph motion. |
String |
toString()
|
| Methods inherited from class com.kuka.nav.command.AbstractParameterizable |
|---|
getParameters, paramHelper |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GraphMotion(TopologyGraph graph,
TopologyNodeId goal)
setPriority(int) to adapt the priority.
There are two possible ways to specify the graph and the goal node:
GraphData interface and retrieve the graph and node from the data source
TopologyGraph
and TopologyNode
Example: Creating a graph motion in graph with id 3 to node with name "goal node":
new GraphMotion(TopologyGraph.withId(3), TopologyNode.withName("goal node"));
graph - the graphgoal - the goal nodeTopologyGraph.withId(int),
TopologyGraph.withName(String),
TopologyNodeId.withId(int),
TopologyNodeId.withName(String)
protected GraphMotion(com.kuka.parameters.IParameterMap params,
List<? extends TopologyNodeId> whiteList,
List<? extends TopologyNodeId> blackList)
params - parameter map containing the command parameterswhiteList - the whitelistblackList - the blacklist| Method Detail |
|---|
public final GraphMotionIdentifier getIdentifier()
CoordinatedGraphMotionContainer for this graph motion.
Note that the identifier will change each time this graph motion is modified. Therefore if this graph motion is reused and part of a coupled motion the identifier should be saved after commanding the fleet manager.
protected void setIdentifier()
public GraphMotion setDescription(String description)
description - description to set.
public final String getDescription()
public final DispatcherFilter getResourceFilter()
public GraphMotion setResourceFilter(DispatcherFilter filter)
DispatcherFilter specifying the robot configuration required to perform the graph motion.
filter - the dispatcher filter (must not be null - a set dispatcher filter can be removed by calling this
method with DispatcherFilters.ANY, accepting all configurations)
public final TopologyGraph getGraph()
public GraphMotion setGraph(TopologyGraph graph)
graph - the graph (must not be null)
public final TopologyNode getGoalNode()
public GraphMotion setGoalNode(TopologyNodeId goal)
goal - the goal node (must not be null)
public GraphMotion setGoalOrientation(double orientation)
orientation - the goal orientation to be set.
public final Double getGoalOrientation()
public final List<TopologyNode> getViaNodes()
public GraphMotion addViaNodes(List<? extends TopologyNodeId> vias)
For consecutive identical via nodes only the first node is taken into account. Depending on the installed planner graph motions defining via nodes can only be executed by themselves and not together with other graph motions.
vias - the via nodes (neither the list of via nodes nor a single element of this list can be null)
public GraphMotion setViaNodes(List<? extends TopologyNodeId> vias)
For consecutive identical via nodes only the first node is taken into account. Depending on the installed planner graph motions defining via nodes can only be executed by themselves and not together with other graph motions.
vias - the via nodes (neither the list of via nodes nor a single element of this list can be null)
public GraphMotion addViaNode(TopologyNodeId via)
For consecutive identical via nodes only the first node is taken into account. Depending on the installed planner graph motions defining via nodes can only be executed by themselves and not together with other graph motions.
via - the via node (must not be null)
public GraphMotion clearViaNodes()
public GraphMotion setPriority(int prio)
prio - the priority to be set, must be non-negative (0 corresponds to the highest priority)
public final int getPriority()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic GraphMotion copy()
public String toString()
toString in class Objectpublic final List<TopologyNode> getWhiteList()
null, then any plan
which is found for this motion must only visit the nodes that are contained in this list.
public GraphMotion setWhiteList(List<? extends TopologyNodeId> whiteList)
null for a graph motion.
whiteList - List of white-listed nodes (must not contain any null-entry)
IllegalArgumentException - if the provided list is not null and a black-list has already been set or the or if the
provided list is not null and contains a null-entry.public final List<TopologyNode> getBlackList()
null, then any plan
found for this graph motion must not visit any node which is contained in this list.
public GraphMotion setBlackList(List<? extends TopologyNodeId> blackList)
null for a graph motion.
blackList - List of black-listed nodes (must not contain any null-entry)
IllegalArgumentException - if the provided list is not null and a white-list has already been set or the or if the
provided list is not null and contains a null-entry.public final boolean hasWhiteList()
true if and only if a white-list is set.public final boolean hasBlackList()
true if and only if a black-list is set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||