|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
10 #define MONITORLUA_INC
43 MonitorLua::constraint = constraint;
44 trimString(MonitorLua::constraint);
49 return constraint.c_str();
53 return bHasAcceptCallback;
57 return bHasUpdateCallback;
61 return bHasUpdateReplyCallback;
66 std::string constraint;
67 bool bHasAcceptCallback;
68 bool bHasUpdateCallback;
69 bool bHasUpdateReplyCallback;
70 std::recursive_mutex luaMutex;
76 bool getLocalFunction(
const char *name);
77 bool registerExtraFunctions();
78 void trimString(std::string& str);
79 void searchReplace(std::string& str,
80 const std::string& oldStr,
const std::string& newStr);
81 bool isKeyword(
const char* str);
84 static int setConstraint(lua_State* L);
85 static int getConstraint(lua_State* L);
86 static int setEvent(lua_State* L);
87 static int unsetEvent(lua_State* L);
88 static int setTrigInterval(lua_State* L);
89 #if LUA_VERSION_NUM > 501
90 static const struct luaL_Reg portMonitorLib[];
92 static const struct luaL_reg portMonitorLib[];
101 MonitorTrigger::monitor = monitor;
115 #endif //_MONITORLUA_INC_
bool canAccept() override
bool getParams(yarp::os::Property ¶ms) override
bool load(const yarp::os::Property &options) override
MonitorTrigger(MonitorLua *monitor, double period)
PeriodicThread(double period, ShouldUseSystemClock useSystemClock=ShouldUseSystemClock::No)
Constructor.
Base class for generic things.
bool hasAccept() override
yarp::os::Things & updateData(yarp::os::Things &thing) override
void run() override
Loop function.
virtual ~MonitorTrigger()
MonitorLua()
Class MonitorLua.
const char * getAcceptConstraint() override
bool setParams(const yarp::os::Property ¶ms) override
An abstraction for a periodic thread.
bool setAcceptConstraint(const char *constraint) override
bool hasUpdateReply() override
bool peerTrigged() override
bool hasUpdate() override
bool acceptData(yarp::os::Things &thing) override
yarp::os::Things & updateReply(yarp::os::Things &thing) override
The main, catch-all namespace for YARP.
A class for storing options and configuration information.