|
|
Helpers of SkillEventRenderer, exposed for testing.
More...
Functions | |
| std::string | calledBy (const std::string &executorName) |
| The last segment of the executor call stack, i.e. the calling skill. | |
| std::string | errorText (const std::string &message) |
| Pull the human-readable reason out of an ArmarX error message. | |
| nlohmann::json | flat (const nlohmann::json &node) |
| Decode a self-describing Aron JSON tree into plain JSON. | |
| std::string | humanize (const std::string &text) |
serving-cart-at-lab -> serving cart at lab; laundryBasket -> laundry basket. | |
| bool | isObjectID (const nlohmann::json &value) |
Whether value is an ObjectID (has className, dataset and instanceName). | |
| const nlohmann::json * | lookup (const nlohmann::json ¶meters, const std::string &key) |
Fetch a parameter by name, supporting outer.inner nesting. | |
| std::string | quoted (const std::string &text) |
| Free text needs quoting: it may contain commas, which separate fields. | |
| std::optional< std::string > | stateOf (const std::string &status) |
Map a SkillStatus name to the reported state, if it is reportable. | |
| std::string | timestamp (const armarx::core::time::DateTime &time) |
Local time as 2026-07-08T16:45:40.341 (milliseconds, truncated). | |
Helpers of SkillEventRenderer, exposed for testing.
Each is a port of the equally-named function in gen_armar7_logs.py.
| std::string calledBy | ( | const std::string & | executorName | ) |
The last segment of the executor call stack, i.e. the calling skill.
Definition at line 338 of file SkillEventRenderer.cpp.
Here is the caller graph for this function:| std::string errorText | ( | const std::string & | message | ) |
Pull the human-readable reason out of an ArmarX error message.
Definition at line 280 of file SkillEventRenderer.cpp.
Here is the caller graph for this function:| nlohmann::json flat | ( | const nlohmann::json & | node | ) |
Decode a self-describing Aron JSON tree into plain JSON.
Definition at line 162 of file SkillEventRenderer.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::string humanize | ( | const std::string & | text | ) |
serving-cart-at-lab -> serving cart at lab; laundryBasket -> laundry basket.
Definition at line 207 of file SkillEventRenderer.cpp.
Here is the call graph for this function:| bool isObjectID | ( | const nlohmann::json & | value | ) |
Whether value is an ObjectID (has className, dataset and instanceName).
Definition at line 257 of file SkillEventRenderer.cpp.
| const nlohmann::json * lookup | ( | const nlohmann::json & | parameters, |
| const std::string & | key ) |
Fetch a parameter by name, supporting outer.inner nesting.
Definition at line 264 of file SkillEventRenderer.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::string quoted | ( | const std::string & | text | ) |
Free text needs quoting: it may contain commas, which separate fields.
Definition at line 315 of file SkillEventRenderer.cpp.
| std::optional< std::string > stateOf | ( | const std::string & | status | ) |
Map a SkillStatus name to the reported state, if it is reportable.
Definition at line 327 of file SkillEventRenderer.cpp.
Here is the caller graph for this function:| std::string timestamp | ( | const armarx::core::time::DateTime & | time | ) |
Local time as 2026-07-08T16:45:40.341 (milliseconds, truncated).
Definition at line 344 of file SkillEventRenderer.cpp.
Here is the call graph for this function:
Here is the caller graph for this function: