SkillEventRenderer.h File Reference
#include <functional>
#include <optional>
#include <set>
#include <string>
#include <vector>
#include <SimoxUtility/json/json.hpp>
#include <ArmarXCore/core/time/DateTime.h>
+ Include dependency graph for SkillEventRenderer.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SkillEvent
 One skill lifecycle event, as stored in the Skill memory's SkillEvent core segment. More...
 
class  SkillEventRenderer
 Converts skill events into OPOSSUM log lines. More...
 

Namespaces

namespace  armarx
 This file offers overloads of toIce() and fromIce() functions for STL container types.
 
namespace  armarx::opossum
 
namespace  armarx::opossum::detail
 Helpers of SkillEventRenderer, exposed for testing.
 

Typedefs

using SpokenNameLookup
 Resolves an object class to its natural-language ("spoken") name.
 

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 &parameters, 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).