机器人控制系统初始化必要接口 更多...
#include "Base/robotStruct.h"函数 | |
| int | initPriority (int priority) |
| 程序优先级设置 更多... | |
| int | initCurrentThreadPriority (int priority) |
| 线程优先级设置 更多... | |
| int | setCurrentThreadName (char *name) |
| 线程名称设置 更多... | |
| int | commandLineParser (int argc, char *argv[], command_arg *arg) |
| 解析程序命令行 更多... | |
| int | commandLineParser1 (const char *carg, command_arg *arg) |
| 命令行参数输入 更多... | |
| int | Rdebug (const char *__restrict __format,...) |
| 运行信息写入日志文件 更多... | |
| int | system_initialize (command_arg *arg) |
| 系统初始化 更多... | |
| int | robot_ok () |
| 系统状态是否正常 更多... | |
机器人控制系统初始化必要接口
| int commandLineParser | ( | int | argc, |
| char * | argv[], | ||
| command_arg * | arg | ||
| ) |
解析程序命令行
| argc | 用于存放命令行参数的个数 |
| argv | 是个字符指针的数组,每个元素都是一个字符指针,指向一个字符串,即命令行中的每一个参数。 |
| arg | 返回解析结果 |
| int commandLineParser1 | ( | const char * | carg, |
| command_arg * | arg | ||
| ) |
命令行参数输入
| carg | 命令行参数,如:”–path /hanbing –port 6665 –iscopy true“。(NULL为默认) |
| arg | 返回解析结果 |
| int initCurrentThreadPriority | ( | int | priority | ) |
线程优先级设置
| priority | 优先级 |
| int initPriority | ( | int | priority | ) |
程序优先级设置
| priority | 优先级 |
| int Rdebug | ( | const char *__restrict | __format, |
| ... | |||
| ) |
运行信息写入日志文件
| __format | 格式化输入 |
| int robot_ok | ( | ) |
系统状态是否正常
| int setCurrentThreadName | ( | char * | name | ) |
线程名称设置
| name | 线程名 |
| int system_initialize | ( | command_arg * | arg | ) |
系统初始化
| arg | 系统启动参数(NULL为默认) |