Skip to content

SET_JOINT_VEL

Set the robot arm's angular velocity for its joints.Params:ip_address : TextBlobThe IP address of the robot arm.v : floatThe angular velocity to be set for each joint.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 SET_JOINT_VEL(ip_address: TextBlob, v: float) -> TextBlob:
    """
    Set the robot arm's angular velocity for its joints.

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

    v : float
        The angular velocity to be set for each joint.

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

    robot = query_for_handle(ip_address)
    robot.SetJointVel(v)
    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 SET_JOINT_VEL node sets the angular velocity for the joints of the robot arm.

The node takes in a single parameter, v, which is the angular velocity to be set for each joint of the robot arm.

After setting the velocity, the node doesn’t wait for any specific state, meaning it’s often used in conjunction with other movement nodes to control the speed of those movements.

The SET_JOINT_VEL node is useful in workflows where you need to control the speed of the robot arm’s joint movements, such as when performing tasks that require varying speeds for different joints.