class RAPendulum
Rocky PrePost Scripting wrapper representing a Pendulum motion. Retrieve this specific wrapper after setting the correct motion type on aRAMotion. For
example:
GetAmplitudeVariation(unit: Optional[str] = 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 “rad/s”.
GetDirection()
Get the value of “Direction”.GetFrequencyVariation(unit: Optional[str] = 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: Optional[str] = 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 “rad”.
GetInitialFrequency(unit: Optional[str] = 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: Optional[str] = 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: Union[str, float], unit: Optional[str] = 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 “rad/s”.
SetDirection(values: List[Union[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: Union[str, float], unit: Optional[str] = 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: Union[str, float], unit: Optional[str] = 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 “rad”.
SetInitialFrequency(value: Union[str, float], unit: Optional[str] = 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: Union[str, float], unit: Optional[str] = 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”.