10 #include <argos3/core/wrappers/lua/lua_utility.h>
19 void CCI_PrototypeJointsSensor::CreateLuaState(lua_State* pt_lua_state) {
37 void CCI_PrototypeJointsSensor::ReadingsToLuaState(lua_State* pt_lua_state) {
38 lua_getfield(pt_lua_state, -1,
"joints");
40 lua_getfield(pt_lua_state, -1, (pc_sensor->Id).c_str());
42 lua_pop(pt_lua_state, 1);
44 lua_pop(pt_lua_state, 1);
The namespace containing all the ARGoS related code.
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 OpenRobotStateTable(lua_State *pt_state, const std::string &str_key)
Opens a table in the robot state, creating it if it does not exist.
static void CloseRobotStateTable(lua_State *pt_state)
Closes a table in the robot state.
SSensor::TVector m_vecSensors