![]() |
AUBO SDK
0.26.0
|
provides a logging system for controller extension programs More...
#include <trace.h>
Public Member Functions | |
| Trace () | |
| virtual | ~Trace () |
| int | alarm (TraceLevel level, int code, const std::vector< std::string > &args={}) |
| Injects alarm information into the aubo_control log. | |
| int | textmsg (const std::string &msg) |
| print message into log | |
| int | notify (const std::string &msg) |
| Notify the system. | |
| int | popup (TraceLevel level, const std::string &title, const std::string &msg, int mode) |
| Send a popup request to the connected RTDE client | |
| RobotMsgVector | peek (size_t num, uint64_t last_time=0) |
| peek the latest AlarmInfo (after the last retrieval) | |
Protected Attributes | |
| void * | d_ |
| arcs::common_interface::Trace::Trace | ( | ) |
|
virtual |
| int arcs::common_interface::Trace::alarm | ( | TraceLevel | level, |
| int | code, | ||
| const std::vector< std::string > & | args = {} |
||
| ) |
Injects alarm information into the aubo_control log.
TraceLevel:
0 - FATAL
1 - ERROR
2 - WARNING
3 - INFO
4 - DEBUG
Code definitions refer to error_stack
| level | |
| code | |
| args |
| int arcs::common_interface::Trace::notify | ( | const std::string & | msg | ) |
Notify the system.
| msg |
| RobotMsgVector arcs::common_interface::Trace::peek | ( | size_t | num, |
| uint64_t | last_time = 0 |
||
| ) |
peek the latest AlarmInfo (after the last retrieval)
When last_time is set as 0, retrieve all AlarmInfo
| num | |
| last_time |
| int arcs::common_interface::Trace::popup | ( | TraceLevel | level, |
| const std::string & | title, | ||
| const std::string & | msg, | ||
| int | mode | ||
| ) |
Send a popup request to the connected RTDE client
| level | |
| title | |
| msg | |
| mode | mode 0: normal mode 1: blocking mode 2: input mode bool 3: input mode int 4: input mode double 5: input mode string |
| int arcs::common_interface::Trace::textmsg | ( | const std::string & | msg | ) |
print message into log
| msg | message information |