This class is a wapper for Naoqi Memory Class. More...
#include <memory.hpp>
Public Member Functions | |
std::string | getData (const std::string &str) |
get a key-value pair stored in memory More... | |
std::vector< float > | getListData () |
Get values of keys. More... | |
std::vector< float > | getListData (const std::vector< std::string > &keys) |
Get values associated with the given list of keys. More... | |
void | init (const std::vector< std::string > &joints_names) |
initialize with joints names to control More... | |
std::vector< std::string > | initMemoryKeys (const std::vector< std::string > &joints) |
initialize memory keys to read More... | |
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 More... | |
void | unsubscribeFromMicroEvent (const std::string &name, const std::string &callback_module) |
unsubscribe from a micro-event More... | |
Private Attributes | |
std::vector< std::string > | keys_positions_ |
qi::AnyObject | memory_proxy_ |
This class is a wapper for Naoqi Memory Class.
Definition at line 27 of file memory.hpp.
Memory::Memory | ( | const qi::SessionPtr & | session | ) |
Definition at line 24 of file memory.cpp.
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.
|
private |
joints positions keys to read
Definition at line 62 of file memory.hpp.
|
private |
Memory proxy
Definition at line 59 of file memory.hpp.