29 : index_(index), handle_(nullptr)
70 int ret = mvncCloseDevice(
handle_);
91 int level = log_level;
92 int ret = mvncSetGlobalOption(MVNC_LOG_LEVEL,
93 static_cast<void*>(&level),
101 unsigned int size_of_level =
sizeof(level);
102 int ret = mvncGetGlobalOption(MVNC_LOG_LEVEL,
103 reinterpret_cast<void**>(&level),
106 return static_cast<LogLevel>(level);
113 unsigned int size_of_throttling =
sizeof(throttling);
114 int ret = mvncGetDeviceOption(
handle_,
115 MVNC_THERMAL_THROTTLING_LEVEL,
116 reinterpret_cast<void**>(&throttling),
117 &size_of_throttling);
131 char name[MVNC_MAX_NAME_SIZE];
132 int ret = mvncGetDeviceName(
index_, name,
sizeof(name));
void monitorThermal() const
void setLogLevel(LogLevel level)
static void tryToThrowMvncException(int code)
const char * what() const noexcept
std::string getName() const
ThermalThrottlingLevel getThermalThrottlingLevel() const
#define ROS_INFO_STREAM(args)
#define ROS_ERROR_STREAM(args)
Device(int index, LogLevel log_level)