31#include <SimoxUtility/json/json.hpp>
73 const std::string& dataset,
const std::string& className)>;
113 static std::set<std::string>
ParseSkillList(
const std::string& commaSeparated);
117 std::string objectName(
const nlohmann::json& objectID)
const;
121 std::string locationName(
const std::string& value)
const;
124 std::vector<std::string> subjectFields(
const nlohmann::json& parameters)
const;
126 std::set<std::string> noiseSkills;
138 nlohmann::json
flat(
const nlohmann::json& node);
141 std::string
humanize(
const std::string& text);
147 const nlohmann::json*
lookup(
const nlohmann::json& parameters,
const std::string& key);
150 std::string
errorText(
const std::string& message);
153 std::string
quoted(
const std::string& text);
156 std::optional<std::string>
stateOf(
const std::string&
status);
159 std::string
calledBy(
const std::string& executorName);
Represents a point in time.
static std::string DefaultNoiseSkillsString()
DefaultNoiseSkills() as a comma-separated string (for property defaults).
bool isNoiseSkill(const std::string &skillName) const
Whether render() would drop this skill as noise.
static const std::set< std::string > & DefaultNoiseSkills()
Pure body/gaze control and primitives that only implement a skill already logged above them.
static std::set< std::string > ParseSkillList(const std::string &commaSeparated)
Split a comma-separated list into a set, trimming whitespace.
std::optional< std::string > render(const SkillEvent &event) const
Render one event.
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.
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::string calledBy(const std::string &executorName)
The last segment of the executor call stack, i.e. the calling skill.
bool isObjectID(const nlohmann::json &value)
Whether value is an ObjectID (has className, dataset and instanceName).
std::optional< std::string > stateOf(const std::string &status)
Map a SkillStatus name to the reported state, if it is reportable.
std::string humanize(const std::string &text)
serving-cart-at-lab -> serving cart at lab; laundryBasket -> laundry basket.
std::function< std::optional< std::string >( const std::string &dataset, const std::string &className)> SpokenNameLookup
Resolves an object class to its natural-language ("spoken") name.
One skill lifecycle event, as stored in the Skill memory's SkillEvent core segment.
std::string status
One of the armarx::skills::SkillStatus names, e.g. "Running", "Succeeded".
nlohmann::json parameters
armarx::core::time::DateTime timestamp
std::string executorName
The call stack of the execution, e.g. "ServeDrinks->ServeDrinks::BringObjectFromCart".