Overview | API
Namespace : AL
#include <alproxies/alworldrepresentationproxy.h>
Deprecated methods
Add a new attribute to an existing category. The new category is added to the attribute with the specified fields. Each attribute is unique.
Parameters: |
|
---|---|
Returns: | 0 if success. |
Remove an object and all its descendants from the world.
Parameters: |
|
---|---|
Returns: | 0 if success. |
Clear the stored positions (if relevant) of an object type which are older than a given number of seconds.
Parameters: |
|
---|---|
Returns: | 0 if success. |
Create a new object category, with the possibility to retrieved previously stored information on the category.
Parameters: |
|
---|---|
Returns: | 0 if success. |
Delete object attributes according to a given criterion (for example, with criterion=”LastSeen>42 OR Size < 1”).
Parameters: |
|
---|---|
Returns: | 0 if success. |
Check if an object is present.
Get the objects which are direct children of the given object.
Parameters: |
|
---|---|
Returns: | Vector of the object names. |
Get the category of an object.
Parameters: |
|
---|---|
Returns: | Name of the the category (empty string if the object does not exist). |
Get the names of all objects from the world.
Returns: | Vector of the object names. |
---|
Get all object attributes from an object.
Parameters: |
|
---|---|
Returns: | List of all attributes [[AttributeName, AttributeFields] ] where AttributeFields = “(FieldName fieldtype, ...)”. |
Gets all the latest values for all attributes for a specific object.
Parameters: |
|
---|---|
Returns: | All latests attributes value for each attribute with the following format [[AttributeName, [[field0Value, field1Value, ...]]], ] |
Gets the latest values of a given attributes for a specific object.
Parameters: |
|
---|---|
Returns: | All latests attribute values for the given attribute, with the following format [field0Value, field1Value, ...] following the attributes fields. Empty if the attribute or the object do not exist. |
Get all objects that belong to a given category.
Parameters: |
|
---|---|
Returns: | Vector of all object names. |
Get the parent object name of a given object, if applicable.
Parameters: |
|
---|---|
Returns: | Name of the parent object, or the object itself if it is the root. |
Get the position of an object relative to another one with quaternion and translation.
Parameters: |
|
---|---|
Returns: | [quaternion, translation] where quaternion = [w, x, y, z] and translation = [x, y, z] |
Get the position of an object from the world relatively to another reference object in the world (with translation and Euler angles).
Parameters: |
|
---|---|
Returns: | Position of the object relative to the reference object. This is a 6 dimensional vector containing [x, y, z, Wx, Wy, Wz] where Wx is the rotation around the X axis etc. Will be [0, 0, 0, 0, 0, 0] if one of the two objects does not exist. |
Parameters: |
|
---|---|
Returns: | Position of the object relative to the reference object. This is a 6 dimensional vector containing [x, y, z, Wx, Wy, Wz] where Wx is the rotation around the X axis etc. Will be [0, 0, 0, 0, 0, 0] if one of the two objects does not exist. |
Returns: | The name of the root object in the world representation. |
---|
Completely remove a category and all objects belonging to this category.
Parameters: |
|
---|---|
Returns: | 0 if success. |
Save the graph and databases to the disk.
Returns: | 0 if success. |
---|
Select attributes in a category which match a given criterion.
Parameters: |
|
---|---|
Returns: | The attribute fields that match, with the following format: [Row0, Row1, ... ] where Rowi = [FieldValue0, FieldValue1, ...]. The field values are given in the order of the attribute definition when the selected fields are “*”, or else in the order given by the fields argument. |
Select attributes from a category which match a given criterion and order them according to one field value.
Parameters: |
|
---|---|
Returns: | The attributes that match, with the following format: [Row0, Row1, ... ] where Rowi = [FieldValue0, FieldValue1, ...]. The field values are given in the order of the attribute definition when the selected fields are “*”, or else in the order given by the fields argument. The rows are ordered according to the field value. |
Store a new object.
Parameters: |
|
---|---|
Returns: | 0 if success. |
Store a new object in the world, giving its position relative to a reference object and attaching it to a different parent object.
Parameters: |
|
---|---|
Returns: | 0 if success. |
Store a new attribute value of an object.
Parameters: |
|
---|---|
Returns: | 0 if success. |
Update the position of an object relative to its parent.
Parameters: |
|
---|---|
Returns: | 0 if success. |
Update the position of an object relative to a reference object.
Parameters: |
|
---|---|
Returns: | 0 if success. |
Update an attribute value of an object.
Parameters: |
|
---|---|
Returns: | 0 if success. |
Deprecated since version 1.22: unstable and inconclusive trial. Do not use.
Deprecated since version 1.22: unstable and inconclusive trial. Do not use.