blob: 90b3724c38d21bbca2df37152d5c0dd1edb0d9e9 [file] [log] [blame]
James (Peilun) Lia70e5752024-09-18 20:43:00 -07001#ifndef Y2024_BOT3_CONSTANTS_SIMULATED_CONFIG_SENDER_H_
2#define Y2024_BOT3_CONSTANTS_SIMULATED_CONFIG_SENDER_H_
3
4#include <set>
5
6#include "aos/events/simulated_event_loop.h"
7#include "aos/testing/path.h"
8
9namespace y2024_bot3 {
10// Returns true, to allow this to be easily called in the initializer list of a
11// constructor.
12// If node_names is specified, we limit ourselves to sending constants on the
13// specified nodes.
14bool SendSimulationConstants(
15 aos::SimulatedEventLoopFactory *factory, int team,
16 std::string constants_path =
17 aos::testing::ArtifactPath("y2024_bot3/constants/test_constants.json"),
18 const std::set<std::string_view> &node_names = {});
19} // namespace y2024_bot3
20
21#endif // Y2024_BOT3_CONSTANTS_SIMULATED_CONFIG_SENDER_H_