|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.yobotics.simulationconstructionset.Link
public class Link
Title: Yobotics! Simulation Construction Set
Description: Package for Simulating Dynamic Robots and Mechanisms
Copyright: Copyright (c) Yobotics, Inc. 2000-2005
| Field Summary | |
|---|---|
static int |
X
Integer representation of the x axis |
static int |
Y
Integer representation of the y axis |
static int |
Z
Integer representation of the z axis |
| Constructor Summary | |
|---|---|
Link(LinkDefinitionFixedFrame linkDefinition)
|
|
Link(java.lang.String lname)
Basic constructor, creates a new link with the specified name. |
|
| Method Summary | |
|---|---|
void |
add3DSFile(java.lang.String fileName)
Deprecated. Replaced by add3DSFile |
void |
add3DSFile(java.lang.String fileName,
javax.media.j3d.Appearance app)
Deprecated. Replaced by add3DSFile |
void |
add3DSFile(java.net.URL fileURL)
Deprecated. Replaced by add3DSFile |
void |
add3DSFile(java.net.URL fileURL,
javax.media.j3d.Appearance app)
Deprecated. Replaced by add3DSFile |
void |
addArcTorus(double startAngle,
double endAngle,
double majorRadius,
double minorRadius)
Deprecated. Replaced by addArcTorus |
void |
addArcTorus(double startAngle,
double endAngle,
double majorRadius,
double minorRadius,
javax.media.j3d.Appearance arcTorusApp)
Deprecated. Replaced by addArcTorus |
void |
addBranchGroup(javax.media.j3d.BranchGroup branchGroup)
Deprecated. Replaced by addBranchGroup |
void |
addCone(double height,
double radius)
Deprecated. Replaced by addCone |
void |
addCone(double height,
double radius,
javax.media.j3d.Appearance coneApp)
Deprecated. Replaced by addCone |
void |
addCoordinateSystem(double length)
Deprecated. Replaced by addCoordinateSystem |
void |
addCoordinateSystemToCOM(double length)
Adds a coordinate system representation at the center of mass of this link. |
void |
addCube(double lx,
double ly,
double lz)
Deprecated. Replaced by addCube |
void |
addCube(double lx,
double ly,
double lz,
javax.media.j3d.Appearance cubeApp)
Deprecated. Replaced by addCube |
void |
addCylinder(double height,
double radius)
Deprecated. Replaced by addCylinder |
void |
addCylinder(double height,
double radius,
javax.media.j3d.Appearance cylApp)
Deprecated. Replaced by addCylinder |
void |
addEllipsoid(double xRad,
double yRad,
double zRad)
Deprecated. Replaced by addEllipsoid |
void |
addEllipsoid(double xRad,
double yRad,
double zRad,
javax.media.j3d.Appearance ellipsoidApp)
Deprecated. Replaced by addEllipsoid |
void |
addEllipsoidFromMassProperties()
Adds an ellipsoid representing the mass and inertia of the link at its center of mass. |
void |
addEllipsoidFromMassProperties(javax.media.j3d.Appearance appearance)
Adds an ellipsoid representing the mass and inertia of the link at its center of mass with the specified appearance. |
void |
addGenTruncatedCone(double height,
double bx,
double by,
double tx,
double ty)
Deprecated. Replaced by addGenTruncatedCone |
void |
addGenTruncatedCone(double height,
double bx,
double by,
double tx,
double ty,
javax.media.j3d.Appearance coneApp)
Deprecated. Replaced by addGenTruncatedCone |
void |
addGroup(javax.media.j3d.Group group)
Deprecated. Replaced by addGroup |
void |
addHemiEllipsoid(double xRad,
double yRad,
double zRad)
Deprecated. Replaced by addHemiEllipsoid |
void |
addHemiEllipsoid(double xRad,
double yRad,
double zRad,
javax.media.j3d.Appearance hEApp)
Deprecated. Replaced by addHemiEllipsoid |
void |
addPyramidCube(double lx,
double ly,
double lz,
double lh)
Deprecated. Replaced by addPyramidCube |
void |
addPyramidCube(double lx,
double ly,
double lz,
double lh,
javax.media.j3d.Appearance cubeApp)
Deprecated. Replaced by addPyramidCube |
void |
addShape(javax.media.j3d.Geometry geometry,
javax.media.j3d.Appearance appearance)
Deprecated. Replaced by addShape |
void |
addShape(javax.media.j3d.Shape3D shape)
Deprecated. Replaced by addShape |
void |
addSphere(double radius)
Deprecated. Replaced by addSphere |
void |
addSphere(double radius,
javax.media.j3d.Appearance sphereApp)
Deprecated. Replaced by addSphere |
void |
addToCollisionGroup(CollisionGroup collisionGroup)
Adds this Link to a CollisionGroup to enable collision detection inside that group or amoung groups. |
void |
addToCollisionGroups(CollisionGroup[] collisionGroups)
Adds this Link to all the CollisionGroups listed to enable collision detection inside that group or amoung groups. |
void |
addVRMLFile(java.lang.String fileName)
Deprecated. Replaced by addVRMLFile |
void |
addVRMLFile(java.lang.String fileName,
javax.media.j3d.Appearance app)
Deprecated. Replaced by addVRMLFile |
void |
addVRMLFile(java.net.URL fileURL)
Deprecated. Replaced by addVRMLFile |
void |
addVRMLFile(java.net.URL fileURL,
javax.media.j3d.Appearance app)
Deprecated. Replaced by addVRMLFile |
void |
addWedge(double lx,
double ly,
double lz)
Deprecated. Replaced by addWedge |
void |
addWedge(double lx,
double ly,
double lz,
javax.media.j3d.Appearance wedgeApp)
Deprecated. Replaced by addWedge |
void |
combineLinks(Link link)
Combines the specified link with this link. |
void |
enableCollisions(double maxVelocity,
vclip.PolyTree polyTree,
Robot rob)
Enables collisions for this link. |
void |
getComOffset(javax.vecmath.Vector3d comOffsetRet)
Stores a vector3d representation of the offset from the links center of mass in the provided variable. |
LinkGraphics |
getLinkGraphics()
Retrieves the LinkGraphics object representing this link. |
double |
getMass()
Retrieves the mass of this joint. |
void |
getMomentOfInertia(javax.vecmath.Matrix3d momentOfInertia)
Retrieves the moment of inertia for this link. |
java.lang.String |
getName()
Retrieves this link's name. |
javax.media.j3d.SharedGroup |
getSharedGroup()
Deprecated. Replaced by getSharedGroup |
void |
identity()
Deprecated. Replaced by ( identity |
void |
rotate(double rotAng,
int rotAxis)
Deprecated. Replaced by rotate |
void |
rotate(double rotAng,
javax.vecmath.Vector3d rotAxis)
Deprecated. LinkGraphics#rotate(double, Vector3d |
void |
rotate(javax.vecmath.Matrix3d rot)
Deprecated. Replaced by rotate |
void |
scale(double scaleFactor)
Deprecated. Replaced by scale |
void |
scale(javax.vecmath.Vector3d scaleFactors)
Deprecated. Replaced by scale |
void |
setComOffset(double xOffset,
double yOffset,
double zOffset)
Sets the offset from the inbound joint to this links center of mass. |
void |
setComOffset(javax.vecmath.Vector3d comOffset)
Sets the offset from the inbound joint ot this links center of mass. |
void |
setLinkGraphics(LinkGraphics linkGraphics)
Sets the graphical representation of this link to the provided LinkGraphics. |
void |
setMass(double mass)
Sets the mass of this joint. |
void |
setMassAndRadiiOfGyration(double mass,
double radiusOfGyrationX,
double radiusOfGyrationY,
double radiusOfGyrationZ)
Sets the mass and moment of inertia of this link. |
void |
setMomentOfInertia(double Ixx,
double Iyy,
double Izz)
Sets the moment of inertia for this link. |
void |
setMomentOfInertia(javax.vecmath.Matrix3d momentOfInertia)
Sets the moment of inertia for this link. |
java.lang.String |
toString()
Returns a string representation of this link. |
void |
translate(double tx,
double ty,
double tz)
Deprecated. Replaced by translate |
void |
translate(javax.vecmath.Vector3d translation)
Deprecated. Replaced by translate |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int X
public static final int Y
public static final int Z
| Constructor Detail |
|---|
public Link(LinkDefinitionFixedFrame linkDefinition)
public Link(java.lang.String lname)
lname - Name for this link.| Method Detail |
|---|
public java.lang.String getName()
public java.lang.String toString()
The following is an example of its format:
Link: <Link Name>
Mass: <Link Mass>
COM Offset: <Center of Mass offset>
Moment of Inertia:
m00, m01, m02
m10, m11, m12
m20, m21, m22
toString in class java.lang.Objectpublic void combineLinks(Link link)
link - Link to be combined with this link.public void setMass(double mass)
mass - New joint mass.public double getMass()
public void setMomentOfInertia(double Ixx,
double Iyy,
double Izz)
Ixx - doubleIyy - doubleIzz - double
public void setMassAndRadiiOfGyration(double mass,
double radiusOfGyrationX,
double radiusOfGyrationY,
double radiusOfGyrationZ)
mass - Mass of the link.radiusOfGyrationX - Radius of gyration in the x direction.radiusOfGyrationY - Radius of gyration in the y direction.radiusOfGyrationZ - Radius of gyration in the z direction.public void setMomentOfInertia(javax.vecmath.Matrix3d momentOfInertia)
momentOfInertia - Matrix3d representing the moment of inertiapublic void getMomentOfInertia(javax.vecmath.Matrix3d momentOfInertia)
momentOfInertia - Matrix3d representation of the moment of inertia.
public void setComOffset(double xOffset,
double yOffset,
double zOffset)
xOffset - Offset in the x direction.yOffset - Offset in the y direction.zOffset - Offset in the z direction.public void setComOffset(javax.vecmath.Vector3d comOffset)
comOffset - Vector3d representing the offset.public void getComOffset(javax.vecmath.Vector3d comOffsetRet)
comOffsetRet - Vector3d in which the offset will be stored.public void setLinkGraphics(LinkGraphics linkGraphics)
linkGraphics - LinkGraphics to be used for this link.public LinkGraphics getLinkGraphics()
public void translate(double tx,
double ty,
double tz)
translate
tx - distance translated in the x directionty - distance translated in the y directiontz - distance translated in the z directionpublic void translate(javax.vecmath.Vector3d translation)
translate
translation - Vector3d distance to translate.
public void rotate(double rotAng,
int rotAxis)
rotate
rotAng - the angle to rotate around the specified axis in radians.rotAxis - Axis around which to rotate. Either Link.X, Link.Y or Link.Z
public void rotate(double rotAng,
javax.vecmath.Vector3d rotAxis)
LinkGraphics#rotate(double, Vector3d
rotAng - the angle to rotate around the given axis in radians.rotAxis - Vector3d describing the axis of rotationpublic void rotate(javax.vecmath.Matrix3d rot)
rotate
rot - Matrix3d describing the rotation.public void scale(double scaleFactor)
scale
scaleFactor - Factor to scale by. This scales in all three dimensions, for example, .5 would be half the size
2 would be twice.public void scale(javax.vecmath.Vector3d scaleFactors)
scale
scaleFactors - Vector3d describing the scale factors for each axis.public void identity()
identity
public void addShape(javax.media.j3d.Geometry geometry,
javax.media.j3d.Appearance appearance)
addShape
geometry - Geometry to be added, see YoGeometryappearance - Appearance given to the geometry, see YoAppearancepublic void addShape(javax.media.j3d.Shape3D shape)
addShape
shape - Shape3D to be added.public void addBranchGroup(javax.media.j3d.BranchGroup branchGroup)
addBranchGroup
branchGroup - BranchGroup to be added.public void addGroup(javax.media.j3d.Group group)
addGroup
group - Group to be added.public void addVRMLFile(java.net.URL fileURL)
addVRMLFile
fileURL - URL pointing to the desired file.
public void addVRMLFile(java.net.URL fileURL,
javax.media.j3d.Appearance app)
addVRMLFile
fileURL - URL pointing to the desired file.app - Appearance to be used with the imported file. See YoAppearance for implementations.
public void addVRMLFile(java.lang.String fileName,
javax.media.j3d.Appearance app)
addVRMLFile
fileName - Path name of the desired VRML file.app - Appearance to be used with the imported file. See YoAppearance for implementations.public void addVRMLFile(java.lang.String fileName)
addVRMLFile
fileName - Path name of the desired VRML file.public void add3DSFile(java.net.URL fileURL)
add3DSFile
fileURL - URL pointing to the desired 3ds file.
public void add3DSFile(java.net.URL fileURL,
javax.media.j3d.Appearance app)
add3DSFile
fileURL - URL pointing to the desired file.app - Appearance to be used with the imported file. See YoAppearance for implementations.public void add3DSFile(java.lang.String fileName)
add3DSFile
fileName - Path name of the desired 3ds file.
public void add3DSFile(java.lang.String fileName,
javax.media.j3d.Appearance app)
add3DSFile
fileName - Path name of the desired 3ds file.app - Appearance to be used with the imported file. See YoAppearance for implementations.public void addCoordinateSystem(double length)
addCoordinateSystem
length - Length in meters of each arm on the coordinate system.
public void addCube(double lx,
double ly,
double lz)
addCube
lx - length in the x direction.ly - length in the y direction.lz - height.
public void addCube(double lx,
double ly,
double lz,
javax.media.j3d.Appearance cubeApp)
addCube
lx - length in the x direction.ly - length in the y direction.lz - height.cubeApp - Appearance to be used with the new cube. See YoAppearance for implementations.
public void addWedge(double lx,
double ly,
double lz)
addWedge
lx - length in the x direction.ly - length in the y direction.lz - height.
public void addWedge(double lx,
double ly,
double lz,
javax.media.j3d.Appearance wedgeApp)
addWedge
lx - length in the x direction.ly - length in the y direction.lz - height.wedgeApp - Appearance to be used with the new wedge. See YoAppearance for implementations.public void addSphere(double radius)
addSphere
radius - radius in meters of the new sphere.
public void addSphere(double radius,
javax.media.j3d.Appearance sphereApp)
addSphere
lx - length in the x direction.ly - length in the y direction.lz - height.radius - radius in meters of the new sphere.sphereApp - Appearance to be used with the new sphere. See YoAppearance for implementations.
public void addEllipsoid(double xRad,
double yRad,
double zRad)
addEllipsoid
xRad - radius in the x directionyRad - radius in the y directionzRad - radius in the z direction.
public void addEllipsoid(double xRad,
double yRad,
double zRad,
javax.media.j3d.Appearance ellipsoidApp)
addEllipsoid
xRad - radius in the x directionyRad - radius in the y directionzRad - radius in the y directionellipsoidApp - Appearance to be used with the new ellipsoid. See YoAppearance for implementations.
public void addCylinder(double height,
double radius)
addCylinder
height - height in meters of the cylinder.radius - height in meters of the cylinder.
public void addCylinder(double height,
double radius,
javax.media.j3d.Appearance cylApp)
addCylinder
height - height in meters of the cylinder.radius - height in meters of the cylinder.cylApp - Appearance to be used with the new cylinder. See YoAppearance for implementations.
public void addCone(double height,
double radius)
addCone
height - radius in meters at the baseradius - height in meters to the peak
public void addCone(double height,
double radius,
javax.media.j3d.Appearance coneApp)
addCone
height - radius in meters at the baseradius - height in meters to the peakconeApp - Appearance to be used with the new cone. See YoAppearance for implementations.
public void addGenTruncatedCone(double height,
double bx,
double by,
double tx,
double ty)
addGenTruncatedCone
height - distance in meters from the base to the topbx - radius of the base in the x directionby - radius of the base in the y directiontx - radius of the top in the x directionty - radius of the top in the y direction
public void addGenTruncatedCone(double height,
double bx,
double by,
double tx,
double ty,
javax.media.j3d.Appearance coneApp)
addGenTruncatedCone
height - distance in meters from the base to the topbx - radius of the base in the x directionby - radius of the base in the y directiontx - radius of the top in the x directionty - radius of the top in the y directionconeApp - Appearance to be used with the new truncated cone. See YoAppearance for implementations.
public void addHemiEllipsoid(double xRad,
double yRad,
double zRad)
addHemiEllipsoid
xRad - radius in the x directionyRad - radius in the y directionzRad - radius in the z direction
public void addHemiEllipsoid(double xRad,
double yRad,
double zRad,
javax.media.j3d.Appearance hEApp)
addHemiEllipsoid
xRad - radius in the x directionyRad - radius in the y directionzRad - radius in the z directionhEApp - Appearance to be used with the new hemi ellipsoid. See YoAppearance for implementations.
public void addArcTorus(double startAngle,
double endAngle,
double majorRadius,
double minorRadius)
addArcTorus
startAngle - angle from which the torus begins.endAngle - angle at which the torus ends.majorRadius - radius from the origin to the center of the torus.minorRadius - radius of the toroid.
public void addArcTorus(double startAngle,
double endAngle,
double majorRadius,
double minorRadius,
javax.media.j3d.Appearance arcTorusApp)
addArcTorus
startAngle - angle from which the torus begins.endAngle - angle at which the torus ends.majorRadius - radius from the origin to the center of the torus.minorRadius - radius of the toroid.arcTorusApp - Appearance to be used with the new arc torus. See YoAppearance for implementations.
public void addPyramidCube(double lx,
double ly,
double lz,
double lh)
addPyramidCube
lx - length in the x directionly - length in the y directionlz - length in the z directionlh - height of the pyramid portion
public void addPyramidCube(double lx,
double ly,
double lz,
double lh,
javax.media.j3d.Appearance cubeApp)
addPyramidCube
lx - length in the x directionly - length in the y directionlz - length in the z directionlh - height of the pyramid portioncubeApp - Appearance to be used with the new pyramid cube. See YoAppearance for implementations.public javax.media.j3d.SharedGroup getSharedGroup()
getSharedGroup
public void enableCollisions(double maxVelocity,
vclip.PolyTree polyTree,
Robot rob)
maxVelocity - Maximum velocity of any point on the link. Used for improving collision detection performance.polyTree - PolyTree defining collision geometry.public void addToCollisionGroup(CollisionGroup collisionGroup)
collisionGroup - CollisionGroup to add this Link to.public void addToCollisionGroups(CollisionGroup[] collisionGroups)
collisionGroups - CollisionGroup array to add this Link to.public void addEllipsoidFromMassProperties()
public void addCoordinateSystemToCOM(double length)
length - length in meters of each arm/axis on the coordinate system.public void addEllipsoidFromMassProperties(javax.media.j3d.Appearance appearance)
appearance - Appearance to be used with the ellipsoid. See YoAppearance for implementations.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||