public class PlayerPos extends VisibleObjectPerceptor implements IPlayerPos
Constructor and Description |
---|
PlayerPos(java.lang.String name,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D position,
int id,
java.lang.String teamname,
java.util.Map<java.lang.String,org.apache.commons.math3.geometry.euclidean.threed.Vector3D> bodyPartMap,
boolean hasDepth)
Assignment constructor
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,org.apache.commons.math3.geometry.euclidean.threed.Vector3D> |
getAllBodyParts()
Retrieve a list of all visible body parts
|
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
getBodyPartPosition(java.lang.String partname)
Retrieve the 3-dimensional position of a given body part
|
int |
getId()
Get player id
|
java.lang.String |
getTeamname()
Get Team name
|
void |
setBodyPartPosition(java.lang.String partName,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D position)
Set the position of a given body part, add it to the list if it didn't
exist before
|
getConfidence, getDistance, getHorizontalAngle, getHorizontalAngleDeg, getLatitudeAngle, getLatitudeAngleDeg, getPosition, hasDepth, setPosition
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDistance, getHorizontalAngle, getHorizontalAngleDeg, getLatitudeAngle, getLatitudeAngleDeg, getPosition, hasDepth, setPosition
getName
public PlayerPos(java.lang.String name, org.apache.commons.math3.geometry.euclidean.threed.Vector3D position, int id, java.lang.String teamname, java.util.Map<java.lang.String,org.apache.commons.math3.geometry.euclidean.threed.Vector3D> bodyPartMap, boolean hasDepth)
position
- Player positionid
- Player IDteamname
- Team namebodyPartMap
- List of visible body partspublic int getId()
IPlayerPos
getId
in interface IPlayerPos
public java.lang.String getTeamname()
IPlayerPos
getTeamname
in interface IPlayerPos
public java.util.Map<java.lang.String,org.apache.commons.math3.geometry.euclidean.threed.Vector3D> getAllBodyParts()
IPlayerPos
getAllBodyParts
in interface IPlayerPos
public void setBodyPartPosition(java.lang.String partName, org.apache.commons.math3.geometry.euclidean.threed.Vector3D position)
partName
- Body part nameposition
- New positionpublic org.apache.commons.math3.geometry.euclidean.threed.Vector3D getBodyPartPosition(java.lang.String partname)
IPlayerPos
getBodyPartPosition
in interface IPlayerPos
partname
- Body part name