Project: engagement_recognition
License: BSD
Dependencies:
Used by:
None
All Packages
|
objects Namespace Reference
Functions |
std::vector< std::string > | addObjects (std::vector< std::string > vec1, std::vector< std::string > vec2) |
bool | areObjects (std::vector< bml_msgs::Entity > vec) |
bool | contains (std::vector< std::string > vec1, std::vector< std::string > vec2) |
std::vector< bml_msgs::Entity > | getEntitiesFromObjects (std::vector< std::string > vec) |
std::vector< std::string > | getObjectsFromEntities (std::vector< bml_msgs::Entity > vec) |
std::vector< std::string > | highestProbability (std::vector< std::string > objects, std::vector< float > probs) |
bool | intersect (std::vector< std::string > vec1, std::vector< std::string > vec2) |
bool | isFace (std::vector< bml_msgs::Entity > vec, std::string id) |
void | keepHighest (engagement_msgs::Performance &msg) |
bml_msgs::Entity | objectToEntity (std::string object) |
bool | pertains (EventSink *sink, std::vector< std::string > objects) |
std::vector< std::string > | removeObjects (std::vector< std::string > vec1, std::vector< std::string > vec2) |
bool | same (std::vector< std::string > vec1, std::vector< std::string > vec2) |
std::string | toString (std::vector< std::string > vec) |
Function Documentation
std::vector< std::string > objects::addObjects |
( |
std::vector< std::string > |
vec1, |
|
|
std::vector< std::string > |
vec2 | |
|
) |
| | |
Add the objects in the second vector to the first vector.
- Parameters:
-
| vec1 | The first vector |
| vec2 | The second vector |
- Returns:
- The resulting vector
bool objects::areObjects |
( |
std::vector< bml_msgs::Entity > |
vec |
) |
|
Determine if the entities are actual objects.
- Parameters:
-
| vec | The vector of entities |
- Returns:
- True if the entities are objects
bool objects::contains |
( |
std::vector< std::string > |
vec1, |
|
|
std::vector< std::string > |
vec2 | |
|
) |
| | |
Compare two vectors to see if first vector contains any of the objects in the second vector.
- Parameters:
-
| vec1 | The first vector |
| vec2 | The second vector |
- Returns:
- True if the contained, false otherwise
std::vector< bml_msgs::Entity > objects::getEntitiesFromObjects |
( |
std::vector< std::string > |
vec |
) |
|
Convert a vector of objects into an vector of Entity messages.
- Parameters:
-
| vec | The vector of objects |
- Returns:
- The vector of Entity messages
std::vector< std::string > objects::getObjectsFromEntities |
( |
std::vector< bml_msgs::Entity > |
vec |
) |
|
Convert a vector of Entity messages into an vector of objects.
- Parameters:
-
| vec | The vector of Entity messages |
- Returns:
- std::vector<std::string> The vector of objects
Convert a vector of Entity messages into an vector of objects.
- Parameters:
-
| vec | The vector of Entity messages |
- Returns:
- The vector of objects
std::vector< std::string > objects::highestProbability |
( |
std::vector< std::string > |
objects, |
|
|
std::vector< float > |
probs | |
|
) |
| | |
Return the objects with the highest probability.
- Parameters:
-
| objects | The objects |
| probs | The probabilities |
- Returns:
- The objects with the highest probabilities
bool objects::intersect |
( |
std::vector< std::string > |
vec1, |
|
|
std::vector< std::string > |
vec2 | |
|
) |
| | |
Compare two vectors to intersect.
- Parameters:
-
| vec1 | The first vector |
| vec2 | The second vector |
- Returns:
- True if they intersect, false otherwise
bool objects::isFace |
( |
std::vector< bml_msgs::Entity > |
vec, |
|
|
std::string |
id | |
|
) |
| | |
Determine if the entity is the actor's face.
- Parameters:
-
| vec | The vector of entities |
| id | The actor's id |
- Returns:
- True if the entity is the actor's face
void objects::keepHighest |
( |
engagement_msgs::Performance & |
msg |
) |
|
Keep only the Entity with the highest probability.
- Parameters:
-
| msg | The Performance message |
bml_msgs::Entity objects::objectToEntity |
( |
std::string |
object |
) |
|
Convert a single object into a single Entity.
- Parameters:
-
- Returns:
- The resulting Entity
bool objects::pertains |
( |
EventSink * |
sink, |
|
|
std::vector< std::string > |
objects | |
|
) |
| | |
Determine if these objects pertain to this Directed Gaze Recognizer.
- Parameters:
-
- Returns:
- True if the objects pertain to this recognizer
std::vector< std::string > objects::removeObjects |
( |
std::vector< std::string > |
vec1, |
|
|
std::vector< std::string > |
vec2 | |
|
) |
| | |
Remove the objects in the second vector from the first vector.
- Parameters:
-
| vec1 | The first vector |
| vec2 | The second vector |
- Returns:
- The resulting vector
bool objects::same |
( |
std::vector< std::string > |
vec1, |
|
|
std::vector< std::string > |
vec2 | |
|
) |
| | |
Compare two vectors to be the same.
- Parameters:
-
| vec1 | The first vector |
| vec2 | The second vector |
- Returns:
- True if the same, false otherwise
std::string objects::toString |
( |
std::vector< std::string > |
vec |
) |
|
Convert a vector of objects into a string.
- Parameters:
-
- Returns:
- The string
|