DELRPPModelTypePackage (no NLS) Methods

This section describes the methods of the DELRPPModelTypePackage.

This page discusses:

RscOptimizationPath.AddNewOptimizationPathTarget()

Add new RscOptimizationPathTarget in the current RscOptimizationPath.

Signature

RscOptimizationPath.AddNewOptimizationPathTarget(iTargetType : Integer, iLocationIndex : Integer) : RscOptimizationPathTarget

Arguments

Name Input/Output Required? Type Comment
iTargetType Input Integer Target type:
  • 0: joint target
  • 1: Cartesian target
iLocationIndex Input Integer Position in the path (with index starting at 1).

ReturnType

RscOptimizationPathTarget

Newly created target.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myNewTask(DNBResourceTask)
myNewTask = MyPathPlanner.AddNewOptimizationPathTarget(1,'MyResultTask')

RscOptimizationPath.GetOptimizationPathTargetIndex()

Retrieves index from RscOptimizationPathTarget in the current RscOptimizationPath.

Signature

RscOptimizationPath.GetOptimizationPathTargetIndex(iTargetObject : RscOptimizationPathTarget) : Integer

Arguments

Name Input/Output Required? Type Comment
iTargetObject Input RscOptimizationPathTarget Object within the path.

ReturnType

Integer

Index starting at 1.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myTarget(RscOptimizationPathTarget)
//valuation of target

let myIndex(Integer)
myIndex = MyPathPlanner.GetOptimizationPathTargetIndex(myTarget)

RscOptimizationPath.GetOptimizationPathTargetObject()

Retrieves existing RscOptimizationPathTarget in the current RscOptimizationPath at a specific index.

Signature

RscOptimizationPath.GetOptimizationPathTargetObject(iLocationIndex : Integer) : RscOptimizationPathTarget

Arguments

Name Input/Output Required? Type Comment
iLocationIndex Input Integer Position in the path (with index starting at 1).

ReturnType

RscOptimizationPathTarget

Existing target at specified index.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myTarget(RscOptimizationPathTarget)
myTarget = MyPathPlanner.GetOptimizationPathTargetObject(1)

RscOptimizationPath.GetOptimizationPathTargetTravelDistance()

Retrieves path travel distance in meters.

Signature

RscOptimizationPath.GetOptimizationPathTargetTravelDistance() : Real

ReturnType

Real

Travel distance in meters.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myDistance(Real)
myDistance = MyPathPlanner.GetOptimizationPathTargetTravelDistance()

RscOptimizationPath.MoveOptimizationPathTargetIndex()

Moves a given RscOptimizationPathTarget from its current index to the new location in the current RscOptimizationPath.

Signature

RscOptimizationPath.MoveOptimizationPathTargetIndex(iOriginalIndex : Integer, iNewIndex : Integer) : Integer

Arguments

Name Input/Output Required? Type Comment
iOriginalIndex Input Integer Index starting at 1 where the object is currently.
iNewIndex Input Integer Index starting at 1 where the object should be moved.

ReturnType

Integer

0 if successful.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

MyPathPlanner.MoveOptimizationPathTargetIndex(1,2)//moving from 1 to 2

RscOptimizationPath.RemoveOptimizationPathTarget()

Removes existing RscOptimizationPathTarget in the current RscOptimizationPath.

Signature

RscOptimizationPath.RemoveOptimizationPathTarget(iLocationIndex : Integer) : Integer

Arguments

Name Input/Output Required? Type Comment
iLocationIndex Input Integer Position in the path (with index starting at 1).

ReturnType

Integer

0 if successful.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myNewTask(DNBResourceTask)
myNewTask = MyPathPlanner.RemoveOptimizationPathTarget(1)

RscOptimizationPathTarget.GetOptimizationPathJointLocation()

Gets the target location as a joint value.

Signature

RscOptimizationPathTarget.GetOptimizationPathJointLocation() : List

ReturnType

List

List of joint values.

Example

let MyPath(RscOptimizationPathTarget)
//valuation of the path

let myPosition(List);
myPosition.GetOptimizationPathJointLocation()

RscOptimizationPathTarget.GetOptimizationPathTargetConfig()

Gets the target configuration (posture) for the robot within the current optimization path.

Signature

RscOptimizationPathTarget.GetOptimizationPathTargetConfig() : Integer

ReturnType

Integer

Config index starting at 0.

Example

let MyPath(RscOptimizationPathTarget)
//valuation of the path

let myTargetConfig(Integer)
myTargetConfig = MyPathPlanner.GetOptimizationPathTargetConfig()

RscOptimizationPathTarget.GetOptimizationPathTargetDOFTurns()

Retrieves the current list of turn numbers.

Signature

RscOptimizationPathTarget.GetOptimizationPathTargetDOFTurns() : List

Arguments

Name Input/Output Required? Type Comment
iDOFIndex Input Integer DOF index starting at 1.
ioTurnValue Output Integer Turn value.

ReturnType

Integer

O if succeeded.

Example

let MyPath(RscOptimizationPathTarget)
//valuation of the path

let myTurnValue(Integer)
MyPathPlanner.GetOptimizationPathTargetTurns(1,myTurnValue) //retrieval for 1st DOF

RscOptimizationPathTarget.GetOptimizationPathTargetLocation()

Gets the target location as a cartesian position.

Signature

RscOptimizationPathTarget.GetOptimizationPathTargetLocation(iReference : Integer) : RscTransform

Arguments

Name Input/Output Required? Type Comment
iReference Input Integer Set it to 0 (default value).

ReturnType

RscTransform

Transformation matrix.

Example

let MyPath(RscOptimizationPathTarget)
//valuation of the path

let myPosition(RscTransform);
myPosition.GetOptimizationPathTargetLocation(0)

RscOptimizationPathTarget.GetOptimizationPathTargetTurns()

Gets the target configuration (posture) for the robot within the current optimization path.

Signature

RscOptimizationPathTarget.GetOptimizationPathTargetTurns(iDOFIndex : Integer, ioTurnValue : Integer) : Integer

ReturnType

Integer

Config index starting at 0.

Example

let MyPath(RscOptimizationPathTarget)
//valuation of the path

let myTargetConfig(Integer)
myTargetConfig = MyPathPlanner.GetOptimizationPathTargetTurns()

RscOptimizationPathTarget.GetOptimizationPathTargetType()

Gets the target type within the current optimization path.

Signature

RscOptimizationPathTarget.GetOptimizationPathTargetType() : Integer

ReturnType

Integer
  • 0: joint
  • 1: cartesian

Example

let MyPath(RscOptimizationPathTarget)
//valuation of the path

let myTargetType(Integer)
myTargetType = MyPathPlanner.GetOptimizationPathTargetType()

RscOptimizationPathTarget.SetOptimizationPathJointLocation()

Sets the target location as a joint value.

Signature

RscOptimizationPathTarget.SetOptimizationPathJointLocation(iJointValues : List) : Integer

Arguments

Name Input/Output Required? Type Comment
iJointValues Input List List of joint values.

ReturnType

Integer

0 if succeeded.

Example

let MyPath(RscOptimizationPathTarget)
//valuation of the path

let myPosition(List);
//valuation of joint values

MyPath.SetOptimizationPathJointLocation(myPosition)

RscOptimizationPathTarget.SetOptimizationPathTargetConfig()

Sets the target configuration (posture) for the robot within the current optimization path.

Signature

RscOptimizationPathTarget.SetOptimizationPathTargetConfig(iConfigIndex : Integer) : Integer

Arguments

Name Input/Output Required? Type Comment
iConfigIndex Input Integer Index starting at 0 for the configuration.

ReturnType

Integer

0 if succeeded.

Example

let MyPath(RscOptimizationPathTarget)
//valuation of the path

MyPath.SetOptimizationPathTargetConfig(0) //position as a cartesian position

RscOptimizationPathTarget.SetOptimizationPathTargetLocation()

Sets the target location as a cartesian position.

Signature

RscOptimizationPathTarget.SetOptimizationPathTargetLocation(iTargetValue : RscTransform, iReference : Integer) : Integer

Arguments

Name Input/Output Required? Type Comment
iTargetValue Input RscTransform Position matrix.
iReference Input Integer Set to 0 (default value).

ReturnType

Integer

0 if succeeded.

Example

let MyPath(RscOptimizationPathTarget)
//valuation of the path

let myPosition(RscTransform);
//valuation of myPosition

MyPath.SetOptimizationPathTargetLocation(myPosition,0)

RscOptimizationPathTarget.SetOptimizationPathTargetTurns()

Sets the target configuration (posture) for the robot within the current optimization path.

Signature

RscOptimizationPathTarget.SetOptimizationPathTargetTurns(iDOFIndex : Integer, iTurnValue : Integer) : Integer

Arguments

Name Input/Output Required? Type Comment
iDOFIndex Input Integer DOF index starting at 1.
ioTurnValue Output Integer Turn value.

ReturnType

Integer

0 if succeeded.

Example

let MyPath(RscOptimizationPathTarget)
//valuation of the path

MyPath.SetOptimizationPathTargetTurns(1,0) //setting for 1st DOF

RscOptimizationPathTarget.SetOptimizationPathTargetType()

Sets the target type within the current optimization path.

Signature

RscOptimizationPathTarget.SetOptimizationPathTargetType(iTargetType : Integer) : Integer

Arguments

Name Input/Output Required? Type Comment
iTargetType Input Integer Integer for the target type:
  • 0: joint
  • 1: cartesian

ReturnType

Integer

0 if succeeded.

Example

let MyPath(RscOptimizationPathTarget)
//valuation of the path

MyPath.SetOptimizationPathTargetType(1) //position as a cartesian position

RscPathPlanner.AddPathPlannerMovingObjects()

Add moving objects to consider for the path planner. By default, robot and attached guns are considered as moving objects.

Signature

RscPathPlanner.AddPathPlannerMovingObjects(iListMovingObjects : List) : Integer

Arguments

Name Input/Output Required? Type Comment
iListMovingObjects Input List List of moving objects(ProductOccurrence). API will filter duplication.

ReturnType

Integer

0 if succeeded.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myNewMovingObject(ProductOccurrence)
//valuation of myNewMovingObject

let myListMoving(List)
List.Add(myNewMovingObject)
MyPathPlanner.AddPathPlannerMovingObjects(myListMoving)

RscPathPlanner.AddPathPlannerObstacles()

Add obstacles to consider for the path planner.

Signature

RscPathPlanner.AddPathPlannerObstacles(iListObstacles : List) : Integer

Arguments

Name Input/Output Required? Type Comment
iListObstacles Input List list of obstacles (ProductOccurrence). API will filter duplication.

ReturnType

Integer

0 if succeeded.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myNewObstacle(ProductOccurrence)
//valuation of myNewObstacle

let myListObstacle(List)
List.Add(myNewObstacle)
MyPathPlanner.AddPathPlannerObstacles(myListObstacle)

RscPathPlanner.ComputeOptimizedPaths()

Computes the possible optimized paths.

Signature

RscPathPlanner.ComputeOptimizedPaths(oListSolutions : List) : Integer

Arguments

Name Input/Output Required? Type Comment
oListSolutions Output List List of integer where each value indicates if a solution has been found and is successful(if the value is 0).

ReturnType

Integer

Count of optimized paths.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myListSolutions(List)
MyPathPlanner.ComputeOptimizedPaths(myListSolutions)

let mySolutionResult(Integer)
let myIndex(Integer)
myIndex = 1
for mySolutionResult inside  myListSolutions
{
  if(mySolutionResult  ==  0)
  {
    myRPP.CreateRobotTaskSolution(myIndex,'')
  }
  myIndex  =  myIndex  +  1
}

RscPathPlanner.CreateRobotTaskSolution()

Creates the robot task from the computed solutions.

Signature

RscPathPlanner.CreateRobotTaskSolution(iSolutionIndex : Integer, iTaskName : String) : DNBResourceTask

Arguments

Name Input/Output Required? Type Comment
iSolutionIndex Input Integer Solution index starting at 1.
iTaskName Input String Task name. If empty, a new name is generated. Otherwise, input name must be unique for the robot.

ReturnType

Integer

Count of optimized paths.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myNewTask(DNBResourceTask)
myNewTask = MyPathPlanner.CreateRobotTaskSolution(1,'MyResultTask')

RscPathPlanner.ExecuteDOFOptimization()

Imports the specification under an XML file.

Signature

RscPathPlanner.ExecuteDOFOptimization(ioMotionTimeBefore : Real, ioMotionTimeAfter : Real) : Integer

Arguments

Name Input/Output Required? Type Comment
ioMotionTimeBefore Output Real Motion time before DOF validation (in seconds).
ioMotionTimeAfter Output Real Motion time after DOF validation (in seconds).

ReturnType

Integer

0 if succeeded.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myReturnCode(Integer)
let myTimeBefore(Real)
let myTimeAfter(Real)
myReturnCode = MyPathPlanner.ExecuteDOFOptimization(myTimeBefore,myTimeAfter)

RscPathPlanner.ExecutePathValidation()

Retrieves the maximum number of solutions to compute by the path planner.

Signature

RscPathPlanner.ExecutePathValidation() : Integer

ReturnType

Integer

0 if succeeded (otherwise a number when collision happens at a given target location).

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myReturnCode(Integer)
myReturnCode = MyPathPlanner.ExecutePathValidation()

RscPathPlanner.ExportPathPlannerSpecifications()

Exports the specification under an XML file.

Signature

RscPathPlanner.ExportPathPlannerSpecifications(iFullFilePath : String) : Integer

Arguments

Name Input/Output Required? Type Comment
iFullFilePath Input String Full file path.

ReturnType

Integer

0 if succeeded.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myFilePath(String)
myFilePath = 'c:\\TEMP\mytestfile.xml'  //example of export
MyPathPlanner.ExportPathPlannerSpecifications(myFilePath)

RscPathPlanner.GetPathPlannerAccuracyProfile()

Retrieves the accuracy profile to use for new via points for the path planner.

Signature

RscPathPlanner.GetPathPlannerAccuracyProfile() : String

ReturnType

Integer

Name of the accuracy profile.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myAccuracyProfile(String)
myAccuracyProfile = MyPathPlanner.GetPathPlannerAccuracyProfile()

RscPathPlanner.GetPathPlannerDOFOptimizationActivation()

Gets specific parameter activation for DOF validation.

Signature

RscPathPlanner.GetPathPlannerDOFOptimizationActivation(iParamID : String) : Boolean

Arguments

Name Input/Output Required? Type Comment
iParamID Input String

Allowed value: FlipOnTag

ReturnType

Boolean

True if activated (false otherwise).

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myActivationValue(Boolean)
myActivationValue = MyPathPlanner.GetPathPlannerDOFOptimizationActivation('FlipOnTag')

RscPathPlanner.GetPathPlannerDynamicRotationLimits()

Retrieves the rotation limits dynamically option mode.

Signature

RscPathPlanner.GetPathPlannerDynamicRotationLimits() : Boolean

ReturnType

Boolean

True if activated (false otherwise).

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myDynamicRotationLimits(Boolean)
myDynamicRotationLimits = MyPathPlanner.GetPathPlannerDynamicRotationLimits()

RscPathPlanner.GetPathPlannerGlobalClearance()

Retrieves the global clearance value (in meters) for the path planner.

Signature

RscPathPlanner.GetPathPlannerGlobalClearance() : Real

ReturnType

Real

Global clearance value in meters.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myGlobalClearance(Real)
myGlobalClearance = MyPathPlanner.GetPathPlannerGlobalClearance()

RscPathPlanner.GetPathPlannerGuidingPathRadius()

Retrieves the guiding path radius (in meters) for the path planner. Guiding path radius defines the 'virtual cylinder' radius where the solution can be found.

Signature

RscPathPlanner.GetPathPlannerGuidingPathRadius() : Real

ReturnType

Real

Guiding path radius expressed in meters.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myGuidingPathRadius(Real)
myGuidingPathRadius = MyPathPlanner.GetPathPlannerGuidingPathRadius()

RscPathPlanner.GetPathPlannerGuidingPathUsage()

Retrieves the guiding path usage activation.

Signature

RscPathPlanner.GetPathPlannerGuidingPathUsage() : Boolean

ReturnType

Boolean

True if activated (false otherwise).

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myGuidingPathUsage(Boolean)
myGuidingPathUsage = MyPathPlanner.GetPathPlannerGuidingPathUsage()

RscPathPlanner.GetPathPlannerJointInterpolationMode()

Retrieves the joint interpolation mode to use between new via points for the path planner.

Signature

RscPathPlanner.GetPathPlannerJointInterpolationMode() : Integer

ReturnType

Integer

0: Dynamic

1: Keep Config and Turns.

2: Keep Config Set Turns.

3: Set Config Keep Turns.

4: Set Config and Turns

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myJointInterpolationMode(Integer)
myJointInterpolationMode = MyPathPlanner.GetPathPlannerJointInterpolationMode()

RscPathPlanner.GetPathPlannerMotionProfile()

Retrieves the motion profile to use for new via points for the path planner.

Signature

RscPathPlanner.GetPathPlannerMotionProfile() : String

ReturnType

Integer

Name of the motion profile.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myMotionProfile(String)
myMotionProfile = MyPathPlanner.GetPathPlannerMotionProfile()

RscPathPlanner.GetPathPlannerMotionType()

Retrieves the motion type to use between new via points for the path planner.

Signature

RscPathPlanner.GetPathPlannerMotionType() : Integer

ReturnType

Integer

0: Joint Motion

1: Linear Motion

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myMotionType(Integer)
myMotionType = MyPathPlanner.GetPathPlannerMotionType()

RscPathPlanner.GetPathPlannerMovingObjects()

Retrieves moving objects considered by the path planner.

Signature

RscPathPlanner.GetPathPlannerMovingObjects() : List

ReturnType

List

List of moving objects(ProductOccurrence).

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myListMoving(List)
myListMoving = MyPathPlanner.GetPathPlannerMovingObjects()

//dumping the list
let myPrd(ProductOccurrence)
for myPrd inside myListMoving
{
  Notify('Product name:',myPrd.Name)
}

RscPathPlanner.GetPathPlannerMovingObjectsCount()

Retrieves count of moving objects considered by the path planner.

Signature

RscPathPlanner.GetPathPlannerMovingObjectsCount() : Integer

ReturnType

Integer

Number of moving objects.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let iNbMoving(Integer)
iNbMoving = MyPathPlanner.GetPathPlannerMovingObjectsCount()

RscPathPlanner.GetPathPlannerObstacles()

Retrieves obstacles considered by the path planner.

Signature

RscPathPlanner.GetPathPlannerObstacles() : List

ReturnType

List

List of obstacles (ProductOccurrence).

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myListObstacle(List)
myListObstacle = MyPathPlanner.GetPathPlannerObstacles()
//dumping the list
let myPrd(ProductOccurrence)
for myPrd inside myListObstacle
{
  Notify('Product name:',myPrd.Name)
}

RscPathPlanner.GetPathPlannerObstaclesCount()

Retrieves count of obstacles considered by the path planner.

Signature

RscPathPlanner.GetPathPlannerObstaclesCount() : Integer

ReturnType

Integer

Number of obstacles.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let iNbObstacle(Integer)
iNbObstacle = MyPathPlanner.GetPathPlannerObstaclesCount()

RscPathPlanner.GetPathPlannerOptimizedPath()

Retrieves a specific solution path as a RscOptimizationPath. A solution can be retrieved if more details are required on the solution.

Signature

RscPathPlanner.GetPathPlannerOptimizedPath(iSolutionIndex : Integer) : RscOptimizationPath

Arguments

Name Input/Output Required? Type Comment
iSolutionIndex Input Integer Index of the solution from ComputeOptimizedPaths.

ReturnType

RscOptimizationPath

Path containing the different targets.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let mySolutionPath(RscOptimizationPath)
mySolutionPath = MyPathPlanner.GetPathPlannerOptimizedPath(1)

RscPathPlanner.GetPathPlannerReferenceTask()

Retrieves the reference task for the path planner(if set). The reference task is used by the planner to compute a solution close to the reference task.

Signature

RscPathPlanner.GetPathPlannerReferenceTask() : DNBResourceTask

ReturnType

DNBResourceTask

Reference task used by the path planner. Might be NULL.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myTask(DNBResourceTask) 
myTask = MyPathPlanner.GetPathPlannerReferenceTask(myTask)

RscPathPlanner.GetPathPlannerRscMultiClearance()

Retrieves the resource multi-clearance usage for the path planner.

Signature

RscPathPlanner.GetPathPlannerRscMultiClearance() : Boolean

ReturnType

Boolean

True if activated (false otherwise).

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myRscMultiClearance(Boolean)
myRscMultiClearance = MyPathPlanner.GetPathPlannerRscMultiClearance()

RscPathPlanner.GetPathPlannerSearchOptionPositionRange()

Retrieves the position range limits for the path planner.

Signature

RscPathPlanner.GetPathPlannerSearchOptionPositionRange() : List

ReturnType

List

List of 6 values in meters (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myDynamicPositionLimits(List)
myDynamicPositionLimits = MyPathPlanner.GetPathPlannerSearchOptionPositionRange()

RscPathPlanner.GetPathPlannerSearchOptionRotationRange()

Retrieves the rotation range limits for the path planner.

Signature

RscPathPlanner.GetPathPlannerSearchOptionRotationRange() : List

ReturnType

List

List of 6 values in meters (Rollmin,Rollmax,Pitchmin,Pitchmax,Yawmin,Yawmax).

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myDynamicRotationLimits(List)
myDynamicRotationLimits = MyPathPlanner.GetPathPlannerSearchOptionRotationRange()

RscPathPlanner.GetPathPlannerSolutionOptimizationOptionActivation()

Gets specific parameter activation for optimization of the solution.

Signature

RscPathPlanner.GetPathPlannerSolutionOptimizationOptionActivation(iParamID : String) : Boolean

Arguments

Name Input/Output Required? Type Comment
iParamID Input String

Allowed value:

  • TargetLocation: target location
  • ConfigTurns: config-turns
  • Speed: speed
  • Flyby: fly-by

ReturnType

Boolean

True if activated (false otherwise).

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myActivationValue(Boolean)
myActivationValue = MyPathPlanner.GetPathPlannerDOFOptimizationActivation('TargetLocation')

RscPathPlanner.GetPathPlannerSolutionOptimizationOptionValue()

Gets specific parameter value for optimization of the solution.

Signature

RscPathPlanner.GetPathPlannerSolutionOptimizationOptionValue(iParamID : String) : Real

Arguments

Name Input/Output Required? Type Comment
iParamID Input String

Allowed value:

  • OptimizeGlobalTimeOut: time out for full optimization resolution. Value in seconds.
  • OptimizeIterationTimeOut: time out for optimization step after a solution has been found. Value in seconds.

ReturnType

Real

Value retrieved.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myValue(Real)
myValue = MyPathPlanner.GetPathPlannerDOFOptimizationActivation('OptimizeGlobalTimeOut')

RscPathPlanner.GetPathPlannerSolverMaxSolutions()

Retrieves the maximum number of solutions to compute by the path planner.

Signature

RscPathPlanner.GetPathPlannerSolverMaxSolutions() : Integer

ReturnType

Integer

Maximum number of solutions.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let mySolverMaxSolutions(Integer)
mySolverMaxSolutions = MyPathPlanner.GetPathPlannerSolverMaxSolutions()

RscPathPlanner.GetPathPlannerSolverSamplingDistance()

Retrieves the sampling distance (in meters) for the path planner. Sampling distance defines the minimum distance used to verify the motion.

Signature

RscPathPlanner.GetPathPlannerSolverSamplingDistance() : Real

ReturnType

Real

Minimum distance used for sampling expressed in meters.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let mySolverSamplingDistance(Real)
mySolverSamplingDistance = MyPathPlanner.GetPathPlannerSolverSamplingDistance ()

RscPathPlanner.GetPathPlannerSolverSegmentTimeOut()

Retrieves the maximum duration to compute a segment by the path planner.

Signature

RscPathPlanner.GetPathPlannerSolverSegmentTimeOut() : Real

ReturnType

Real

Maximum time allowed for computation expressed in seconds.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let mySolverSegmentTimeOut(Real)
mySolverSegmentTimeOut = MyPathPlanner.GetPathPlannerSolverSegmentTimeOut()

RscPathPlanner.GetPathPlannerViaPointPrefix()

Retrieves the prefix to set for new via point that will be created by the path planner.

Signature

RscPathPlanner.GetPathPlannerViaPointPrefix() : Integer: String

Arguments

Name Input/Output Required? Type Comment
iViaPointType Input Integer Authorized values:
  • 2 for tag
  • 3 for tag group

ReturnType

 String 

Prefix value.

Example

>let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myViaPointPrefix(String)
myViaPointPrefix = MyPathPlanner.GetPathPlannerViaPointPrefix(2)

RscPathPlanner.GetPathPlannerViaPointType()

Retrieves the type of new via point that will be created by the path planner.

Signature

RscPathPlanner.GetPathPlannerViaPointType() : Integer

ReturnType

Integer

0: Joint

1: Cartesian

2: Tag

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myViaPointTarget(Integer)
myViaPointTarget = MyPathPlanner.GetPathPlannerViaPointType()

RscPathPlanner.ImportPathPlannerSpecifications()

Imports the specification under an XML file.

Signature

RscPathPlanner.ImportPathPlannerSpecifications(iFullFilePath : String) : List

Arguments

Name Input/Output Required? Type Comment
iFullFilePath Input String Full file path.

ReturnType

List

0 if succeeded.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myFilePath(String)
myFilePath = 'c:\\TEMP\mytestfile.xml'  //example of import
MyPathPlanner.ImportPathPlannerSpecifications(myFilePath)

RscPathPlanner.ProductOccurrence.GetRscPathPlanner()

Retrieve the robot path planner parameters on a given product occurrence to compute optimized path for a particular robot.

Signature

RscPathPlanner.ImportPathPlannerSpecifications(iFullFilePath : String) : List

Arguments

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

ReturnType

List

0 if succeeded.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot
";

RscPathPlanner.RemovePathPlannerMovingObjects()

Remove moving objects to consider for the path planner.

Signature

RscPathPlanner.RemovePathPlannerMovingObjects(iListMovingObjects : List) : Integer

Arguments

Name Input/Output Required? Type Comment
iListMovingObjects Input List List of moving objects(ProductOccurrence). API will filter duplication.

ReturnType

Integer

0 if succeeded.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myMovingObjectToRemove(ProductOccurrence)
//valuation of myNewMovingObject

let myListMoving(List)
List.Add(myMovingObjectToRemove)
MyPathPlanner.RemovePathPlannerMovingObjects(myListMoving)

RscPathPlanner.RemovePathPlannerObstacles()

Remove obstacles to consider for the path planner.

Signature

RscPathPlanner.RemovePathPlannerObstacles(iListObstacles : List) : Integer

Arguments

Name Input/Output Required? Type Comment
iListObstacles Input List List of obstacles (ProductOccurrence). API will filter duplication.

ReturnType

Integer

0 if succeeded.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myObstacleToRemove(ProductOccurrence)
//valuation of myNewObstacle

let myListObstacle(List)
List.Add(myObstacleToRemove)
MyPathPlanner.RemovePathPlannerObstacles(myListObstacle)

RscPathPlanner.SetPathObjectToOptimize()

Indicates what is the path object to optimize.

Signature

RscPathPlanner.SetPathObjectToOptimize(iObjectToProcessAsPath : Feature) : Integer

Arguments

Name Input/Output Required? Type Comment
iObjectToProcessAsPath Input Feature Allowed objects are:
  • DNBResourceTask
  • DNBTrajectory

ReturnType

Integer

Returns 0 if API succeeds.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

//retrieval of task
let myTaskManager(DNBTaskManager)
myTaskManager = GetTaskManager(myRscOcc)

let myTaskList(List)
myTaskManager.GetTaskList(myTaskList)

let myTask(DNBResourceTask) 
if(myTaskList.Size() > 0)
{
  myTask = myTaskList.GetItem(1)
  let myTestInteger(Integer)
  myTestInteger = MyRRSParam.SetPathObjectToOptimize(myTask)
}

RscPathPlanner.SetPathPlannerAccuracyProfile()

Sets the accuracy profile to use for new via points for the path planner.

Signature

RscPathPlanner.SetPathPlannerAccuracyProfile(iAccuracyProfile : String) : Integer

Arguments

Name Input/Output Required? Type Comment
iAccuracyProfile Input String Name of the existing accuracy profile.

ReturnType

Integer

0 if succeeded.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

MyPathPlanner.SetPathPlannerAccuracyProfile('AccuracyProfile.1')

RscPathPlanner.SetPathPlannerDOFOptimizationActivation()

Sets specific parameter activation for DOF validation.

Signature

RscPathPlanner.SetPathPlannerDOFOptimizationActivation(iParamID : String, iParamActivation : Boolean) : Integer

Arguments

Name Input/Output Required? Type Comment
iParamID Input String

Allowed value: FlipOnTag

iParamActivation Input Boolean True for activation (false otherwise).

ReturnType

Integer

0 if succeeded.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myReturnCode(Integer)
myReturnCode = MyPathPlanner.SetPathPlannerDOFOptimizationActivation('FlipOnTag',true)

RscPathPlanner.SetPathPlannerDynamicRotationLimits()

Sets the rotation limits dynamically option mode.

Signature

RscPathPlanner.SetPathPlannerDynamicRotationLimits(iDynamicRotationLimits : Boolean) : Integer

Arguments

Name Input/Output Required? Type Comment
iDynamicRotationLimits Input Boolean True to activate.

ReturnType

Integer

0 if succeeded.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

MyPathPlanner.SetPathPlannerDynamicRotationLimits(false) //no activation of dynamic rotation limit

RscPathPlanner.SetPathPlannerGlobalClearance()

Sets the global clearance value (in meters) for the path planner.

Warning: Value is ignored if resource multi-clearances is activated.

Signature

RscPathPlanner.SetPathPlannerGlobalClearance(iGlobalClearance : Real) : Integer

Arguments

Name Input/Output Required? Type Comment
iGlobalClearance Input Real Value in meters (must be positive or equal to zero).

ReturnType

Integer

0 if succeeded.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

MyPathPlanner.SetPathPlannerGlobalClearance(0.005) //clearance at 5mm

RscPathPlanner.SetPathPlannerGuidingPathRadius()

Sets the guiding path radius (in meters) for the path planner. Guiding path radius defines the 'virtual cylinder' radius where the solution should be found.

Signature

RscPathPlanner.SetPathPlannerGuidingPathRadius(iGuidingPathRadius : Real) : Integer

Arguments

Name Input/Output Required? Type Comment
iGuidingPathRadius Input Real Guiding path radius expressed in meters

ReturnType

Integer

0 if succeeded.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

MyPathPlanner.SetPathPlannerGuidingPathRadius(0.01) //guiding path radius set at 10mm

RscPathPlanner.SetPathPlannerGuidingPathUsage()

Sets the guiding path usage activation.

Signature

RscPathPlanner.SetPathPlannerGuidingPathUsage(iActivation : Boolean) : Integer

Arguments

Name Input/Output Required? Type Comment
iActivation Input Boolean True to activate.

ReturnType

Integer

0 if succeeded.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

MyPathPlanner.SetPathPlannerGuidingPathUsage(true)

RscPathPlanner.SetPathPlannerJointInterpolationMode()

Sets the joint interpolation mode to use between new via points for the path planner.

Signature

RscPathPlanner.SetPathPlannerJointInterpolationMode(iJointInterpolationMode : Integer) : Integer

Arguments

Name Input/Output Required? Type Comment
iJointInterpolationMode Input Integer Joint interpolation mode between via points:
  • 0: Dynamic
  • 1: Keep Config Keep Turns
  • 2: Keep Config Set Turns
  • 3: Set Config Keep Turns
  • 4: Set Config Set Turns

ReturnType

Integer

0 if succeeded.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

MyPathPlanner.SetPathPlannerJointInterpolationMode(0)//for joint move

RscPathPlanner.SetPathPlannerMotionProfile()

Sets the motion profile to use for new via points for the path planner.

Signature

RscPathPlanner.SetPathPlannerMotionProfile(iMotionProfile : String) : Integer

Arguments

Name Input/Output Required? Type Comment
iMotionProfile Input String Name of the existing motion profile.

ReturnType

Integer

0 if succeeded.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

MyPathPlanner.SetPathPlannerMotionProfile('MotionProfile.1')

RscPathPlanner.SetPathPlannerMotionType()

Sets the motion type to use between new via points for the path planner.

Signature

RscPathPlanner.SetPathPlannerMotionType(iMotionType : Integer) : Integer

Arguments

Name Input/Output Required? Type Comment
iMotionType Input Integer Motion type between via points:
  • 0 for joint motion
  • 1 for linear motion

ReturnType

Integer

0 if succeeded.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

MyPathPlanner.SetPathPlannerMotionType(0)//for joint move

RscPathPlanner.SetPathPlannerReferenceTask()

Sets the reference task for the path planner. The reference task is used by the planner to compute a solution close to the reference task.

Signature

RscPathPlanner.SetPathPlannerReferenceTask(iReferenceTask : DNBResourceTask) : Integer

Arguments

Name Input/Output Required? Type Comment
iReferenceTask Input DNBResourceTask Existing robot task

ReturnType

Integer

Returns 0 if API succeeds.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myTask(DNBResourceTask) 
//valuation of myTask

MyPathPlanner.SetPathPlannerReferenceTask(myTask)

RscPathPlanner.SetPathPlannerRscMultiClearance()

Sets the resource multi-clearance usage for the path planner.

Warning: Activation of resource multi-clearance will ignore global clearance value.

Signature

RscPathPlanner.SetPathPlannerRscMultiClearance(iRscMultiClearance : Boolean) : Integer

Arguments

Name Input/Output Required? Type Comment
iRscMultiClearance Input Boolean True to activate.

ReturnType

Integer

0 if succeeded.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

MyPathPlanner.SetPathPlannerRscMultiClearance(true)

RscPathPlanner.SetPathPlannerSearchOptionPositionRange()

Sets the position range limits for the path planner.

Signature

RscPathPlanner.SetPathPlannerSearchOptionPositionRange(iSearchOptionPositionRange : List) : Integer

Arguments

Name Input/Output Required? Type Comment
iSearchOptionPositionRange Input List List of 6 values in meters (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax

ReturnType

Integer

0 if succeeded.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myListValues(List)
myListValues.InsertItem(-2,1)
myListValues.InsertItem(2,2)
myListValues.InsertItem(-1.5,3)
myListValues.InsertItem(1.5,4)
myListValues.InsertItem(0.5,5)
myListValues.InsertItem(1.5,6)

MyPathPlanner.SetPathPlannerSearchOptionPositionRange(myListValues) //no activation of dynamic position limit

RscPathPlanner.SetPathPlannerSearchOptionRotationRange()

Sets the rotation range limits for the path planner.

Signature

RscPathPlanner.SetPathPlannerSearchOptionRotationRange(iSearchOptionRotationRange : List) : Integer

Arguments

Name Input/Output Required? Type Comment
iSearchOptionRotationRange Input List List of 6 values in meters (Rollmin,Rollmax,Pitchmin,Pitchmax,Yawmin,Yawmax)

ReturnType

Integer

0 if succeeded.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myListValues(List)
myListValues.InsertItem(-90*PI/180,1)
myListValues.InsertItem(90*PI/180,2)
myListValues.InsertItem(-90*PI/180,3)
myListValues.InsertItem(90*PI/180,4)
myListValues.InsertItem(-90*PI/180,5)
myListValues.InsertItem(90*PI/180,6)

MyPathPlanner.SetPathPlannerDynamicRotationLimits(myListValues) //no activation of dynamic rotation limit

RscPathPlanner.SetPathPlannerSolutionOptimizationOptionActivation()

Sets specific parameter activation for optimization of the solution.

Signature

RscPathPlanner.SetPathPlannerSolutionOptimizationOptionActivation(iParamID : String, iParamActivation : Boolean) : Integer

Arguments

Name Input/Output Required? Type Comment
iParamID Input String

Allowed value:

  • TargetLocation: target location
  • ConfigTurns: config-turns
  • Speed: speed
  • Flyby: fly-by

iParamActivation Input Boolean True for activation (false otherwise).

ReturnType

Integer

0 if succeeded.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myReturnCode(Integer)
myReturnCode = MyPathPlanner.SetPathPlannerSolutionOptimizationOptionActivation('TargetLocation',true)

RscPathPlanner.SetPathPlannerSolutionOptimizationOptionValue()

Sets specific parameter value for optimization of the solution.

Signature

RscPathPlanner.SetPathPlannerSolutionOptimizationOptionValue(iParamID : String, iParamValue : Real) : Integer

Arguments

Name Input/Output Required? Type Comment
iParamID Input String

Allowed value:

  • OptimizeGlobalTimeOut: time out for full optimization resolution. Value in seconds.
  • OptimizeIterationTimeOut: time out for optimization step after a solution has been found. Value in seconds.

iParamValue Input Real True for activation (false otherwise).

ReturnType

Integer

0 if succeeded.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

let myReturnCode(Integer)
myReturnCode = MyPathPlanner.SetPathPlannerSolutionOptimizationOptionActivation('OptimizeGlobalTimeOut',true)

RscPathPlanner.SetPathPlannerSolverMaxSolutions()

Sets the maximum number of solution to compute by the path planner.

Signature

RscPathPlanner.SetPathPlannerSolverMaxSolutions(iMaxSolutions : Integer) : Integer

Arguments

Name Input/Output Required? Type Comment
iMaxSolutions Input Integer Value must be equal or greater than 1.

ReturnType

Integer

0 if succeeded.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

MyPathPlanner.SetPathPlannerSolverMaxSolutions(2) //compute 2 possible solutions

RscPathPlanner.SetPathPlannerSolverSamplingDistance()

Sets the sampling distance (in meters) for the path planner. Sampling distance defines the minimum distance used to verify the motion.

Signature

RscPathPlanner.SetPathPlannerSolverSamplingDistance(iSamplingDistance : Real) : Integer

Arguments

Name Input/Output Required? Type Comment
iSamplingDistance Input Real Minimum distance used for sampling expressed in meters

ReturnType

Integer

0 if succeeded.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

MyPathPlanner.SetPathPlannerSolverSamplingDistance(0.01) //sampling distance set at 10mm

RscPathPlanner.SetPathPlannerSolverSegmentTimeOut()

Sets the maximum duration to compute a segment by the path planner.

Signature

RscPathPlanner.SetPathPlannerSolverSegmentTimeOut(iSegmentTimeOut : Real) : Integer

Arguments

Name Input/Output Required? Type Comment
iSegmentTimeOut Input Real Max-time to compute a segment expressed in seconds.

ReturnType

Integer

0 if succeeded.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

MyPathPlanner.SetPathPlannerSolverSegmentTimeOut(60) //max-time set at 60s

RscPathPlanner.SetPathPlannerViaPointPrefix()

Sets the prefix to set for new via point that will be created by the path planner.

Signature

RscPathPlanner.SetPathPlannerViaPointPrefix(iViaPointType : Integer, iViaPointPrefix : String, iViaPointType : Integer) : Integer

Arguments

Name Input/Output Required? Type Comment
iViaPointType Input Integer Authorized values:
  • 2 for tag
  • 3 for tag group
iViaPointPrefix Input String Prefix value

ReturnType

Integer

0 if succeeded.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

MyPathPlanner.SetPathPlannerViaPointPrefix(2,'prefixTag') //set prefix for tag

RscPathPlanner.SetPathPlannerViaPointType()

Sets the type of new via point that will be created by the path planner.

Signature

RscPathPlanner.SetPathPlannerViaPointType(iViaPointType : Integer) : Integer

Arguments

Name Input/Output Required? Type Comment
iViaPointType Input Integer Via point type:
  • 0: joint
  • 1: cartesian
  • 2: tag

ReturnType

Integer

0 if succeeded.

Example

let MyPathPlanner(RscPathPlanner)
MyPathPlanner = SelectedOcc->GetRscPathPlanner() //SelectedOcc is the product node of type ProductOccurrence for the robot

MyPathPlanner.SetPathPlannerViaPointType(0) //for joint target as via point

AddInputRobotTask

Adds a robot task to the multi-robot path planner to optimize. A task contains a list of targets (robot motions, spot operations, etc.) to optimize.

Signature

[out, int] AddInputRobotTask ([in, DNBResourceTask] iRobotTask)

Arguments

Name Input/Output Required? Type Comment
Robot Task Input Yes DNBResourceTask Robot task to optimize

ReturnType

Integer

Values:

  • 0 – succeeded
  • 1 – failed
  • 2 – robot token license check fail

Example

let multiRobPlanner(RscMultiRobotPathPlanner)
multiRobPlanner = prodOccRob.GetRscMultiRobotPathPlanner()

multiRobPlanner.AddInputRobotTask(inputTask)

ComputeMultiRobotSolution

Calculates optimal path planning solution for all input tasks.

Signature

[int, out] ComputeMultiRobotSolution ()

ReturnType

Integer

0 if succeeded.

Example

let multiRobPlanner(RscMultiRobotPathPlanner)
multiRobPlanner = prodOccRob.GetRscMultiRobotPathPlanner()

multiRobPlanner.AddInputRobotTask(inputTask1)
multiRobPlanner.AddInputRobotTask(inputTask2)
multiRobPlanner.AddInputRobotTask(inputTask3)

//Joint Motion Type
multiRobPlanner.SetPlanningMotionType(1)

//Run Optimizer
multiRobPlanner.ComputeMultiRobotSolution()

CreateResultingRobotTasks

Creates robot tasks based on the computed optimal paths. Function ComputeMultiRobotSolution() needs to be called before tasks are created.

Signature

[out, List] CreateResultingRobotTasks()

ReturnType

List

A list of robot tasks created based on the computed optimal paths.

Example

let multiRobPlanner(RscMultiRobotPathPlanner)
multiRobPlanner = prodOccRob.GetRscMultiRobotPathPlanner()

multiRobPlanner.AddInputRobotTask(inputTask1)
multiRobPlanner.AddInputRobotTask(inputTask2)
multiRobPlanner.AddInputRobotTask(inputTask3)

//Joint Motion Type
multiRobPlanner.SetPlanningMotionType(1)

//Run Optimizer
multiRobPlanner.ComputeMultiRobotSolution()

let listOptimalResultingTasks(List)
listOptimalResultingTasks = multiRobPlanner.CreateResultingRobotTasks()
//Run Optimizer
multiRobPlanner.ComputeMultiRobotSolution()

ExecuteMultiPathValidation

Performs validation of input robot tasks.

Signature

[out, int] ExecuteMultiPathValidation()

ReturnType

Integer

0 if succeeded

1 if failed

Example

let multiRobPlanner(RscMultiRobotPathPlanner)
multiRobPlanner = prodOccRob.GetRscMultiRobotPathPlanner()

multiRobPlanner.AddInputRobotTask(inputTask1)
multiRobPlanner.AddInputRobotTask(inputTask2)
multiRobPlanner.AddInputRobotTask(inputTask3)

//Joint Motion Type
multiRobPlanner.SetPlanningMotionType(1)

//Run Validation
let intResults(Integer)
intResults = multiRobPlanner.ExecuteMultiPathValidation()

GetCollisionAccuracyLevel

Returns multi-robot path planner’s collision accuracy level.

Signature

[out, int] GetCollisionAccuracyLevel()

ReturnType

Integer

Values:

  • Low
  • Medium
  • High

Example

let multiRobPlanner(RscMultiRobotPathPlanner)
multiRobPlanner = prodOccRob.GetRscMultiRobotPathPlanner()

multiRobPlanner.AddInputRobotTask(inputTask1)
multiRobPlanner.AddInputRobotTask(inputTask2)
multiRobPlanner.AddInputRobotTask(inputTask3)

//Joint Motion Type
multiRobPlanner.SetPlanningMotionType(1)

multiRobPlanner.ComputeMultiRobotSolution()

//Get Collision resolution
let intClashAcc(Integer)
intClashAcc = multiRobPlanner.GetCollisionAccuracyLevel()

GetInputMultiRobotTask

Returns robot task for a given robot index. Robot indices are assigned in the order in which they were added to the multi robot path planner.

Signature

out, DNBResouceTask] GetInputMultiRobotTask([in, int] TaskIndex)

Arguments

Name Input/Output Required? Type Comment
TaskIndex Input Yes Int Robot task index (1-based)

ReturnType

DNBResourceTask

0 if succeeded.

Example

let myMRAP(RscMultiRobotPathPlanner)
myMRAP = prodOccRobMRAP.GetRscMultiRobotPathPlanner()

let intCountTask(Integer)
intCountTask = 0

let inputTask(DNBResourceTask)
for inputTask inside listTasks
{
	intCountTask = intCountTask + 1

	myMRAP.AddInputRobotTask(inputTask)

	let inputTask2(DNBResourceTask)
	inputTask2 = myMRAP.GetInputMultiRobotTask(intCountTask)
	Notify('Latest task added : ' + inputTask2.Name)
}

GetPlanningMotionType

Returns motion type used by the multi-robot path planner.

Signature

[out, int] GetPlanningMotionType ()

ReturnType

Integer

joint motion type

linear motion type

Example

let multiRobPlanner(RscMultiRobotPathPlanner)
multiRobPlanner = prodOccRob.GetRscMultiRobotPathPlanner()

multiRobPlanner.AddInputRobotTask(inputTask1)
multiRobPlanner.AddInputRobotTask(inputTask2)
multiRobPlanner.AddInputRobotTask(inputTask3)

//Joint Motion Type
multiRobPlanner.SetPlanningMotionType(1)

multiRobPlanner.ComputeMultiRobotSolution()

//Get motion type
let intMotionType(Integer)

GetRscMultiRobotPathPlanner

Returns multi-robot path planner on a given product occurrence, which is used to compute optimized paths for a particular robot set.

Signature

[out, RscMultiRobotPathPlanner] GetRscMultiRobotPathPlanner ()

ReturnType

RscMultiRobotPathPlanner

Example

let multiRobPlanner(RscMultiRobotPathPlanner)
multiRobPlanner = prodOccRob.GetRscMultiRobotPathPlanner()

GetSamplingAccuracyLevel

Returns sampling accuracy level used by the multi-robot path planner.

Signature

[out, int] GetSamplingAccuracyLevel()

ReturnType

Integer

Values:

  • Low
  • Medium
  • High

Example

let multiRobPlanner(RscMultiRobotPathPlanner)
multiRobPlanner = prodOccRob.GetRscMultiRobotPathPlanner()

multiRobPlanner.AddInputRobotTask(inputTask1)
multiRobPlanner.AddInputRobotTask(inputTask2)
multiRobPlanner.AddInputRobotTask(inputTask3)

//Joint Motion Type
multiRobPlanner.SetPlanningMotionType(1)

multiRobPlanner.ComputeMultiRobotSolution()

//Get Sampling resolution
let intSamplingAcc(Integer)
intSamplingAcc = multiRobPlanner.GetSamplingAccuracyLevel()

SetCollisionAccuracyLevel

Sets sampling accuracy level to be used by the multi-robot path planner.

Signature

[out, int] SetCollisionAccuracyLevel([in, int] iAccuracyLevel )

Arguments

Name Input/Output Required? Type Comment
iAccuracyLevel Input Yes Int

ReturnType

Integer

0: Success

Example

let multiRobPlanner(RscMultiRobotPathPlanner)
multiRobPlanner = prodOccRob.GetRscMultiRobotPathPlanner()

multiRobPlanner.AddInputRobotTask(inputTask1)
multiRobPlanner.AddInputRobotTask(inputTask2)
multiRobPlanner.AddInputRobotTask(inputTask3)

//Joint Motion Type
multiRobPlanner.SetPlanningMotionType(1)

multiRobPlanner.ComputeMultiRobotSolution()

//Get Sampling resolution
let intSamplingAcc(Integer)
intSamplingAcc = multiRobPlanner.GetSamplingAccuracyLevel()

SetPlanningMotionType

Sets motion type to be used by the multi-robot path planner.

Signature

[out, int] SetPlanningMotionType ([in, int] iMotionType)

Arguments

Name Input/Output Required? Type Comment
iMotionType Input Yes Int
  1. Joint motion type
  2. Linear motion type

ReturnType

Integer

0: Success

Example

let multiRobPlanner(RscMultiRobotPathPlanner)
multiRobPlanner = prodOccRob.GetRscMultiRobotPathPlanner()

multiRobPlanner.AddInputRobotTask(inputTask1)
multiRobPlanner.AddInputRobotTask(inputTask2)

//Linear Motion Type
multiRobPlanner.SetPlanningMotionType(2)

SetSamplingAccuracyLevel

Sets sampling accuracy level to be used by the multi-robot path planner.

Signature

[out, int] SetSamplingAccuracyLevel([in, int] iAccuracyLevel)

Arguments

Name Input/Output Required? Type Comment
iAccuracyLevel Input yes Int
  1. Low
  2. Medium
  3. High

ReturnType

int

0: Success

Example

let multiRobPlanner(RscMultiRobotPathPlanner)
multiRobPlanner = prodOccRob.GetRscMultiRobotPathPlanner()

multiRobPlanner.AddInputRobotTask(inputTask1)
multiRobPlanner.AddInputRobotTask(inputTask2)

//Set collision accuracy to Low
multiRobPlanner.SetCollisionAccuracyLevel(1)