10#include <SimoxUtility/json/json.hpp>
40 std::string controllerNamePrefix =
"executeTrajectory";
49 auto ctrl = builder.createGetTSComplianceMPCtrl(controllerNamePrefix,
50 in.parameters.mpConfigList.toAronDTO(),
52 in.parameters.controllerConfigPath);
66 auto start = IceUtil::Time::now().toSecondsDouble();
78 auto duration = IceUtil::Time::now().toSecondsDouble() - start;
82 ARMARX_INFO <<
"Execute trajectory skill is terminated";
83 ctrl->requestStop(
"all");
static void WaitFor(const Duration &duration)
Wait for a certain duration on the virtual clock.
static Duration MilliSeconds(std::int64_t milliSeconds)
Constructs a duration in milliseconds.
auto createControllerBuilder(Args... args)
::armarx::skills::SkillDescription GetSkillDescription()
ExecuteTrajectory(const Services &)
arondto::ExecuteTrajectoryParams ParamType
static MainResult MakeSucceededResult(aron::data::DictPtr data=nullptr)
bool shouldSkillTerminate() const override
Returns whether the skill should terminate as soon as possible.
virtual MainResult main()
Override this method with the actual implementation.
void throwIfSkillShouldTerminate(const std::string &abortedMessage="") const
virtual ExitResult exit()
Override this method with the actual implementation.
#define ARMARX_CHECK_NOT_NULL(ptr)
This macro evaluates whether ptr is not null and if it turns out to be false it will throw an Express...
#define ARMARX_INFO
The normal logging level.
#define ARMARX_DEBUG
The logging level for output that is only interesting while debugging.
This file offers overloads of toIce() and fromIce() functions for STL container types.
This file is part of ArmarX.
::armarx::control::client::ComponentPlugin * controlComponentPluginUser
A result struct for skill exit function.
A result struct for th main method of a skill.