SkillEventRenderer.cpp File Reference
#include "SkillEventRenderer.h"
#include <algorithm>
#include <cctype>
#include <cstdio>
#include <ctime>
#include <map>
#include <SimoxUtility/algorithm/string.h>
+ Include dependency graph for SkillEventRenderer.cpp:

Go to the source code of this file.

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.
 

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).