Go to the documentation of this file.
5 #include <RobotAPI/interface/units/RobotUnit/RobotUnitInterface.h>
14 using ComponentPlugin::ComponentPlugin;
50 const std::string& instanceName,
51 const NJointControllerConfigPtr& config,
52 bool doManageController =
true)
54 return PrxT::checkedCast(
61 const std::string& className,
62 const std::string& instanceName,
63 const NJointControllerConfigPtr& config,
64 bool doManageController =
true)
66 prx = PrxT::checkedCast(
71 const std::string& instanceName,
72 const NJointControllerConfigPtr& config,
73 bool doManageController =
true);
83 static constexpr
const char* PROPERTY_NAME =
"RobotUnitName";
85 std::string _robotUnitName;
86 bool _isRobotUnitOptionalDependency =
false;
87 std::set<std::string> _ctrls;
121 {
return false; })
const;
Provides a ready-to-use RobotUnit.
PrxT createNJointController(const std::string &className, const std::string &instanceName, const NJointControllerConfigPtr &config, bool doManageController=true)
void setRobotUnitName(const std::string &name)
void postOnDisconnectComponent() override
std::shared_ptr< class RobotUnitDataStreamingReceiver > RobotUnitDataStreamingReceiverPtr
const std::string & getRobotUnitName() const
bool robotUnitIsRunning() const
void manageController(const NJointControllerInterfacePrx &ctrl)
void createNJointController(PrxT &prx, const std::string &className, const std::string &instanceName, const NJointControllerConfigPtr &config, bool doManageController=true)
bool hasRobotUnitName() const
This file is part of ArmarX.
armarx::RobotUnitComponentPluginUser RobotUnitComponentPluginUser
RobotUnitComponentPluginUser()
void setRobotUnitAsOptionalDependency(bool isOptional=true)
RobotUnitDataStreamingReceiverPtr startDataStreaming(const RobotUnitDataStreaming::Config &cfg)
void waitUntilRobotUnitIsRunning(const std::function< bool()> &termCond=[] { return false;}) const
Waits until the robot unit is running.
void postCreatePropertyDefinitions(PropertyDefinitionsPtr &properties) override
The ManagedIceObject is the base class for all ArmarX objects.
void preOnConnectComponent() override
void preOnInitComponent() override
void setRobotUnitAsOptionalDependency(bool isOptional=true)
plugins::RobotUnitComponentPlugin & getRobotUnitComponentPlugin()
RobotUnitInterfacePrx getRobotUnit() const
void waitUntilRobotUnitIsRunning(const std::function< bool()> &termCond=[] { return false;})
Waits until the robot unit is running.
This file offers overloads of toIce() and fromIce() functions for STL container types.
RobotUnitInterfacePrx getRobotUnit() const