![]() |
RMVL
1.1.1
RoboMaster Vision Library
|
模块 | |
| 数据读写(I/O) | |
| 卡尔曼滤波器库 | |
| 串口通信模块 | |
| 定时、计时模块 | |
宏定义 | |
| #define | __RMVL_CAT__(x, y) x##y |
| #define | __RMVL_CAT_(x, y) __RMVL_CAT__(x, y) |
| #define | __RMVL_CAT(x, y) __RMVL_CAT_(x, y) |
| #define | __RMVL_EXPAND(x) x |
| #define | RMVL_Func "<unknown>" |
| #define | HIGHLIGHT_(...) |
| #define | WARNING_(...) |
| #define | PASS_(...) |
| #define | ERROR_(...) |
| #define | INFO_(...) |
| #define | DEBUG_WARNING_(...) WARNING_(__VA_ARGS__) |
| #define | DEBUG_ERROR_(...) ERROR_(__VA_ARGS__) |
| #define | DEBUG_HIGHLIGHT_(...) HIGHLIGHT_(__VA_ARGS__) |
| #define | DEBUG_INFO_(...) INFO_(__VA_ARGS__) |
| #define | DEBUG_PASS_(...) PASS_(__VA_ARGS__) |
| #define | RMVL_Error(code, msg) rm::error(code, msg, RMVL_Func, __FILE__, __LINE__) |
| 调用错误处理程序 更多... | |
| #define | RMVL_Error_(code, fmt, ...) rm::error(code, rm::format(fmt, __VA_ARGS__), RMVL_Func, __FILE__, __LINE__) |
| 调用错误处理程序 更多... | |
| #define | RMVL_Assert(expr) (!!(expr)) ? (void(0)) : rm::error(RMVL_StsAssert, #expr, RMVL_Func, __FILE__, __LINE__) |
| 在运行时检查条件,如果失败则抛出异常 更多... | |
| #define | RMVL_DbgAssert(expr) RMVL_Assert(expr) |
| 在 Debug 条件下或启用静态分析工具的情况下,在运行时检查条件,如果失败则抛出异常 更多... | |
类型定义 | |
| typedef int | RMVLErrorCode |
重定义 int 为 RMVLErrorCode 更多... | |
枚举 | |
| enum | : RMVLErrorCode { RMVL_StsOk = 0 , RMVL_StsBackTrace = -1 , RMVL_StsError = -2 , RMVL_StsNoMem = -3 , RMVL_StsBadArg = -4 , RMVL_StsBadSize = -5 , RMVL_StsNullPtr = -6 , RMVL_StsNotaNumber = -7 , RMVL_StsDivByZero = -8 , RMVL_StsOutOfRange = -9 , RMVL_StsAssert = -10 , RMVL_StsInvFmt = -11 , RMVL_BadDynamicType = -12 } |
| RMVL 错误码 更多... | |
函数 | |
| const char * | rmvlErrorStr (RMVLErrorCode status) |
| #define __RMVL_CAT | ( | x, | |
| y | |||
| ) | __RMVL_CAT_(x, y) |
#include <rmvl/core/rmvldef.hpp>
| #define __RMVL_CAT_ | ( | x, | |
| y | |||
| ) | __RMVL_CAT__(x, y) |
#include <rmvl/core/rmvldef.hpp>
| #define __RMVL_CAT__ | ( | x, | |
| y | |||
| ) | x##y |
#include <rmvl/core/rmvldef.hpp>
| #define __RMVL_EXPAND | ( | x | ) | x |
#include <rmvl/core/rmvldef.hpp>
| #define DEBUG_ERROR_ | ( | ... | ) | ERROR_(__VA_ARGS__) |
#include <rmvl/core/util.hpp>
| #define DEBUG_HIGHLIGHT_ | ( | ... | ) | HIGHLIGHT_(__VA_ARGS__) |
#include <rmvl/core/util.hpp>
| #define DEBUG_INFO_ | ( | ... | ) | INFO_(__VA_ARGS__) |
#include <rmvl/core/util.hpp>
| #define DEBUG_PASS_ | ( | ... | ) | PASS_(__VA_ARGS__) |
#include <rmvl/core/util.hpp>
| #define DEBUG_WARNING_ | ( | ... | ) | WARNING_(__VA_ARGS__) |
#include <rmvl/core/util.hpp>
| #define ERROR_ | ( | ... | ) |
#include <rmvl/core/util.hpp>
| #define HIGHLIGHT_ | ( | ... | ) |
#include <rmvl/core/util.hpp>
| #define INFO_ | ( | ... | ) |
#include <rmvl/core/util.hpp>
| #define PASS_ | ( | ... | ) |
#include <rmvl/core/util.hpp>
| #define RMVL_Assert | ( | expr | ) | (!!(expr)) ? (void(0)) : rm::error(RMVL_StsAssert, #expr, RMVL_Func, __FILE__, __LINE__) |
#include <rmvl/core/util.hpp>
在运行时检查条件,如果失败则抛出异常
| #define RMVL_DbgAssert | ( | expr | ) | RMVL_Assert(expr) |
#include <rmvl/core/util.hpp>
在 Debug 条件下或启用静态分析工具的情况下,在运行时检查条件,如果失败则抛出异常
#include <rmvl/core/util.hpp>
调用错误处理程序
stderr。在 Debug 配置中,它会引发内存访问冲突,以便调试器可以分析执行堆栈和所有参数。在 Release 配置中,抛出异常。| [in] | code | 一种 RMVLErrorCode 错误码 |
| [in] | msg | 错误信息 |
| #define RMVL_Error_ | ( | code, | |
| fmt, | |||
| ... | |||
| ) | rm::error(code, rm::format(fmt, __VA_ARGS__), RMVL_Func, __FILE__, __LINE__) |
#include <rmvl/core/util.hpp>
调用错误处理程序
| [in] | code | 一种 RMVLErrorCode 错误码 |
| [in] | fmt | 格式化字符串 |
| [in] | ... | 括号中带有类似 printf 格式的错误信息 |
| #define RMVL_Func "<unknown>" |
#include <rmvl/core/rmvldef.hpp>
| #define WARNING_ | ( | ... | ) |
#include <rmvl/core/util.hpp>
| typedef int RMVLErrorCode |
#include <rmvl/core/util.hpp>
重定义 int 为 RMVLErrorCode
| anonymous enum : RMVLErrorCode |
#include <rmvl/core/util.hpp>
RMVL 错误码
| const char* rmvlErrorStr | ( | RMVLErrorCode | status | ) |
#include <rmvl/core/util.hpp>
1.9.1