Menge
Modular Pedestrian Simulation Framework for Research and Development
|
Writer for version 2.3. More...
#include <SCBWriter.h>
Public Member Functions | |
virtual void | writeFrame (std::ofstream &file, SimulatorInterface *sim, BFSM::FSM *fsm) |
Function to write current frame's state to the file. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from Menge::Agents::SCBFrameWriter | |
static const int | ZERO = 0 |
Simple static variable for writing binary zeros to the file. | |
Writer for version 2.3.
The data for an agent consists of: 4-byte float x-pos 4-byte float y-pos 4-byte float x-direction - the x-component of the unit vector pointing in the direction of orientation. 4-byte float y-direction - the y-component of the unit vector pointing in the direction of orientation.
|
virtual |
Function to write current frame's state to the file.
file | The file object to write to. |
sim | A pointer to the simulator. |
fsm | A pointer to the behavior fsm for the simulator. |
Implements Menge::Agents::SCBFrameWriter.