Go to the documentation of this file.
20 defs->topic(debugObserver);
22 defs->optional(properties.robotName,
"p.robotName",
23 "The name of the robot to use.");
24 defs->optional(properties.updateFrequency,
"p.updateFrequency [Hz]",
25 "The frequency of the running loop.");
33 return "VirtualRobotReaderExampleClient";
65 void VirtualRobotReaderExampleClient::run()
68 while (task and not task->isStopped())
78 robot = virtualRobotReaderPlugin->get().getRobot(properties.robotName, now);
94 ARMARX_CHECK(virtualRobotReaderPlugin->get().synchronizeRobot(*robot, now));
103 std::vector<std::string> nodeNames = robot->getRobotNodeNames();
109 metronome.waitForNextTick();
#define TIMING_START(name)
void onDisconnectComponent() override
Hook for subclass.
#define ARMARX_CHECK(expression)
Shortcut for ARMARX_CHECK_EXPRESSION.
#define TIMING_END_STREAM(name, os)
VirtualRobotReaderExampleClient()
void onConnectComponent() override
Pure virtual hook for the subclass.
void onInitComponent() override
Pure virtual hook for the subclass.
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Represents a point in time.
std::string getDefaultName() const override
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
MatrixXX< 4, 4, float > Matrix4f
Default component property definition container.
Simple rate limiter for use in loops to maintain a certain frequency given a clock.
void onExitComponent() override
Hook for subclass.
SpamFilterDataPtr deactivateSpam(float deactivationDurationSec=10.0f, const std::string &identifier="", bool deactivate=true) const
disables the logging for the current line for the given amount of seconds.
static Frequency Hertz(std::int64_t hertz)