namespace server_callbacks

Overview

namespace server_callbacks {

// global variables

 script =  None;

// global functions

str get_engine_name();
dict initialize(dict request_json);
dict run_loop(dict request_json);
None set_datapacks(dict request_json);
None set_datapack(str datapack_name, dict datapack);
list get_registered_datapack_names();
dict get_datapacks(dict request_json);
dict get_datapack(str datapack_name);
dict reset(dict request_json);
None shutdown(dict request_json);

} // namespace server_callbacks

Detailed Documentation

Global Functions

str get_engine_name()
Returns Engine name
dict initialize(dict request_json)
Imports module containing the Script class, instantiates it, and runs its initialize() method
dict run_loop(dict request_json)
Advances the simulation time and runs the runLoop method of the Script object
None set_datapacks(dict request_json)
Sets given data on requested datapacks stored in the Script object
None set_datapack(str datapack_name, dict datapack)
Sets given data on requested datapack stored in the Script object
list get_registered_datapack_names()
Returns the list of registered datapack names
dict get_datapacks(dict request_json)
Returns requested datapacks stored in the Script object
dict get_datapack(str datapack_name)
Returns requested datapack stored in the Script object
dict reset(dict request_json)
Calls the reset() method of the Script object
None shutdown(dict request_json)
Calls the shutdown() method of the Script object