Skip to main content

class RAVibration

Rocky PrePost Scripting wrapper representing a Vibration motion. Retrieve this specific wrapper after setting the correct motion type on a RAMotion. For example:
Methods:

GetAmplitudeVariation(unit: str | None = None)

Get the value of “Amplitude Variation”.
  • Parameters: unit – The unit for the returned value. If no unit is provided, the returned value will be in “m/s”.

GetDirection()

Get the value of “Direction”.

GetFrequencyVariation(unit: str | None = None)

Get the value of “Frequency Variation”.
  • Parameters: unit – The unit for the returned value. If no unit is provided, the returned value will be in “Hz/s”.

GetInitialAmplitude(unit: str | None = None)

Get the value of “Initial Amplitude”.
  • Parameters: unit – The unit for the returned value. If no unit is provided, the returned value will be in “m”.

GetInitialFrequency(unit: str | None = None)

Get the value of “Initial Frequency”.
  • Parameters: unit – The unit for the returned value. If no unit is provided, the returned value will be in “Hz”.

GetInitialPhase(unit: str | None = None)

Get the value of “Initial Phase”.
  • Parameters: unit – The unit for the returned value. If no unit is provided, the returned value will be in “rad”.

SetAmplitudeVariation(value: str | float, unit: str | None = None)

Set the value of “Amplitude Variation”.
  • Parameters:
    • value – The value to set. This value can be an expression with input variables or float type.
    • unit – The unit for value. If no unit is provided, value is assumed to be in “m/s”.

SetDirection(values: List[str | float])

Set the values of “Direction”.
  • Parameters: values – The values to set. The values can be heterogeneous, the element of values can be an expression with input variables or a float. Must have exactly 3 elements.
  • Raises: RockyApiError – If values doesn’t have exactly 3 elements.

SetFrequencyVariation(value: str | float, unit: str | None = None)

Set the value of “Frequency Variation”.
  • Parameters:
    • value – The value to set. This value can be an expression with input variables or float type.
    • unit – The unit for value. If no unit is provided, value is assumed to be in “Hz/s”.

SetInitialAmplitude(value: str | float, unit: str | None = None)

Set the value of “Initial Amplitude”.
  • Parameters:
    • value – The value to set. This value can be an expression with input variables or float type.
    • unit – The unit for value. If no unit is provided, value is assumed to be in “m”.

SetInitialFrequency(value: str | float, unit: str | None = None)

Set the value of “Initial Frequency”.
  • Parameters:
    • value – The value to set. This value can be an expression with input variables or float type.
    • unit – The unit for value. If no unit is provided, value is assumed to be in “Hz”.

SetInitialPhase(value: str | float, unit: str | None = None)

Set the value of “Initial Phase”.
  • Parameters:
    • value – The value to set. This value can be an expression with input variables or float type.
    • unit – The unit for value. If no unit is provided, value is assumed to be in “rad”.