41#include <VirtualRobot/VirtualRobot.h>
43#include <RobotAPI/interface/core/RobotState.h>
56 "RobotStateComponentName",
57 "RobotStateComponent",
58 "Name of the robot state component that should be used");
61 "Comma separated list of hand unit to use");
77 return "HandGroupStatechartContext";
80 void onInitStatechartContext()
override;
81 void onConnectStatechartContext()
override;
92 return robotStateComponent;
99 const HandUnitInterfacePrx
102 std::stringstream handUnitNamesSS;
104 for (std::pair<std::string, HandUnitInterfacePrx> pair : handUnits)
106 if (pair.first == handName)
111 handUnitNamesSS << pair.first <<
"; ";
114 throw LocalException(
"Could not find HandUnit Proxy for hand name '" + handName +
115 "'. Available Hand Units: " + handUnitNamesSS.str());
130 std::map<std::string, HandUnitInterfacePrx> handUnits;
131 std::vector<std::string> handUnitNames;
#define ARMARXCOMPONENT_IMPORT_EXPORT
custom implementation of the StatechartContext for a statechart
RobotStateComponentInterfacePrx getRobotStateComponent()
const VirtualRobot::RobotPtr getRobot()
const HandUnitInterfacePrx getHandUnit(const std::string &handName)
std::string getDefaultName() const override
Retrieve default name of component.
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
PropertyDefinition< PropertyType > & defineOptionalProperty(const std::string &name, PropertyType defaultValue, const std::string &description="", PropertyDefinitionBase::PropertyConstness constness=PropertyDefinitionBase::eConstant)
PropertyDefinition< PropertyType > & defineRequiredProperty(const std::string &name, const std::string &description="", PropertyDefinitionBase::PropertyConstness constness=PropertyDefinitionBase::eConstant)
StatechartContextPropertyDefinitions(std::string prefix)
std::shared_ptr< class Robot > RobotPtr
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
::IceInternal::ProxyHandle<::IceProxy::armarx::RobotStateComponentInterface > RobotStateComponentInterfacePrx
HandGroupStatechartContextProperties(std::string prefix)