26 if (m_helper !=
nullptr) {
34 m_vectorInt_tmp.resize(size);
35 m_vectorCM_tmp.resize(size);
36 m_vectorSCM_tmp.resize(size);
48 if (m_helper!=
nullptr)
59 std::lock_guard lock(m_imp_mutex);
68 std::lock_guard lock(m_imp_mutex);
77 std::lock_guard lock(m_imp_mutex);
92 std::lock_guard lock(m_imp_mutex);
96 for(
size_t idx=0;
idx<joints.size();
idx++)
107 std::lock_guard lock(m_imp_mutex);
116 std::lock_guard lock(m_imp_mutex);
120 for(
size_t idx=0;
idx<joints.size();
idx++)
132 std::lock_guard lock(m_imp_mutex);
138 m_vectorSCM_tmp[j] = modes[
idx];
yarp::dev::ControlBoardHelper * castToMapper(void *p)
Interface for setting control mode in control board.
virtual yarp::dev::ReturnValue getControlModesRaw(std::vector< yarp::dev::ControlModeEnum > &mode)=0
virtual yarp::dev::ReturnValue setControlModeRaw(int j, yarp::dev::SelectableControlModeEnum mode)=0
virtual yarp::dev::ReturnValue getAvailableControlModesRaw(int j, std::vector< yarp::dev::SelectableControlModeEnum > &avail)=0
virtual yarp::dev::ReturnValue setControlModesRaw(const std::vector< int > &joints, const std::vector< yarp::dev::SelectableControlModeEnum > &mode)=0
virtual yarp::dev::ReturnValue getControlModeRaw(int j, yarp::dev::ControlModeEnum &mode)=0
yarp::dev::ReturnValue setControlModes(const std::vector< int > &joints, const std::vector< yarp::dev::SelectableControlModeEnum > &modes) override
Set the current control mode for a subset of axes.
yarp::dev::ReturnValue getAvailableControlModes(int j, std::vector< yarp::dev::SelectableControlModeEnum > &avail) override
Return a list of available control mode for the given joint.
bool initialize(int k, const int *amap)
yarp::dev::ReturnValue getControlModes(const std::vector< int > &joints, std::vector< yarp::dev::ControlModeEnum > &modes) override
Get the current control mode for a subset of axes.
yarp::dev::ReturnValue setControlMode(int j, yarp::dev::SelectableControlModeEnum mode) override
Set the current control mode.
ImplementControlMode(IControlModeRaw *v)
yarp::dev::ReturnValue getControlMode(int j, yarp::dev::ControlModeEnum &mode) override
Get the current control mode.
A mini-server for performing network communication in the background.
#define YARP_LOG_COMPONENT(name,...)
For streams capable of holding different kinds of content, check what they actually have.
SelectableControlModeEnum
An interface to the operating system, including Port based communication.