DELRRSModelFctPackage (no NLS) Functions

This section describes the functions of the DELRRSModelFctPackage methods.

This page discusses:

GetRRSServerDecoratedNames

Retrieves the list of RRS server decorated names from the robot's RRS servers file.

Signature

GetRRSServerDecoratedNames(oRRSServerDecoratedName : List) 

ReturnType

List

List of strings containing the robot’s RRS server decorated names.

Example

let MyRRSConnect(RRSConnectionMgr)
MyRRSConnect = SelectedOcc->GetRRSConnectionMgr() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myList(List)
myList = MyRRSConnect.GetRRSServerDecoratedNames()
let myTMPName(String)
for myTMPName inside myList
{
  Notify('Server name:',myTMPName)
}

GetRRSServerIndexInList

Retrieves given RRS server's index in robot's RRS servers file.

Signature

GetRRSServerIndexInList(iRRSServerDecoratedNames : List, iRRSServerDecoratedName : String) : Integer

Arguments

Name Input/Output Required? Type Comment
iRRSServerDecoratedNames In List -
iRRSServerDecoratedName In String -

ReturnType

Integer

Index of given RRS server decorated name in given list of RRS server decorated names. If not found returns 0.

Example

let MyRRSConnect(RRSConnectionMgr)
MyRRSConnect = SelectedOcc->GetRRSConnectionMgr() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myListServerDecoratedNames(List)
myListServerDecoratedNames = GetRRSServerDecoratedNames()

let myTestInteger(Integer)
myTestInteger = MyRRSConnect.GetRRSServersFileFullName(myListServerDecoratedNames,'MyServerName')

GetRRSServerProperties

Retrieves the RRS server properties for the given RRS server name (raw or decorated).

Signature

GetRRSServerProperties(iServerName : String, oControllerType : String, oIPCType : String, oServerHost : String, oServerPort : String) : Boolean

Arguments

Name Input/Output Required? Type Comment
iServerName In String -
oControllerType Out String -
oIPCType Out String -
oServerHost Out String -
oServerPort Out String -

ReturnType

String

Given an RRS server’s raw name.

Example

let MyRRSConnect(RRSConnectionMgr)
MyRRSConnect = SelectedOcc->GetRRSConnectionMgr() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myTestString(String)
let sControllerType(String)
let sIPCType(String)
let sServerHost(String)
let sServerPort(String)
myTestString = MyRRSConnect.GetRRSServerProperties('myServerDecoratedName',sControllerType,sIPCType,sServerHost,sServerPort)
 

GetRRSServerRawName

Retrieves the RRS server raw name from its decorated name. Raw name is the server name string (first field in RRS servers file line) whereas decorated name also includes RRS server host and port/program number information.

Signature

GetRRSServerRawName(iRRSServerDecoratedName : String) : String

Arguments

Name Input/Output Required? Type Comment
iRRSServerDecoratedName In String -

ReturnType

String

Raw name of given decorated RRS server.

Example

let MyRRSConnect(RRSConnectionMgr)
MyRRSConnect = SelectedOcc->GetRRSConnectionMgr() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myTestString(String)
myTestString = MyRRSConnect.GetRRSServerRawName('myServerDecoratedName')

GetRRSServersFileFullName

Retrieves robot's RRS servers file full path.

Signature

GetRRSServersFileFullName() : String

ReturnType

String

Retrieves robot's RRS servers file full path.

Example

let MyRRSConnect(RRSConnectionMgr)
MyRRSConnect = SelectedOcc->GetRRSConnectionMgr() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myTestString(String)
myTestString = MyRRSConnect.GetRRSServersFileFullName()

IsRRSServer

Indicates if the robot, at the moment, is connected to an RRS-I or RRS-II server, or not connected to any RRS server.

Signature

IsRRSServer(iRRSServerName : String) : Integer

ReturnType

Integer

Returns 0 if robot not RRS connected, 1 if RRS-I connected and 2 if RRS-II connected.

Example

let MyRRSConnect(RRSConnectionMgr)
MyRRSConnect = SelectedOcc->GetRRSConnectionMgr() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myTestInteger(Integer)
myTestInteger = MyRRSConnect.IsRRSServer()