Menge
Modular Pedestrian Simulation Framework for Research and Development
|
Writer for version 2.2. 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.2.
The data for an agent consists of: 4-byte float x-pos 4-byte float y-pos 4-byte float orientation (radians) 4-byte float stateID - although stored as a float, the value will be an integer value. 4-byte float x-vPref (the x-component of the agent's preferred velocity). 4-byte float y-vPref (the y-component of the agent's preferred velocity). 4-byte float x-vel (the x-component of the agent's current velocity). 4-byte float y-vel (the y-component of the agent's current velocity).
|
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.