Public Member Functions | Private Attributes
Memory Class Reference

This class is a wapper for Naoqi Memory Class. More...

#include <memory.hpp>

List of all members.

Public Member Functions

std::string getData (const std::string &str)
 get a key-value pair stored in memory
std::vector< float > getListData ()
 Get values of keys.
std::vector< float > getListData (const std::vector< std::string > &keys)
 Get values associated with the given list of keys.
void init (const std::vector< std::string > &joints_names)
 initialize with joints names to control
std::vector< std::string > initMemoryKeys (const std::vector< std::string > &joints)
 initialize memory keys to read
 Memory (const qi::SessionPtr &session)
void subscribeToMicroEvent (const std::string &name, const std::string &callback_module, const std::string &callback_method, const std::string &callback_message)
 subscribe to a micro-event
void unsubscribeFromMicroEvent (const std::string &name, const std::string &callback_module)
 unsubscribe from a micro-event

Private Attributes

std::vector< std::string > keys_positions_
qi::AnyObject memory_proxy_

Detailed Description

This class is a wapper for Naoqi Memory Class.

Definition at line 27 of file memory.hpp.


Constructor & Destructor Documentation

Memory::Memory ( const qi::SessionPtr &  session)

Definition at line 24 of file memory.cpp.


Member Function Documentation

std::string Memory::getData ( const std::string &  str)

get a key-value pair stored in memory

Definition at line 73 of file memory.cpp.

std::vector< float > Memory::getListData ( )

Get values of keys.

Definition at line 51 of file memory.cpp.

std::vector< float > Memory::getListData ( const std::vector< std::string > &  keys)

Get values associated with the given list of keys.

Definition at line 56 of file memory.cpp.

void Memory::init ( const std::vector< std::string > &  joints_names)

initialize with joints names to control

Definition at line 36 of file memory.cpp.

std::vector< std::string > Memory::initMemoryKeys ( const std::vector< std::string > &  joints)

initialize memory keys to read

Definition at line 41 of file memory.cpp.

void Memory::subscribeToMicroEvent ( const std::string &  name,
const std::string &  callback_module,
const std::string &  callback_method,
const std::string &  callback_message 
)

subscribe to a micro-event

Definition at line 87 of file memory.cpp.

void Memory::unsubscribeFromMicroEvent ( const std::string &  name,
const std::string &  callback_module 
)

unsubscribe from a micro-event

Definition at line 102 of file memory.cpp.


Member Data Documentation

std::vector<std::string> Memory::keys_positions_ [private]

joints positions keys to read

Definition at line 62 of file memory.hpp.

qi::AnyObject Memory::memory_proxy_ [private]

Memory proxy

Definition at line 59 of file memory.hpp.


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


naoqi_dcm_driver
Author(s): Konstantinos Chatzilygeroudis , Mikael Arguedas , Karsten Knese , Natalia Lyubova
autogenerated on Thu Jun 6 2019 20:50:50