pycatia.dnb_igp_setup_interfaces.robot_motion¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.dnb_igp_setup_interfaces.robot_motion.RobotMotion(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectDMAPSInterfaces.ActivityRobotMotionRepresents a Robot Motion.Role: The interface is used to retrieve and set the motion attributes of aRobot Motion.The following code snippet can be used to obtain the Robot Motion from aOperation aggreagted under a Robot Task.Dim objOpr as Operation…Dim objRobotmotion as RobotMotionobjOpr.GetRobotMotion objRobotmotionThe Robot Motion can also be obtained from an activity of the typeRobotMotion.Dim objActivity as Activity…Dim objRobotmotion as RobotMotionSet objRobotmotion = objActivity.GetTechnologicalObject(“RobotMotion” )- get_accuracy_profile(o_accuracy_profile: AnyObject) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetAccuracyProfile(AnyObject oAccuracyProfile)Retrieves Accuracy profile.Parameters:oAccuracyProfileThe retrieved profile.Returns:An HRESULT.Legal values:S_OKThe Accuracy Profile was successfully set.E_FAILThe Accuracy Profile could not be set.Example:The following example retrieves the Accuracy Profile for the robotAccuracy.Dim objRobotMotion as RobotMotionDim AccuracyProfile As StringobjRobotMotion.GetAccuracyProfileAccuracyProfile
- Parameters:
o_accuracy_profile (AnyObject) –
- Return type:
None
- get_auxillary_axis_home(i_device: AnyObject, i_auxillary_axis: str, o_home_name: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetAuxillaryAxisHome(AnyObject iDevice,CATBSTR iAuxillaryAxis,CATBSTR oHomeName)Retrieves the underlying Auxillary device Home.Parameters:iDeviceThe Auxillary Device.iAuxillaryAxisName of the Auxillary Device.oHomeNameHome name retrieved for the given Auxillary device.Returns:An HRESULT.Legal values:S_OKThe auxillary device target was successfullyretrieved.E_FAILThe auxillary device target could not beretrieved.Example:The following example retrives the home name correspoding to thetarget of the auxillary device in a robot motion.Dim objRobotmotion as RobotMotionDim Device As Product…Dim DeviceName As StringDeviceName = “Mechanism.1”Dim HomeName As StringobjRobotmotion.GetAuxillaryAxisHome HomeName
- Parameters:
i_device (AnyObject) –
i_auxillary_axis (str) –
o_home_name (str) –
- Return type:
None
- get_auxillary_axis_values(i_device: AnyObject, i_auxillary_axis: str, o_auxillary_axis_values: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetAuxillaryAxisValues(AnyObject iDevice,CATBSTR iAuxillaryAxis,CATSafeArrayVariant oAuxillaryAxisValues)Retrieves the underlying Auxillary device Joint values.Parameters:iDeviceAuxillary device (Mechanism)iAuxillaryAxisName of the auxillary device.oAuxillaryAxisValuesList of Joint values retrieved for the given Auxillary device.Returns:An HRESULT.Legal values:S_OKThe auxillary device target was successfullyretrieved.E_FAILThe auxillary device target could not beretrieved.Example:The following example sets the joint values correspoding to thetarget of the auxillary device in a robot motion.Dim objRobotmotion as RobotMotionDim Device As Product…Dim DeviceName As StringDeviceName = “Mechanism.1”Dim JointTarget(1)objRobotmotion.GetAuxillaryAxisValuesDevice,DeviceName,JointTarget
- Parameters:
i_device (AnyObject) –
i_auxillary_axis (str) –
o_auxillary_axis_values (tuple) –
- Return type:
None
- get_cartesian_target(o_cartesian_target: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetCartesianTarget(CATSafeArrayVariantoCartesianTarget)Retrieves the Robot Cartesian target.Parameters:oCartesianTargetCartesian Target(The Variant array containing the values in thesequence X,Y,Z,Yaw,Pitch,Roll)Returns:An HRESULT.Legal values:S_OKThe cartesian target was successfully retrieved.E_FAILThe cartesian target could not be retrieved.Example:The following example gets the cartesian target for a robotmotion.Dim objRobotmotion as RobotMotionDim CartesianTarget(5)objRobotmotion.GetCartesianTargetCartesianTarget
- Parameters:
o_cartesian_target (tuple) –
- Return type:
None
- get_config(o_config_number: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetConfig(short oConfigNumber)Retreives the Configuration.Parameters:oConfigNumberThe Config as a Number.Returns:An HRESULT.Legal values:S_OKThe Configuration was successfully retreived.E_FAILThe Configuration could not be retreived.Example:The following example retreives the Configuration for the robotmotion.Dim objRobotmotion as RobotMotionDim ConfigobjRobotmotion.GetConfig Config
- Parameters:
o_config_number (int) –
- Return type:
None
- get_joint_target(o_joint_target: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetJointTarget(CATSafeArrayVariant oJointTarget)Retrieves the Robot Joint target.Parameters:oJointTargetThe List of Joint DOF values.Returns:An HRESULT.Legal values:S_OKThe joint target was successfully retrieved.E_FAILThe joint target could not be retrieved.Example:The following example retrieves the joint target of a robotmotion.Dim objRobotmotion as RobotMotionDim JointTarget(5)objRobotmotion.GetJointTarget JointTarget
- Parameters:
o_joint_target (tuple) –
- Return type:
None
- get_motion_profile(o_motion_profile: AnyObject) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetMotionProfile(AnyObject oMotionProfile)Retrieves Motion profile.Parameters:oMotionProfileThe retrieved profile.Returns:An HRESULT.Legal values:S_OKThe Motion Profile was successfully retrieved.E_FAILThe Motion Profile could not be retrieved.Example:The following example retrieves the Motion Profile for the robotmotion.Dim objRobotmotion as RobotMotionDim MotionProfile As StringobjRobotmotion.GetMotionProfile MotionProfile
- Parameters:
o_motion_profile (AnyObject) –
- Return type:
None
- get_motion_type(index: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetMotionType(short index)Retrieves the type of Motion.Parameters:indexThe Motion TypeJointMOVE = 0,LINEARMOVE = 1 ,PREDEFINED = 2,CIRCULAR = 3,CIRCULARVIA = 4,SLEW = 5Returns:An HRESULT.Legal values:S_OKThe motion type was successfully obtained from the robotmotion.E_FAILThe motion type could not be obtained.Example:The following example retrieves the motion type for a robotmotion.Dim objRobotmotion as RobotMotionDim MotionTypeobjRobotmotion.GetMotionType MotionType
- Parameters:
index (int) –
- Return type:
None
- get_object_profile(o_obj_profile: AnyObject) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetObjectProfile(AnyObject oObjProfile)Retrieves Object profile.Parameters:oObjProfileThe retrieved profile.Returns:An HRESULT.Legal values:S_OKThe object Profile was successfully retrieved.E_FAILThe object Profile could not be retrieved.Example:The following example retrieves the object Profile for the robotmotion.Dim objrobotmotion as robotmotionDim objectProfile As Stringobjrobotmotion.GetobjectProfile objectProfile
- Parameters:
o_obj_profile (AnyObject) –
- Return type:
None
- get_orientation_mode(index: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetOrientationMode(short index)Retrieves the TCP Orientation Mode.Parameters:indexOrientation Mode (OneAxis = 0, TwoAxis = 1, ThreeAxis = 2, WristAxis = 3)Returns:An HRESULT.Legal values:S_OKThe Orientation Mode was successfully retrieved.E_FAILThe Orientation Mode could not be retrieved.Example:The following example sets the orientation mode for the robotmotion.Dim objRobotmotion as RobotMotionDim OrientationModeobjRobotmotion.GetOrientationModeOrientationMode
- Parameters:
index (int) –
- Return type:
None
- get_tag_target(o_tag: Tag) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetTagTarget(Tag oTag)Retrieves the underlying Tag Target.Parameters:oTagThe underlying Tag.Returns:An HRESULT.Legal values:S_OKThe tag target was successfully retrieved.E_FAILThe tag target could not be retrieved.Example:The following example retrives the tag target for a robotmotion.Dim objRobotmotion as RobotMotionDim objTag as TagobjRobotmotion.GetTagTarget objTag
- Parameters:
o_tag (Tag) –
- Return type:
None
- get_target_type(index: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetTargetType(short index)Retrieves the Target Type.Parameters:indexType of the Target (Cartesian = 0, Joint = 1, Tag = 2, Home = 3).Returns:An HRESULT.Legal values:S_OKThe target type was successfully obtained from the robotmotion.E_FAILThe target type could not be obtained.Example:The following example retrieves the target type for a robotmotion.Dim objRobotmotion as RobotMotionDim TargetTypeobjRobotmotion.GetTargetType TargetType
- Parameters:
index (int) –
- Return type:
None
- get_tool_profile(o_tool_profile: AnyObject) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetToolProfile(AnyObject oToolProfile)Retrieves tool profile.Parameters:oToolProfileThe retrieved tool profile.Returns:An HRESULT.Legal values:S_OKThe Tool Profile was successfully retrieved.E_FAILThe Tool Profile could not be retrieved.Example:The following example retrieves the Tool Profile for the robotmotion.Dim objRobotmotion as RobotMotionDim ToolProfile As StringobjRobotmotion.GetToolProfile ToolProfile
- Parameters:
o_tool_profile (AnyObject) –
- Return type:
None
- get_turn_numbers(o_turn_numbers: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetTurnNumbers(CATSafeArrayVariant oTurnNumbers)Retrieves the Turn Numbers(or Turn signs) of the robotmotion.Parameters:oTurnNumbersThe underlying List of TurnNumbers (or turn signs).Returns:An HRESULT.Legal values:S_OKThe turn numbers were successfully obtained.E_FAILThe turn numbers could not be obtained.Example:The following example retrives the turn numbers for a robotmotion.Dim objRobotmotion as RobotMotionDim TurnNumbers(4)objRobotmotion.GetTurnNumbers TurnNumbers
- Parameters:
o_turn_numbers (tuple) –
- Return type:
None
- set_accuracy_profile(i_accuracy_profile: AnyObject) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetAccuracyProfile(AnyObject iAccuracyProfile)Sets the Accuracy profile.Parameters:iAccuracyProfileThe Accuracy profile.Returns:An HRESULT.Legal values:S_OKThe Accuracy Profile was successfully set.E_FAILThe Accuracy Profile could not be set.Example:The following example retrieves the Accuracy Profile for the robotAccuracy.Dim objRobotMotion as RobotMotionobjRobotMotion.SetAccuracyProfile “Default”
- Parameters:
i_accuracy_profile (AnyObject) –
- Return type:
None
- set_auxillary_axis_home(i_device: AnyObject, i_auxillary_axis: str, i_home_name: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetAuxillaryAxisHome(AnyObject iDevice,CATBSTR iAuxillaryAxis,CATBSTR iHomeName)Sets the underlying Auxillary device Home.Parameters:iDeviceThe Auxillary Device.iAuxillaryAxisName of the Auxillary Device.iHomeNameHome name set for the given Auxillary device.Returns:An HRESULT.Legal values:S_OKThe auxillary device target was successfully set.E_FAILThe auxillary device target could not be set.Example:The following example sets the home name correspoding to the targetof the auxillary device in a robot motion.Dim objRobotmotion as RobotMotionDim Device As Product…Dim DeviceName As StringDeviceName = “Mechanism.1”Dim HomeName As StringHomeName = “Home.1”objRobotmotion.SetAuxillaryAxisHome HomeName
- Parameters:
i_device (AnyObject) –
i_auxillary_axis (str) –
i_home_name (str) –
- Return type:
None
- set_auxillary_axis_values(i_device: AnyObject, i_auxillary_axis: str, i_auxillary_axis_values: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetAuxillaryAxisValues(AnyObject iDevice,CATBSTR iAuxillaryAxis,CATSafeArrayVariant iAuxillaryAxisValues)Sets the Auxillary device Joint values.Parameters:iDeviceAuxillary device (Mechanism)iAuxillaryAxisName of the Auxillary Device.iAuxillaryAxisValuesList of joint values of the device.Returns:An HRESULT.Legal values:S_OKThe auxillary device target was successfully set.E_FAILThe auxillary device target could not be set.Example:The following example sets the joint values correspoding to thetarget of the auxillary device in a robot motion.Dim objRobotmotion as RobotMotionDim Device As Product…Dim DeviceName As StringDeviceName = “Mechanism.1”Dim JointTarget(1)JointTarget(0)=1.571JointTarget(1)=-0.785objRobotmotion.SetAuxillaryAxisValuesDevice,DeviceName,JointTarget
- Parameters:
i_device (AnyObject) –
i_auxillary_axis (str) –
i_auxillary_axis_values (tuple) –
- Return type:
None
- set_cartesian_target(i_cartesian_target: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetCartesianTarget(CATSafeArrayVariantiCartesianTarget)Sets the Robot Cartesian target.Parameters:iCartesianTargetCartesian Target(The Variant array should contain the values in thesequence X,Y,Z,Yaw,Pitch,Roll)Returns:An HRESULT.Legal values:S_OKThe cartesian target was successfully set.E_FAILThe cartesian target could not be set.Example:The following example Sets the cartesian target for a robotmotion.Dim objRobotmotion as RobotMotionDim CartesianTarget(5)CartesianTarget(0)=150CartesianTarget(1)=200CartesianTarget(2)=350CartesianTarget(3)=1.571CartesianTarget(4)=3.142CartesianTarget(5)=-0.785objRobotmotion.SetCartesianTargetCartesianTarget
- Parameters:
i_cartesian_target (tuple) –
- Return type:
None
- set_config(i_config_number: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetConfig(short iConfigNumber)Sets the Configuration for the robot motion.Parameters:iConfigNumberThe Config as a Number.Returns:An HRESULT.Legal values:S_OKThe Configuration was successfully set.E_FAILThe Configuration could not be set.Example:The following example sets the configuration for the robotmotion.Dim objRobotmotion as RobotMotionobjRobotmotion.SetConfig 1
- Parameters:
i_config_number (int) –
- Return type:
None
- set_joint_target(i_joint_target: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetJointTarget(CATSafeArrayVariant iJointTarget)Sets the Robot Joint target.Parameters:iJointTargetThe List of Joint DOF values.Returns:An HRESULT.Legal values:S_OKThe joint target was successfully set.E_FAILThe joint target could not be set.Example:The following example sets the joint target for a robotmotion.Dim objRobotmotion as RobotMotionDim JointTarget(5)JointTarget(0)=1.571JointTarget(1)=-0.785JointTarget(2)=3.142JointTarget(3)=0.38JointTarget(4)=1.57JointTarget(5)=0.6objRobotmotion.SetJointTarget JointTarget
- Parameters:
i_joint_target (tuple) –
- Return type:
None
- set_motion_profile(i_motion_profile: AnyObject) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetMotionProfile(AnyObject iMotionProfile)Sets the Motion profile.Parameters:iMotionProfileThe Motion profile.Returns:An HRESULT.Legal values:S_OKThe Motion Profile was successfully set.E_FAILThe Motion Profile could not be set.Example:The following example retrieves the Motion Profile for the robotmotion.Dim objRobotmotion as RobotMotionobjRobotmotion.SetMotionProfile “Default”
- Parameters:
i_motion_profile (AnyObject) –
- Return type:
None
- set_motion_type(index: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetMotionType(short index)Sets the type of Motion.Parameters:indexThe Motion TypeJointMOVE = 0,LINEARMOVE = 1 ,PREDEFINED = 2,CIRCULAR = 3,CIRCULARVIA = 4, SLEW = 5Returns:An HRESULT.Legal values:S_OKThe motion type was successfully set to the robotmotion.E_FAILThe motion type could not be set.Example:The following example Sets the motion type for a robotmotion.Dim objRobotmotion as RobotMotionobjRobotmotion.SetMotionType 1
- Parameters:
index (int) –
- Return type:
None
- set_object_profile(i_obj_profile: AnyObject) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetObjectProfile(AnyObject iObjProfile)Sets the Object profile.Parameters:iObjProfileThe Object profile.Returns:An HRESULT.Legal values:S_OKThe Object Profile was successfully set.E_FAILThe Object Profile could not be set.Example:The following example retrieves the Object Profile for the robotObject.Dim objRobotMotion as RobotMotionDim ObjectProfile As StringobjRobotMotion.SetObjectProfile “Default”
- Parameters:
i_obj_profile (AnyObject) –
- Return type:
None
- set_orientation_mode(index: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetOrientationMode(short index)Sets the TCP Orientation Mode.Parameters:indexOrientation Mode (OneAxis = 0, TwoAxis = 1, ThreeAxis = 2, WristAxis = 3)Returns:An HRESULT.Legal values:S_OKThe Orientation Mode was successfully set.E_FAILThe Orientation Mode could not be set.Example:The following example sets the orientation mode for the robotmotion.Dim objRobotmotion as RobotMotionobjRobotmotion.SetOrientationMode 1
- Parameters:
index (int) –
- Return type:
None
- set_tag_target(i_tag: Tag) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetTagTarget(Tag iTag)Sets the Robot Tag target.Parameters:iTagThe Tag to Set as the target.Returns:An HRESULT.Legal values:S_OKThe tag target was successfully set.E_FAILThe tag target could not be set.Example:The following example sets the tag target for a robotmotion.Dim objRobotmotion as RobotMotionDim objTag as Tag…objRobotmotion.SetTagTarget objTag
- Parameters:
i_tag (Tag) –
- Return type:
None
- set_tool_profile(i_tool_profile: AnyObject) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetToolProfile(AnyObject iToolProfile)Sets the Tool profile.Parameters:iToolProfileThe Tool profile.Returns:An HRESULT.Legal values:S_OKThe Tool Profile was successfully set.E_FAILThe Tool Profile could not be set.Example:The following example retrieves the Tool Profile for the robotmotion.Dim objRobotmotion as RobotMotionobjRobotmotion.SetToolProfile “Default”
- Parameters:
i_tool_profile (AnyObject) –
- Return type:
None
- set_turn_numbers(i_turn_numbers: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetTurnNumbers(CATSafeArrayVariant iTurnNumbers)Sets Turn Numbers or Turn signs for the robot motion.Parameters:iTurnNumbersThe List of Turn numbers (or turn signs) to be set.Returns:An HRESULT.Legal values:S_OKThe turn numbers were successfully set.E_FAILThe turn numbers could not be set.Example:The following example sets the turn numbers for a robotmotion.Dim objRobotmotion as RobotMotionDim TurnNumbers(4)TurnNumbers(0)=1TurnNumbers(1)=-1TurnNumbers(2)=0TurnNumbers(3)=2objRobotmotion.SetTurnNumbers TurnNumbers
- Parameters:
i_turn_numbers (tuple) –
- Return type:
None