29#include <RobotAPI/interface/units/TCPControlUnit.h>
48 "Proportional gain value of P-Controller for joint limit avoidance",
57 virtual public TCPControlUnitInterface,
65 const Ice::Current&
c = Ice::emptyCurrent)
override;
67 const std::string& tcpName,
68 const ::armarx::FramedDirectionBasePtr& translationVelocity,
69 const ::armarx::FramedDirectionBasePtr& orientationVelocityRPY,
70 const Ice::Current&
c = Ice::emptyCurrent)
override;
71 bool isRequested(
const Ice::Current& = Ice::emptyCurrent)
override;
77 mutable std::mutex dataMutex;
80 std::map<std::string, std::string> tcpControllerNameMap;
97 return "TCPControlUnit";
117 init(
const Ice::Current&)
override
127 stop(
const Ice::Current&)
override
134 return UnitExecutionState::eUndefinedUnitExecutionState;
143 const Ice::Current&)
override
176 const Ice::Current&)
override
#define TYPEDEF_PTRS_HANDLE(T)
Default component property definition container.
ComponentPropertyDefinitions(std::string prefix, bool hasObjectNameParameter=true)
Component()
Protected default constructor. Used for virtual inheritance. Use createManagedIceObject() instead.
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)
The RobotUnit class manages a robot and its controllers.
TCPControllerSubUnitPropertyDefinitions(std::string prefix)
void reportJointAccelerations(const NameValueMap &, Ice::Long, bool, const Ice::Current &) override
void onInitComponent() override
Pure virtual hook for the subclass.
UnitExecutionState getExecutionState(const Ice::Current &) override
void stop(const Ice::Current &) override
void reportJointStatuses(const NameStatusMap &, Ice::Long, bool, const Ice::Current &) override
void componentPropertiesUpdated(const std::set< std::string > &changedProperties) override
Implement this function if you would like to react to changes in the properties.
void release(const Ice::Current &) override
void init(const Ice::Current &) override
void update(const SensorAndControl &sc, const JointAndNJointControllers &c) override
void reportJointCurrents(const NameValueMap &, Ice::Long, bool, const Ice::Current &) override
void setCycleTime(Ice::Int milliseconds, const Ice::Current &c=Ice::emptyCurrent) override
void reportControlModeChanged(const NameControlModeMap &, Ice::Long, bool, const Ice::Current &) override
void setTCPVelocity(const std::string &nodeSetName, const std::string &tcpName, const ::armarx::FramedDirectionBasePtr &translationVelocity, const ::armarx::FramedDirectionBasePtr &orientationVelocityRPY, const Ice::Current &c=Ice::emptyCurrent) override
void reportJointMotorTemperatures(const NameValueMap &, Ice::Long, bool, const Ice::Current &) override
void onConnectComponent() override
Pure virtual hook for the subclass.
void start(const Ice::Current &) override
PropertyDefinitionsPtr createPropertyDefinitions() override
void reportJointAngles(const NameValueMap &, Ice::Long, bool, const Ice::Current &) override
void reportJointVelocities(const NameValueMap &, Ice::Long, bool, const Ice::Current &) override
void setup(RobotUnit *rUnit, VirtualRobot::RobotPtr robot)
bool isRequested(const Ice::Current &=Ice::emptyCurrent) override
void request(const Ice::Current &) override
std::string getDefaultName() const override
Retrieve default name of component.
void reportJointTorques(const NameValueMap &, Ice::Long, bool, const Ice::Current &) override
std::shared_ptr< class Robot > RobotPtr
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
detail::ControlThreadOutputBufferEntry SensorAndControl
Structure used by the RobotUnit to swap lists of Joint and NJoint controllers.