3#include <SimoxUtility/json/json.hpp>
31 std::string controllerNamePrefix =
"Guiding";
37 if (in.parameters.mode == arondto::GuidingMode::left_arm)
41 else if (in.parameters.mode == arondto::GuidingMode::right_arm)
50 auto const configFileName =
"/default_a7" + suffix +
"_zero_torque.json";
51 const armarx::PackagePath configPath(
52 "armarx_control",
"controller_config/" + controllerClassName + configFileName);
53 auto ctrl = builder.createGetTSComplianceCtrl(
54 controllerNamePrefix,
nullptr, configPath.toSystemPath());
62 ctrl->deactivateAndDeleteController();
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()
GuidingWithCollAvoidance(const Services &)
arondto::GuidingWithCollAvoidanceParams 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.
const simox::meta::EnumNames< ControllerType > ControllerTypeNames
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.