20 defs->topic(debugObserver);
22 defs->optional(properties.robotName,
"p.robotName",
"The name of the robot to use.");
23 defs->optional(properties.updateFrequency,
24 "p.updateFrequency [Hz]",
25 "The frequency of the running loop.");
33 return "VirtualRobotReaderExampleClient";
62 VirtualRobotReaderExampleClient::run()
75 robot = virtualRobotReaderPlugin->get().getRobot(properties.robotName, now);
91 ARMARX_CHECK(virtualRobotReaderPlugin->get().synchronizeRobot(*robot, now));
97 Eigen::Matrix4f globalPose = robot->getGlobalPose();
100 std::vector<std::string> nodeNames = robot->getRobotNodeNames();
106 metronome.waitForNextTick();
Default component property definition container.
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
static Frequency Hertz(std::int64_t hertz)
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.
bool isStopped()
Retrieve whether stop() has been called.
Simple rate limiter for use in loops to maintain a certain frequency given a clock.
void onInitComponent() override
Pure virtual hook for the subclass.
void onDisconnectComponent() override
Hook for subclass.
VirtualRobotReaderExampleClient()
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
void onConnectComponent() override
Pure virtual hook for the subclass.
void onExitComponent() override
Hook for subclass.
std::string getDefaultName() const override
#define ARMARX_CHECK(expression)
Shortcut for ARMARX_CHECK_EXPRESSION.
#define ARMARX_INFO
The normal logging level.
#define ARMARX_IMPORTANT
The logging level for always important information, but expected behaviour (in contrast to ARMARX_WAR...
#define ARMARX_WARNING
The logging level for unexpected behaviour, but not a serious problem.
#define TIMING_START(name)
Helper macro to do timing tests.
#define TIMING_END_STREAM(name, os)
Prints duration.
armarx::core::time::DateTime Time
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
SimpleRunningTask(Ts...) -> SimpleRunningTask< std::function< void(void)> >