SET_BLENDING
The SET_BLENDING to make the moves of the robot arm smoother. Params: blending : float The blending factor to use when moving between keyframes. If not specified, the default value of 0.0 is used. ip_address : TextBlob The IP address of the robot arm. Returns: out : TextBlob The IP address of the robot arm.
Python Code
from flojoy import flojoy, TextBlob
from PYTHON.utils.mecademic_state.mecademic_state import query_for_handle
from PYTHON.utils.mecademic_state.mecademic_helpers import safe_robot_operation
@safe_robot_operation
@flojoy(deps={"mecademicpy": "1.4.0"})
def SET_BLENDING(ip_address: TextBlob, blending: float = 0.0) -> TextBlob:
"""
The SET_BLENDING to make the moves of the robot arm smoother.
Parameters
----------
blending: float
The blending factor to use when moving between keyframes. If not specified, the default value of 0.0 is used.
ip_address: TextBlob
The IP address of the robot arm.
Returns
-------
TextBlob
The IP address of the robot arm.
"""
robot = query_for_handle(ip_address)
# Set blending
robot.SetBlending(min(blending, 100.0))
return ip_address
Example
Having problems with this example app? Join our Discord community and we will help you out!
This node sets the blending (smoothing) of the moves of the robot arm.