AnyLogic
Expand
Font size
All Implemented Interfaces:
Serializable

@AnyLogicInternalAPI
public class RobotKinematic
extends Object
implements Serializable
This class is internal and shouldn't be called by user.
it may be removed/renamed in future.
Author:
AnyLogic North America, LLC https://anylogic.com
See Also:
Serialized Form

Constructor Summary

ConstructorDescription
RobotKinematic(double... linkLengths) 
RobotKinematic(RobotKinematic kinematic) 

Method Summary

Modifier and TypeMethodDescription
doublegetEndEffectorLength() 
double[]getRotations(int linkIndex)
Returns rotations of linkIndex link in absolute coordinates.
double[]getXYZ(int linkIndex)
Returns coordinates of linkIndex link in absolute coordinates.
voidsetEndEffectorLength(double length) 
voidsetToPoint(Point target, Point direction)
Sets end point of the kinematic to provided point with direction along the direction vector If provided target/direction is unreachable, kinematic will enter invalid state (isIncalid() will return true)

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

RobotKinematic

public RobotKinematic(double... linkLengths)

RobotKinematic

public RobotKinematic(RobotKinematic kinematic)

Method Details

getXYZ

public double[] getXYZ(int linkIndex)
Returns coordinates of linkIndex link in absolute coordinates. For linkIndex == 6 returns coordinates of the end effector For linkIndex == 7 returns coordinates of the end of the end effector (working point)
Parameters:
linkIndex - link index, within [0,7]
Returns:
coordinates of the link in absolute coordinates

getRotations

public double[] getRotations(int linkIndex)
Returns rotations of linkIndex link in absolute coordinates.
Parameters:
linkIndex - link index, within [0,5]
Returns:
rotations of the link in absolute coordinates

setToPoint

public void setToPoint(Point target,
 Point direction)
Sets end point of the kinematic to provided point with direction along the direction vector If provided target/direction is unreachable, kinematic will enter invalid state (isIncalid() will return true)
Parameters:
target - - relative end point target
direction - - relative end point direction - (dx, dy, dz)

setEndEffectorLength

public void setEndEffectorLength(double length)

getEndEffectorLength

public double getEndEffectorLength()