ARGoS
3
A parallel, multi-engine simulator for swarm robotics
|
Go to the documentation of this file.
10 #include <argos3/core/wrappers/lua/lua_utility.h>
31 void CCI_FootBotTurretEncoderSensor::CreateLuaState(lua_State* pt_lua_state) {
42 void CCI_FootBotTurretEncoderSensor::ReadingsToLuaState(lua_State* pt_lua_state) {
43 lua_getfield(pt_lua_state, -1,
"turret");
45 lua_setfield(pt_lua_state, -2,
"rotation");
46 lua_pop(pt_lua_state, 1);
#define ARGOS_PI
To be used when initializing static variables.
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.
The namespace containing all the ARGoS related code.
It defines the basic type CRadians, used to store an angle value in radians.
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...
const CRadians & GetRotation() const
Real GetValue() const
Returns the value in radians.
static const CRange< CRadians > ANGULAR_RANGE
static void CloseRobotStateTable(lua_State *pt_state)
Closes a table in the robot state.