36 #include <argos3/core/wrappers/lua/lua_utility.h>
69 c_os <<
"Value=<" << s_reading.
Value
70 <<
">, Offset=<" << s_reading.
Offset <<
">";
79 if(! t_readings.empty()) {
80 c_os <<
"{ " << t_readings[0].Value <<
" }";
81 for(
UInt32 i = 1; i < t_readings.size(); ++i) {
82 c_os <<
" { " << t_readings[0].Value <<
" }";
93 void CCI_FootBotBaseGroundSensor::CreateLuaState(lua_State* pt_lua_state) {
108 #ifdef ARGOS_WITH_LUA
109 void CCI_FootBotBaseGroundSensor::ReadingsToLuaState(lua_State* pt_lua_state) {
110 lua_getfield(pt_lua_state, -1,
"base_ground");
112 lua_pushnumber(pt_lua_state, i+1 );
113 lua_gettable (pt_lua_state, -2 );
114 lua_pushnumber(pt_lua_state,
m_tReadings[i].Value);
115 lua_setfield (pt_lua_state, -2,
"value" );
116 lua_pop (pt_lua_state, 1 );
118 lua_pop(pt_lua_state, 1);