33
44function ptpJointSpace (ref:: ModelActions{F,TimeType} , positions:: Union{Matrix{Float64}, Vector{Float64}, Float64} , iargs... ; kwargs... ) where {F <: Modia3D.VarFloatType , TimeType <: AbstractFloat }
55 checkErrorPtpJointSpace (iargs, kwargs)
6- push! (ref. refMotion, ArbitraryMotion (ptpJointSpace!, positions, nothing , nothing ))
6+ push! (ref. refMotion, ArbitraryMotion (ptpJointSpace!, positions, nothing , nothing , nothing ))
77 return nothing
88end
99ptpJointSpace (;referencePath, positions) =
@@ -39,7 +39,7 @@ function executeActions(modelActions::ModelActions{F,TimeType}) where {F <: Modi
3939 # Execute next command in referenceMotion
4040 if ! isempty (modelActions. refMotion)
4141 item = popfirst! (modelActions. refMotion)
42- item. func (modelActions, item. inputArg1, item. inputArg2, item. inputArg3)
42+ item. func (modelActions, item. inputArg1, item. inputArg2, item. inputArg3, item . inputArg4 )
4343 end ; end ; end
4444
4545 # only if a ptp path is defined getPosition! can be executed
5757# ## ------------------------- ActionWait ------------------------------
5858function ActionWait (ref:: ModelActions{F,TimeType} , waitingPeriod:: Float64 = 0.0 , iargs... ; kwargs... ):: Nothing where {F <: Modia3D.VarFloatType , TimeType <: AbstractFloat }
5959 checkErrorExplicitRobotFunc (" ActionWait" , " waitingPeriod" , iargs, kwargs, refPathExists= true )
60- push! (ref. refMotion, ArbitraryMotion (ActionWait!, waitingPeriod, nothing , nothing ))
60+ push! (ref. refMotion, ArbitraryMotion (ActionWait!, waitingPeriod, nothing , nothing , nothing ))
6161 return nothing
6262end
6363ActionWait (iargs... ; kwargs... ):: Nothing =
6464 checkErrorExplicitRobotFunc (" ActionWait" , " waitingPeriod" , iargs, kwargs, refPathExists= false )
6565
6666
6767# ## --------------------- ActionReleaseAndAttach -------------------------
68- function ActionReleaseAndAttach (ref:: ModelActions{F,TimeType} , movablePart:: String = " " , robotOrDepot:: String = " " , iargs... ; waitingPeriod:: Float64 = 0.0 , kwargs... ):: Nothing where {F <: Modia3D.VarFloatType , TimeType <: AbstractFloat }
68+ function ActionReleaseAndAttach (ref:: ModelActions{F,TimeType} , movablePart:: String = " " , robotOrDepot:: String = " " , iargs... ; waitingPeriod:: Float64 = 0.0 , enableContactDetection :: Bool = true , kwargs... ):: Nothing where {F <: Modia3D.VarFloatType , TimeType <: AbstractFloat }
6969 checkErrorExplicitRobotFunc (" ActionReleaseAndAttach" , " robotOrDepot, movablePart, and waitingPeriod" , iargs, kwargs, refPathExists= true )
70- push! (ref. refMotion, ArbitraryMotion (ActionReleaseAndAttach!, robotOrDepot, movablePart, waitingPeriod))
70+ push! (ref. refMotion, ArbitraryMotion (ActionReleaseAndAttach!, robotOrDepot, movablePart, waitingPeriod, enableContactDetection ))
7171 return nothing
7272end
7373ActionReleaseAndAttach (iargs... ; kwargs... ):: Nothing =
7474 checkErrorExplicitRobotFunc (" ActionReleaseAndAttach" , " robotOrDepot, movablePart, and waitingPeriod" , iargs, kwargs, refPathExists= false )
7575
7676function EventAfterPeriod (ref:: ModelActions{F,TimeType} , waitingPeriod:: Float64 = 0.0 , iargs... ; kwargs... ):: Nothing where {F <: Modia3D.VarFloatType , TimeType <: AbstractFloat }
7777 checkErrorExplicitRobotFunc (" EventAfterPeriod" , " waitingPeriod" , iargs, kwargs, refPathExists= true )
78- push! (ref. refMotion, ArbitraryMotion (robotEventAfterPeriod!, waitingPeriod, nothing , nothing ))
78+ push! (ref. refMotion, ArbitraryMotion (robotEventAfterPeriod!, waitingPeriod, nothing , nothing , nothing ))
7979 return nothing
8080end
8181EventAfterPeriod (iargs... ; kwargs... ):: Nothing =
8282 checkErrorExplicitRobotFunc (" EventAfterPeriod" , " waitingPeriod" , iargs, kwargs, refPathExists= false )
8383
8484
8585# ## --------------------- ActionAttach ------------------------------------
86- function ActionAttach (ref:: ModelActions{F,TimeType} , movablePart:: String = " " , robotOrDepot:: String = " " , iargs... ; waitingPeriod:: Float64 = 0.0 , kwargs... ):: Nothing where {F <: Modia3D.VarFloatType , TimeType <: AbstractFloat }
86+ function ActionAttach (ref:: ModelActions{F,TimeType} , movablePart:: String = " " , robotOrDepot:: String = " " , iargs... ; waitingPeriod:: Float64 = 0.0 , enableContactDetection :: Bool = true , kwargs... ):: Nothing where {F <: Modia3D.VarFloatType , TimeType <: AbstractFloat }
8787 checkErrorExplicitRobotFunc (" ActionAttach" , " robotOrDepot, movablePart, and waitingPeriod" , iargs, kwargs, refPathExists= true )
88- push! (ref. refMotion, ArbitraryMotion (ActionAttach!, robotOrDepot, movablePart, waitingPeriod))
88+ push! (ref. refMotion, ArbitraryMotion (ActionAttach!, robotOrDepot, movablePart, waitingPeriod, enableContactDetection ))
8989 return nothing
9090end
9191ActionAttach (iargs... ; kwargs... ):: Nothing =
9292 checkErrorExplicitRobotFunc (" ActionAttach" , " robotOrDepot, movablePart, and waitingPeriod" , iargs, kwargs, refPathExists= false )
9393
9494
9595# ## --------------------- ActionRelease -----------------------------------
96- function ActionRelease (ref:: ModelActions{F,TimeType} , movablePart:: String = " " , robotOrDepot:: String = " " , iargs... ; waitingPeriod:: Float64 = 0.0 , kwargs... ):: Nothing where {F <: Modia3D.VarFloatType , TimeType <: AbstractFloat }
96+ function ActionRelease (ref:: ModelActions{F,TimeType} , movablePart:: String = " " , robotOrDepot:: String = " " , iargs... ; waitingPeriod:: Float64 = 0.0 , enableContactDetection :: Bool = true , kwargs... ):: Nothing where {F <: Modia3D.VarFloatType , TimeType <: AbstractFloat }
9797 checkErrorExplicitRobotFunc (" ActionRelease" , " robotOrDepot, movablePart, and waitingPeriod" , iargs, kwargs, refPathExists= true )
98- push! (ref. refMotion, ArbitraryMotion (ActionRelease!, movablePart, waitingPeriod, nothing ))
98+ push! (ref. refMotion, ArbitraryMotion (ActionRelease!, movablePart, waitingPeriod, enableContactDetection, nothing ))
9999 return nothing
100100end
101101ActionRelease (iargs... ; kwargs... ):: Nothing =
@@ -106,7 +106,7 @@ ActionRelease(iargs...; kwargs...)::Nothing =
106106# ## --------------------- ActionRelease -----------------------------------
107107function ActionDelete (ref:: ModelActions{F,TimeType} , movablePart:: String = " " , robotOrDepot:: String = " " , iargs... ; waitingPeriod:: Float64 = 0.0 , kwargs... ):: Nothing where {F <: Modia3D.VarFloatType , TimeType <: AbstractFloat }
108108 checkErrorExplicitRobotFunc (" ActionDelete" , " robotOrDepot, movablePart, and waitingPeriod" , iargs, kwargs, refPathExists= true )
109- push! (ref. refMotion, ArbitraryMotion (ActionDelete!, movablePart, waitingPeriod, nothing ))
109+ push! (ref. refMotion, ArbitraryMotion (ActionDelete!, movablePart, waitingPeriod, nothing , nothing ))
110110 return nothing
111111end
112112ActionDelete (iargs... ; kwargs... ):: Nothing =
0 commit comments