com.kuka.nav.robot
Class ChangeMapCommand

java.lang.Object
  extended by com.kuka.nav.command.AbstractParameterizable
      extended by com.kuka.nav.command.AbstractCommand<T,E>
          extended by com.kuka.nav.command.Action<ChangeMapCommand,ActionContainer<ChangeMapCommand,NavExecutionResult>>
              extended by com.kuka.nav.robot.ChangeMapCommand
All Implemented Interfaces:
com.kuka.command.ICommand<ChangeMapCommand,ActionContainer<ChangeMapCommand,NavExecutionResult>>, com.kuka.command.IParameterizableCommand<ChangeMapCommand,ActionContainer<ChangeMapCommand,NavExecutionResult>>, com.kuka.parameters.IParameterizable

public final class ChangeMapCommand
extends Action<ChangeMapCommand,ActionContainer<ChangeMapCommand,NavExecutionResult>>

Requests the change of the currently active map of the commanded mobile robot.


Constructor Summary
  ChangeMapCommand(int mapId)
          Creates a new change map command.
protected ChangeMapCommand(com.kuka.parameters.IParameterMap params)
          Copy constructor.
 
Method Summary
 ChangeMapCommand copy()
           
 int getMapId()
           
 ChangeMapCommand setMapId(int mapId)
          Sets the id of the map to change to.
 
Methods inherited from class com.kuka.nav.command.Action
getTimeout, setTimeout
 
Methods inherited from class com.kuka.nav.command.AbstractCommand
getDescription, self, setDescription
 
Methods inherited from class com.kuka.nav.command.AbstractParameterizable
getParameters, paramHelper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.kuka.parameters.IParameterizable
getParameters
 

Constructor Detail

ChangeMapCommand

public ChangeMapCommand(int mapId)
Creates a new change map command.

Parameters:
mapId - the id of the map to change to

ChangeMapCommand

protected ChangeMapCommand(com.kuka.parameters.IParameterMap params)
Copy constructor. Creates a mew instance of the class containing the deep copy of the specified parameter map.

Parameters:
params - parameter map containing the command parameters.
Method Detail

setMapId

public ChangeMapCommand setMapId(int mapId)
Sets the id of the map to change to.

Parameters:
mapId - the map id
Returns:
a reference to this command

getMapId

public int getMapId()
Returns:
the id of the map to change to.

copy

public ChangeMapCommand copy()
Specified by:
copy in interface com.kuka.command.ICommand<ChangeMapCommand,ActionContainer<ChangeMapCommand,NavExecutionResult>>
Specified by:
copy in class AbstractCommand<ChangeMapCommand,ActionContainer<ChangeMapCommand,NavExecutionResult>>


Copyright © 2019. All rights reserved.