15 if (j >= castToMapper(helper)->axes()) { \
16 yError("joint id out of bound"); \
17 return ReturnValue::return_code::return_value_error_method_failed; \
yarp::dev::ControlBoardHelper * castToMapper(void *p)
Interface for controlling a joint equipped with brakes (hardware or simulated).
virtual yarp::dev::ReturnValue setManualBrakeActiveRaw(int j, bool active)=0
virtual yarp::dev::ReturnValue isJointBrakedRaw(int j, bool &braked) const =0
virtual yarp::dev::ReturnValue getAutoBrakeEnabledRaw(int j, bool &enabled) const =0
virtual yarp::dev::ReturnValue setAutoBrakeEnabledRaw(int j, bool enabled)=0
virtual yarp::dev::ReturnValue setManualBrakeActive(int j, bool active) override
Enables/Disables manually the joint brake.
ImplementJointBrake(yarp::dev::IJointBrakeRaw *y)
virtual yarp::dev::ReturnValue isJointBraked(int j, bool &braked) const override
Check is the joint brake is currently active.
virtual ~ImplementJointBrake()
Destructor.
yarp::dev::IJointBrakeRaw * raw
bool uninitialize()
Clean up internal data and memory.
bool initialize(int size, const int *amap)
Initialize the internal data and alloc memory.
virtual yarp::dev::ReturnValue setAutoBrakeEnabled(int j, bool enabled) override
Enables/Disables the automatic joint brake.
virtual yarp::dev::ReturnValue getAutoBrakeEnabled(int j, bool &enabled) const override
checks if the automatic joint brake mode is enabled or disabled.
A mini-server for performing network communication in the background.
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.