Click or drag to resize
RsJointTarget Class
A RsJointTarget corresponds to a jointtarget declaration in RAPID. It defines each individual axis position, for both the robot and the external axes. Jointtargets are used to define the positions that the robot and the external axes will move to with the instruction MoveAbsJ.
Inheritance Hierarchy

Namespace:  ABB.Robotics.RobotStudio.Stations
Assembly:  ABB.Robotics.RobotStudio.Stations (in ABB.Robotics.RobotStudio.Stations.dll) Version: 7.0.8747.636
Syntax
C#
public sealed class RsJointTarget : RsDataDeclaration

The RsJointTarget type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleRsJointTarget
Creates and initializes a new RsJointTarget object.
Top
Properties
  NameDescription
Public propertyAttributes
Returns a collection of dynamic attributes attached to the object
(Inherited from ProjectObject.)
Public propertyChildren
Enumerates all child objects.
(Inherited from ProjectObject.)
Public propertyContainingProject
Returns the Project that this object is a part of, or null if it is not part of a Project.
(Inherited from ProjectObject.)
Public propertyCode exampleDataType
Gets the RAPID data type of the Data Declaration.
(Inherited from RsDataDeclaration.)
Public propertyDisplayName (Inherited from RsDataDeclaration.)
Public propertyCode exampleFrameSize
Gets or set the size of the graphical representation of the RsToolData.
Public propertyCode exampleIsInline
Gets or sets whether the RsJointTarget will be decalared inline in the RAPID when syncronized.
Public propertyLocal
Gets or sets if the DataDeclaration is declared local in a module. (Corresponds to the LOCAL keyword in RAPID).
(Inherited from RsDataDeclaration.)
Public propertyModuleName
Gets or sets the name of the RAPID module that the DataDeclaration will be synchronized to.
(Inherited from RsDataDeclaration.)
Public propertyName
Gets or sets the name of the object
(Overrides RsDataDeclarationName.)
Public propertyParent
Returns the objects parent, if it has one.
(Inherited from ProjectObject.)
Public propertyCode exampleShowName
Gets or sets a value indicating whether the name of the JointTarge will be displayed in the graphics.
Public propertyStorageType
Gets or sets the RapidStorageType of the DataDeclaration
(Inherited from RsDataDeclaration.)
Public propertySynchronize
Gets or sets whether the DataDeclaration should be synchronized to the VC when the referencing RsPathProcedure is.
(Inherited from RsDataDeclaration.)
Public propertyTypeDisplayName
Gets a localized name for the type of this object.
(Inherited from ProjectObject.)
Public propertyUIVisible
Gets or sets a value that indicates if this object should be displayed in GUI such as an object browser.
(Inherited from ProjectObject.)
Public propertyUniqueId
Gets a persisted, globally unique identifier for this object, that can be used to find the object using the GetObjectFromUniqueId(String) method.
(Inherited from ProjectObject.)
Public propertyCode exampleVisible
Geta or sets a value specifying whether the joint target should be visible in the graphics or not.
Top
Methods
  NameDescription
Public methodCopy
Creates a copy of the DataDeclaration.
(Inherited from RsDataDeclaration.)
Public methodEquals (Inherited from Object.)
Public methodFindObjects
Recursively finds object that satisfy a condition.
(Inherited from ProjectObject.)
Public methodGetExternalAxes
Gets the ExternalAxisValues of the jointtarget.
Public methodGetHashCode (Inherited from Object.)
Public methodGetJointValues
Public methodGetReferencingInstructions
Returns all RsInstructions that are referencing this DataDeclaration.
(Inherited from RsDataDeclaration.)
Public methodCode exampleGetRobotAxes
Gets the RobotAxisValues of the jointtarget.
Public methodGetType (Inherited from Object.)
Public methodHighlight
Sets the highlight color of the target to the default highlight color.
Public methodHighlight(Color)
Sets the highlight color of the target.
Public methodCode exampleJumpTo
Jumps the mechanism of the task that the jointtraget belongs to, to the position of the jointtarget.
Public methodCode exampleJumpTo(Boolean)
Jumps the mechanism of the task that the jointtraget belongs to, to the position of the jointtarget. Optionally updates the joint values in the virtual controller. Updating the joint values in the controller is time consuning compared to only updating the Mechanism joint value. If you need to frequently call this method, it is recomended to update the joint values in the controller, only for the last call.
Public methodJumpToAsync
Public methodResetHighlight
Resets the highlight color of the target to the default color.
Public methodSetExternalAxes
Sets the ExternalAxisValues of the jointtarget.
Public methodCode exampleSetRobotAxes(RobotAxisValues, Boolean)
Sets the RobotAxisValues of the jointtarget.
Public methodSetRobotAxes(RobotAxisValues, Mechanism, Boolean)
Sets the RobotAxisValues of the jointtarget to the current values of the specified Mechanism.
Public methodToString (Inherited from ProjectObject.)
Top
Examples
RsJointTarget Example.
RsJointTarget Example
Project.UndoContext.BeginUndoStep("RsJointTargetExample");
try
{
    Station station = Station.ActiveStation;

    // Create a joint target corresponding to the robots home position.
    RsJointTarget myHomeJointTarget = new RsJointTarget();

    // Get a valid RAPID name for the target and assign it.
    myHomeJointTarget.Name = station.ActiveTask.GetValidRapidName("JointTarget", "_", 1);

    // Add the JointTarget to the station.
    station.ActiveTask.DataDeclarations.Add(myHomeJointTarget);

    // Create the RobAxisValues for the target.
    RobotAxisValues rbHomeAxis = new RobotAxisValues();
    rbHomeAxis.Rax_1 = 0;
    rbHomeAxis.Rax_2 = 0;
    rbHomeAxis.Rax_3 = 0;
    rbHomeAxis.Rax_4 = 0;
    rbHomeAxis.Rax_5 = 30;
    rbHomeAxis.Rax_6 = 0;

    // Set the robot axis values of the target.
    myHomeJointTarget.SetRobotAxes(rbHomeAxis, false);

    // Set the target to visible in the graphics.
    myHomeJointTarget.Visible = true;

    // Show the name of the target in the graphics.
    myHomeJointTarget.ShowName = true;

    // Make the frame size twice as big for the target.
    myHomeJointTarget.FrameSize = myHomeJointTarget.FrameSize * 2;
}
catch
{
    Project.UndoContext.CancelUndoStep(CancelUndoStepType.Rollback);
    throw;
}
finally
{
    Project.UndoContext.EndUndoStep();
}
Version Information

Supported in: 1.0.0.0
See Also