Skip to content

HOME

Home the robot arm. This block is required to be run before any other robot arm movement. It is recommended to run this block immediately after "ACTIVATE".Params:ip_address : TextBlobThe IP address of the robot arm.Returns:ip_address : TextBlobThe IP address of the robot arm.
Python Code
from flojoy import TextBlob, flojoy
from PYTHON.utils.mecademic_state.mecademic_state import query_for_handle


@flojoy(deps={"mecademicpy": "1.4.0"})
def HOME(ip_address: TextBlob) -> TextBlob:
    """
    Home the robot arm. This block is required to be run before any other robot arm movement. It is recommended to run this block immediately after "ACTIVATE".

    Parameters
    ----------
    ip_address : TextBlob
        The IP address of the robot arm.

    Returns
    -------
    ip_address : TextBlob
        The IP address of the robot arm.
    """
    robot = query_for_handle(ip_address)
    robot.Home()
    robot.WaitHomed()
    return ip_address

Find this Flojoy Block on GitHub

Example

Having problems with this example app? Join our Discord community and we will help you out!
React Flow mini map

In this example, the HOME node homes the robot arm, setting it to its default position.

This node is essential to run before any other movement operations on the robot arm. It’s recommended to use this node immediately after the ACTIVATE node to ensure the robot arm is in a known state.

After the homing process, the node waits for confirmation that the robot arm has been successfully homed.