STEP

Given a specific x value, the Step function evaluates the y value of a function that smoothly transitions from (x0,y0) to (x1,y1) . This function has continuous first and second derivatives, but discontinuous third derivatives at the end points.

Format

Step(x,x0,y0,x1,y1)

Arguments

x
The independent variable. For example, to specify time as the independent variable, specify x as TIME.
x0
The x value at which the Step function begins.
y0
The value of the Step function desired at x0
x1
The x value at which the Step function ends.
y1
The value of the Step function desired at x1 .

Definition

step ={y0,  if xx0y0+Δy˜x2(32˜x), ifx0<x<x1y1,   if xx1where,Δy=(y1y0)and˜x=(xx0)(x1x0)

Example

<Motion_Joint
     id                  = "104003"
     type                = "EXPRESSION"
     val_type            = "D"
     expr                = "STEP(TIME,0,0,0.01,-50)"
     joint_id            = "104008"
     joint_type          = "T"
/>