icub-client
Public Member Functions | List of all members
iol2opc_IDL Class Reference

iol2opc_IDL IDL Interface to iol2opc service. More...

#include <iol2opc_IDL.h>

+ Inheritance diagram for iol2opc_IDL:

Public Member Functions

 iol2opc_IDL ()
 
virtual bool train_object (const std::string &name)
 Add a new object to the object-recognition database based on the selected blob. More...
 
virtual bool remove_object (const std::string &name)
 Remove object with a given name from the object-recognition database. More...
 
virtual bool remove_all ()
 Remove all objects from the object-recognition database. More...
 
virtual bool change_name (const std::string &old_name, const std::string &new_name)
 Change the name of an object. More...
 
virtual bool set_object_persistence (const std::string &sw)
 Enable/disable object persistence. More...
 
virtual std::string get_object_persistence ()
 Return current status of object persistence. More...
 
virtual void pause ()
 Pause module. More...
 
virtual void resume ()
 Resume module. More...
 
virtual bool read (yarp::os::ConnectionReader &connection) override
 
virtual std::vector< std::string > help (const std::string &functionName="--all")
 

Detailed Description

iol2opc_IDL IDL Interface to iol2opc service.

Definition at line 25 of file iol2opc_IDL.h.

Constructor & Destructor Documentation

◆ iol2opc_IDL()

iol2opc_IDL::iol2opc_IDL ( )

Definition at line 252 of file iol2opc_IDL.cpp.

Member Function Documentation

◆ change_name()

bool iol2opc_IDL::change_name ( const std::string &  old_name,
const std::string &  new_name 
)
virtual

Change the name of an object.

Parameters
old_nameis the object which name is to be changed
new_nameis the new object name
Returns
true/false on success/failure.

Reimplemented in IOL2OPCBridge.

Definition at line 285 of file iol2opc_IDL.cpp.

◆ get_object_persistence()

std::string iol2opc_IDL::get_object_persistence ( )
virtual

Return current status of object persistence.

Returns
"on"|"off".

Reimplemented in IOL2OPCBridge.

Definition at line 305 of file iol2opc_IDL.cpp.

◆ help()

std::vector< std::string > iol2opc_IDL::help ( const std::string &  functionName = "--all")
virtual

Definition at line 479 of file iol2opc_IDL.cpp.

◆ pause()

void iol2opc_IDL::pause ( )
virtual

Pause module.

Reimplemented in IOL2OPCBridge.

Definition at line 315 of file iol2opc_IDL.cpp.

◆ read()

bool iol2opc_IDL::read ( yarp::os::ConnectionReader &  connection)
overridevirtual

Definition at line 332 of file iol2opc_IDL.cpp.

◆ remove_all()

bool iol2opc_IDL::remove_all ( )
virtual

Remove all objects from the object-recognition database.

Returns
true/false on success/failure.

Reimplemented in IOL2OPCBridge.

Definition at line 275 of file iol2opc_IDL.cpp.

◆ remove_object()

bool iol2opc_IDL::remove_object ( const std::string &  name)
virtual

Remove object with a given name from the object-recognition database.

Parameters
nameis the object name
Returns
true/false on success/failure.

Reimplemented in IOL2OPCBridge.

Definition at line 265 of file iol2opc_IDL.cpp.

◆ resume()

void iol2opc_IDL::resume ( )
virtual

Resume module.

Reimplemented in IOL2OPCBridge.

Definition at line 323 of file iol2opc_IDL.cpp.

◆ set_object_persistence()

bool iol2opc_IDL::set_object_persistence ( const std::string &  sw)
virtual

Enable/disable object persistence.

Parameters
swcan be "on"|"off".
Returns
true/false on success/failure.

Reimplemented in IOL2OPCBridge.

Definition at line 295 of file iol2opc_IDL.cpp.

◆ train_object()

bool iol2opc_IDL::train_object ( const std::string &  name)
virtual

Add a new object to the object-recognition database based on the selected blob.

If the object is already existing, its recognition is improved.

Parameters
nameis the object name
Returns
true/false on success/failure.

Reimplemented in IOL2OPCBridge.

Definition at line 255 of file iol2opc_IDL.cpp.


The documentation for this class was generated from the following files: