26void RemoteControlBoardRemapper::closeAllRemoteControlBoards()
28 for(
size_t i = 0; i<m_remoteControlBoardDevices.
size(); i++)
30 if (m_remoteControlBoardDevices[i])
32 m_remoteControlBoardDevices[i]->poly->close();
33 delete m_remoteControlBoardDevices[i]->poly;
34 m_remoteControlBoardDevices[i]->key =
"";
35 m_remoteControlBoardDevices[i]->poly =
nullptr;
39 m_remoteControlBoardDevices.
clear();
47 closeAllRemoteControlBoards();
61 options.
put(
"device",
"controlBoard_nwc_yarp");
62 options.
put(
"local", local);
63 options.
put(
"remote", remote);
72 closeAllRemoteControlBoards();
101 if (!b)
return false;
124 closeAllRemoteControlBoards();
void setAxesNames(const std::vector< std::string > &axesNames)
bool attachAllDevices(const yarp::dev::PolyDriverList &l)
void setNrOfControlledAxes(const size_t nrOfControlledAxes)
Set the number of controlled axes, resizing appropriately all the necessary buffers.
std::vector< std::string > m_axesNames
std::vector< std::string > m_remoteControlBoards
bool parseParams(const yarp::os::Searchable &config) override
Parse the DeviceDriver parameters.
std::string m_localPortPrefix
bool open(yarp::os::Searchable &prop) override
Open the device driver.
bool close() override
Close the device driver by deallocating all resources and closing ports.
void push(PolyDriver *p, const char *k)
A container for a device driver.
A simple collection of objects that can be described and transmitted in a portable way.
A mini-server for performing network communication in the background.
bool open(const std::string &name) override
Start port operation, with a specific name, with automatically-chosen network parameters.
A class for storing options and configuration information.
void fromString(const std::string &txt, bool wipe=true)
Interprets a string as a list of properties.
void put(const std::string &key, const std::string &value)
Associate the given key with the given string.
Bottle & findGroup(const std::string &key) const override
Gets a list corresponding to a given keyword.
A base class for nested structures that can be searched.
virtual std::string toString() const =0
Return a standard text representation of the content of the object.
#define yCError(component,...)
#define YARP_LOG_COMPONENT(name,...)
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.