INITIALIZE (C++)#

InitializeResponse invertedai::initialize(InitializeRequest &initialize_request, Session *session)#

class InitializeRequest#

Public Functions

InitializeRequest(const std::string &body_str)#
std::string body_str()#
std::string location() const#
int num_agents_to_spawn() const#
std::vector<std::vector<AgentState>> states_history() const#
std::vector<AgentAttributes> agent_attributes() const#
std::vector<std::vector<TrafficLightState>> traffic_light_state_history() const#
bool get_birdview() const#
bool get_infractions() const#
int random_seed() const#
void set_location(const std::string &location)#
void set_num_agents_to_spawn(int num_agents_to_spawn)#
void set_states_history(const std::vector<std::vector<AgentState>> &states_history)#
void set_agent_attributes(const std::vector<AgentAttributes> &agent_attributes)#
void set_traffic_light_state_history(const std::vector<std::vector<TrafficLightState>> &traffic_light_state_history)#
void set_get_birdview(bool get_birdview)#
void set_get_infractions(bool get_infractions)#
void set_random_seed(int random_seed)#
class InitializeResponse#

Public Functions

InitializeResponse(const std::string &body_str)#
std::string body_str()#
std::vector<AgentState> agent_states() const#
std::vector<AgentAttributes> agent_attributes() const#
std::vector<std::vector<double>> recurrent_states() const#
std::vector<unsigned char> birdview() const#
std::vector<InfractionIndicator> infraction_indicators() const#
void set_agent_states(const std::vector<AgentState> &agent_states)#
void set_agent_attributes(const std::vector<AgentAttributes> &agent_attributes)#
void set_recurrent_states(const std::vector<std::vector<double>> &recurrent_states)#
void set_birdview(const std::vector<unsigned char> &birdview)#
void set_infraction_indicators(const std::vector<InfractionIndicator> &infraction_indicators)#