![]()  | 
  
    RobWorkProject
    23.9.11-
    
   | 
 
a robwork wrapper for the lua_State struct. The standard robwork lua libs will be initialized automatically. Also this provides an extension point for adding user defined lua enabled libraries. More...
#include <LuaState.hpp>
Classes | |
| class | Factory | 
| a factory for LuaLibrary. This factory also defines an extension point for LuaLibraries. This permit users to define extensions to the lua interfaces through RobWork extension.  More... | |
| struct | LuaLibrary | 
Public Types | |
| typedef rw::core::Ptr< LuaState > | Ptr | 
| smart pointer type of LuaState  | |
Public Member Functions | |
| LuaState () | |
| constructor  | |
| virtual | ~LuaState () | 
| destructor  | |
| void | reset () | 
| reset this luastate  | |
| int | runCmd (const std::string &str) | 
| run a lua command block  | |
| void | addLibrary (LuaLibrary::Ptr lib) | 
| when the LuaState is reset all library constributers will be asked to add their libraries to the state again.  | |
| void | removeLibrary (const std::string &id) | 
| remove specific library from luastate  | |
| lua_State * | get () | 
| get the lua_State  | |
a robwork wrapper for the lua_State struct. The standard robwork lua libs will be initialized automatically. Also this provides an extension point for adding user defined lua enabled libraries.