|
|
Converts skill events into OPOSSUM log lines. More...
#include <RobotAPI/components/opossum_logger/SkillEventRenderer.h>
Public Member Functions | |
| bool | isNoiseSkill (const std::string &skillName) const |
Whether render() would drop this skill as noise. | |
| std::optional< std::string > | render (const SkillEvent &event) const |
| Render one event. | |
| SkillEventRenderer () | |
| SkillEventRenderer (std::set< std::string > noiseSkills, SpokenNameLookup spokenNameLookup) | |
Static Public Member Functions | |
| static const std::set< std::string > & | DefaultNoiseSkills () |
| Pure body/gaze control and primitives that only implement a skill already logged above them. | |
| static std::string | DefaultNoiseSkillsString () |
DefaultNoiseSkills() as a comma-separated string (for property defaults). | |
| static std::set< std::string > | ParseSkillList (const std::string &commaSeparated) |
| Split a comma-separated list into a set, trimming whitespace. | |
Converts skill events into OPOSSUM log lines.
The output format is one key:value line per event, e.g.
This is a port of tools/gen_armar7_logs.py in the opossum_euROBIN repository, which produces the same lines offline from an LTM export. Function names are kept in sync with that script on purpose, so the two can be compared when the format changes.
| SkillEventRenderer | ( | std::set< std::string > | noiseSkills, |
| SpokenNameLookup | spokenNameLookup ) |
|
static |
Pure body/gaze control and primitives that only implement a skill already logged above them.
These say nothing at scene level.
|
static |
DefaultNoiseSkills() as a comma-separated string (for property defaults).
| bool isNoiseSkill | ( | const std::string & | skillName | ) | const |
Whether render() would drop this skill as noise.
Lets a caller skip the event before paying to fetch it.
|
static |
Split a comma-separated list into a set, trimming whitespace.
| std::optional< std::string > render | ( | const SkillEvent & | event | ) | const |
Render one event.
std::nullopt if the event is not reportable (unknown/intermediate status, or a skill on the noise list).