Skip to content

SET_JOINT_VEL

The SET_JOINT_VEL node sets the robot arm's angular velocity for its joints.Inputs ------ ip_address The IP address of the robot arm. Parameters ------ v : float The angular velocity to be set for each joint. Returns ------- ip_address The IP address of the robot arm.Params:Returns:
Python Code
from flojoy import flojoy, TextBlob
from typing import Optional
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:
    """
     The SET_JOINT_VEL node sets the robot arm's angular velocity for its joints.

     Inputs
     ------
     ip_address
         The IP address of the robot arm.

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

    Returns
     -------
     ip_address
         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 problem 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.