|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.common.TaggableObject
com.kuka.roboticsAPI.geometricModel.SceneGraphObject
com.kuka.roboticsAPI.geometricModel.SpatialObject
public class SpatialObject
A spatial object describes a geometric area.
This must not be a physical object but just a special region of interest, like a safe working area, or just an object that does not have physical properties in the station model. For that purpose, a spatial object has child frames describing the spatial region. Also, the object has an identifier.
The Robotics API always assumes the translation part of transformations to be given in [mm].
| Constructor Summary | |
|---|---|
SpatialObject(String name)
Creates a new spatial object. |
|
| Method Summary | |
|---|---|
void |
attachTo(ObjectFrame frame)
Changes the objects root frame parent to the given frame and sets the transformation to MatrixTransformation.IDENTITY. |
void |
attachTo(ObjectFrame frame,
ITransformation trans)
Changes the objects root frame parent to the given frame and sets the root frame transformation to the given transformation. |
protected void |
changeParent(ObjectFrame frame)
Sets the new parent frame for this object if the new parent frame is not part of the subtree. |
void |
detach()
Removes the connection between an object and its parent by removing the parent of the objects root frame. |
void |
setName(String name)
Sets the name of this object. |
void |
switchParent(ObjectFrame frame)
Changes the objects root frame parent to the given frame. |
void |
switchParent(SceneGraphObject obj)
Changes the objects root frame parent to the root frame of the given object. |
| Methods inherited from class com.kuka.roboticsAPI.geometricModel.SceneGraphObject |
|---|
addChildFrame, addChildFrame, addChildFrame, addChildFrame, addChildFrame, addChildFrame, allObjects, changeFrameParent, changeFramePosition, findMembersOfGroup, findRobot, getAllFrames, getAllUserParameters, getChild, getChildFrameLock, getChildren, getFrame, getName, getParent, getRootFrame, getRootOfGroup, getUserParameter, groupToParent, isDescendantOf, isGroupedToParent, isMemberOfGroup, isRootOfGroup, removeFrame, renameFrame, setRootFrame, setUserParameter, toString, ungroupFromParent |
| Methods inherited from class com.kuka.common.TaggableObject |
|---|
getTag, setTag |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SpatialObject(String name)
name - the name of the object| Method Detail |
|---|
public void detach()
public void setName(String name)
setName in class SceneGraphObjectname - the new name of this object.public void attachTo(ObjectFrame frame)
MatrixTransformation.IDENTITY. This is only
allowed, if the frame is not part of the objects subtree.
If the object is grouped to the former parent object (
groupToParent()), the whole group will be attached to the
new parent, not only the calling object.
frame - the new parent frame of the objects root frame.
public void attachTo(ObjectFrame frame,
ITransformation trans)
If the object is grouped to the former parent object (
groupToParent()), the whole group will be attached to the
new parent, not only the calling object.
frame - the new parent frame of the objects root frame.trans - the new transformation from the specified target frame to the
root frame of the object.public void switchParent(SceneGraphObject obj)
This method can only be used if the calling object has a parent that is
not null. For example, the parent will be null, if the
calling object has been detached from its parent before calling this
method. In that case, use the attachTo() method.
If the object is grouped to the former parent object (
groupToParent()), the whole group will be attached to the
new parent, not only the calling object.
obj - the root frame of the given object will be the new parent of
this object.public void switchParent(ObjectFrame frame)
This method can only be used if the calling object has a parent that is
not null. For example, the parent will be null, if the
calling object has been detached from its parent before calling this
method. In that case, use the attachTo() method.
If the object is grouped to the former parent object (
groupToParent()), the whole group will be attached to the
new parent, not only the calling object.
frame - the new parent of this object.protected void changeParent(ObjectFrame frame)
changeParent in class SceneGraphObjectframe - the new parent frame.
IllegalArgumentException - if frame is null. if the new parent frame is
part of the current subtree. if the worlds parent should be
changed. the worlds parent cannot be changed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||