10 #include <argos3/core/wrappers/lua/lua_utility.h>
20 void CCI_CameraSensorTagDetectorAlgorithm::CreateLuaState(lua_State* pt_lua_state) {
39 void CCI_CameraSensorTagDetectorAlgorithm::ReadingsToLuaState(lua_State* pt_lua_state) {
40 size_t unLastReadingsNum = lua_rawlen(pt_lua_state, -1);
54 for(
size_t i =
m_vecReadings.size() + 1; i <= unLastReadingsNum; ++i) {
55 lua_pushnumber(pt_lua_state, i);
56 lua_pushnil (pt_lua_state );
57 lua_settable (pt_lua_state, -3);
The namespace containing all the ARGoS related code.
static void EndTable(lua_State *pt_state)
Adds a table to the Lua stack.
static void AddToTable(lua_State *pt_state, const std::string &str_key, void *pt_data)
Adds a pointer to a chunk of data with the given string key to the table located at the top of the st...
static void StartTable(lua_State *pt_state, const std::string &str_key)
Adds a table with the given string key to the table located at the top of the stack.
std::vector< SReading > m_vecReadings