Definition addresses.h:11
Definition swap_controllers_command.h:12
static int GetCANAddr(const argos_lib::CANAddress &compAddress, const argos_lib::CANAddress &practiceAddress, argos_lib::RobotInstance instance)
Gets integer address from CANAddress objects based on robot instance.
Definition config_types.h:38
RobotInstance
Differentiates between practice robot and competition robot.
Definition config_types.h:13
@ Competition
Competition robot.
@ Practice
Practice robot.
RobotInstance GetRobotInstance()
Detect robot instance.
Definition robot_instance.cpp:11
static std::string_view GetCANBus(const argos_lib::CANAddress &compAddress, const argos_lib::CANAddress &practiceAddress, argos_lib::RobotInstance instance)
Gets std::string_view bus name from CANAddress objects based on robot instance.
Definition config_types.h:49
Definition config_types.h:25
int address
Definition config_types.h:26
constexpr CANAddress(int address, const std::string_view &busName="rio")
Definition config_types.h:30
std::string_view busName
Definition config_types.h:27