11 #include <argos3/core/wrappers/lua/lua_utility.h>
40 c_os <<
"Value=<" << s_reading.
Value
41 <<
">, Offset=<" << s_reading.
Offset <<
">";
50 if(! t_readings.empty()) {
51 c_os <<
"{ " << t_readings[0].Value <<
" }";
52 for(
UInt32 i = 1; i < t_readings.size(); ++i) {
53 c_os <<
" { " << t_readings[0].Value <<
" }";
64 void CCI_FootBotMotorGroundSensor::CreateLuaState(lua_State* pt_lua_state) {
80 void CCI_FootBotMotorGroundSensor::ReadingsToLuaState(lua_State* pt_lua_state) {
81 lua_getfield(pt_lua_state, -1,
"motor_ground");
83 lua_pushnumber(pt_lua_state, i+1 );
84 lua_gettable (pt_lua_state, -2 );
86 lua_setfield (pt_lua_state, -2,
"value" );
87 lua_pop (pt_lua_state, 1 );
89 lua_pop(pt_lua_state, 1);