45 bool b = m_RPC.
read(connection);
50 yCDebug(MAP2D_NWS_YARP) <<
"read() Command failed";
59 if (!config.
check(
"name"))
61 m_rpcPortName =
"/map2D_nws_yarp/rpc";
69 if (!m_rpcPort.
open(m_rpcPortName))
71 yCError(MAP2D_NWS_YARP,
"Failed to open port %s", m_rpcPortName.c_str());
77 if (config.
check(
"subdevice"))
85 yCError(MAP2D_NWS_YARP) <<
"Failed to open subdevice.. check params";
91 yCError(MAP2D_NWS_YARP) <<
"Failed to open subdevice.. check params";
97 yCInfo(MAP2D_NWS_YARP) <<
"Waiting for device to attach";
105 yCTrace(MAP2D_NWS_YARP,
"Close");
119 driver->
view(m_iMap2D);
123 if (
nullptr == m_iMap2D)
125 yCError(MAP2D_NWS_YARP,
"Subdevice passed to attach method is invalid");
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
void setInterface(yarp::dev::Nav2D::IMap2D *_imap)
Map2D_nws_yarp()
Map2D_nws_yarp.
bool detach() override
Detach the object (you must have first called attach).
bool attach(yarp::dev::PolyDriver *driver) override
Attach to another object.
bool open(yarp::os::Searchable ¶ms) override
Open the DeviceDriver.
bool close() override
Close the DeviceDriver.
bool view(T *&x)
Get an interface to the device driver.
A container for a device driver.
bool isValid() const
Check if device is valid.
bool open(const std::string &txt)
Construct and configure a device by its common name.
An interface for reading from a network connection.
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.
A base class for nested structures that can be searched.
virtual bool check(const std::string &key) const =0
Check if there exists a property of the given name.
virtual std::string toString() const =0
Return a standard text representation of the content of the object.
virtual Value & find(const std::string &key) const =0
Gets a value corresponding to a given keyword.
virtual std::string asString() const
Get string value.
#define yCInfo(component,...)
#define yCError(component,...)
#define yCTrace(component,...)
#define yCDebug(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.