|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.physics.PhysicalHumanoid
hmi.physics.ode.OdeHumanoid
public class OdeHumanoid
| Field Summary | |
|---|---|
private org.odejava.collision.JavaCollision |
collision
|
private org.odejava.collision.Contact |
contact
|
private HashMap<Long,PhysicalSegment> |
geomSegmentMap
|
private org.odejava.GeomPlane |
groundGeom
|
private org.odejava.JointGroup |
jointGroup
|
private org.odejava.Space |
space
|
private org.odejava.World |
world
|
| Fields inherited from class hmi.physics.PhysicalHumanoid |
|---|
joints, namePhysicalJointMap, nameSegmentMap, rootRotationBuffer, rootTranslationBuffer |
| Constructor Summary | |
|---|---|
OdeHumanoid(String id,
org.odejava.World w,
org.odejava.Space s)
Constructor |
|
| Method Summary | |
|---|---|
void |
clear()
removes all segments |
OdeHumanoid |
createNew(String id)
Create a new PhysicalHumanoid of the same type |
PhysicalSegment |
createSegment(String segmentId,
String segmentSID)
Creates a PhysicalSegment of the correct type for this PhysicalHumanoid subclass and makes sure its rigid body exists |
PhysicalSegment |
getSegment(long geomId)
Get the PhysicalSegment corresponding with this geometry id |
protected void |
handleCollisions()
Determine collisions, for now just with the ground |
void |
setCollision(org.odejava.collision.JavaCollision col)
|
void |
setGroundGeom(org.odejava.GeomPlane groundGeom)
|
void |
setupHashMaps(PhysicalSegment ps)
Add a PhysicalSegment to the name->segment HashMap |
PhysicalJoint |
setupJoint(String name,
PhysicalSegment seg1,
PhysicalSegment seg2,
float[] anchor)
Creates a PhysicalJoint |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private org.odejava.World world
private org.odejava.Space space
private org.odejava.JointGroup jointGroup
private org.odejava.GeomPlane groundGeom
private org.odejava.collision.JavaCollision collision
private org.odejava.collision.Contact contact
private HashMap<Long,PhysicalSegment> geomSegmentMap
| Constructor Detail |
|---|
public OdeHumanoid(String id,
org.odejava.World w,
org.odejava.Space s)
w - Ode worlds - Ode collision space| Method Detail |
|---|
public OdeHumanoid createNew(String id)
PhysicalHumanoid
createNew in class PhysicalHumanoidpublic void clear()
clear in class PhysicalHumanoid
public PhysicalJoint setupJoint(String name,
PhysicalSegment seg1,
PhysicalSegment seg2,
float[] anchor)
PhysicalHumanoid
setupJoint in class PhysicalHumanoidname - joint nameseg1 - corresponds with visual parent segmentseg2 - corresponds with visual segment that rotates with the jointanchor - world position of the joint anchor
public void setupHashMaps(PhysicalSegment ps)
PhysicalHumanoid
setupHashMaps in class PhysicalHumanoidps - the segmentpublic void setCollision(org.odejava.collision.JavaCollision col)
protected void handleCollisions()
handleCollisions in class PhysicalHumanoidpublic void setGroundGeom(org.odejava.GeomPlane groundGeom)
groundGeom - the groundGeom to setpublic PhysicalSegment getSegment(long geomId)
geomId - the geometry id
public PhysicalSegment createSegment(String segmentId,
String segmentSID)
PhysicalHumanoid
createSegment in class PhysicalHumanoid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||