Field | Type | Label | Description |
name | AutoCfg | 配置项 |
Field | Type | Label | Description |
value | bool | optional |
|
Field | Type | Label | Description |
name | AutoCfg | 配置项 |
|
value | bool | 使能 |
Name | Number | Description |
ARM_POWER | 0 | 开机后自动上电 |
ENABLE_JOINT | 1 | 开机后自动使能手臂 |
INIT_CLAW | 2 | 上电后自动初始化夹爪 |
自动配置项相关服务
Method Name | Request Type | Response Type | Description |
SetAuto | SetAutoRequest | .google.protobuf.Empty | 设置自动配置项 |
GetAuto | GetAutoRequest | GetAutoResponse | 获取自动配置项 |
Field | Type | Label | Description |
system | lebai.system.SystemInfo |
|
|
robot | lebai.system.RobotInfo |
|
|
hardware | lebai.system.HardwareInfo |
|
|
software | lebai.system.SoftwareInfo |
|
|
timestamp | google.protobuf.Timestamp |
|
|
option | Options |
|
Field | Type | Label | Description |
file | string | 备份包文件在文件系统.backup文件夹下的路径 |
|
option | Options |
|
Field | Type | Label | Description |
file | string | 备份包文件在文件系统.backup文件夹下的路径 |
Field | Type | Label | Description |
tmp | bool | 临时数据(任务运行历史、日志) |
|
arm | bool | 手臂配置(精标、关节圈数、伺服参数) |
|
config | bool | 用户配置(安装方向、负载、TCP、速度因子、安全设置、仿真模式) |
|
data | bool | 用户数据(工作空间、场景库、位置库等资源库,以及文件系统中以`.`开头的文件及文件夹) |
|
file | bool | 用户文件(文件系统中非以`.`开头的文件及文件夹) |
|
docker | bool | Docker数据 |
|
ds | bool | DS数据 |
Field | Type | Label | Description |
file | string | 备份包文件在文件系统.backup文件夹下的路径 |
|
option | Options |
|
备份恢复相关服务
Method Name | Request Type | Response Type | Description |
Clean | Options | .google.protobuf.Empty | 清理数据 |
Backup | BackupRequest | .google.protobuf.Empty | 备份 |
GetBackupInfo | GetBackupInfoRequest | BackupInfo | 获取备份包的设备信息 |
Restore | RestoreRequest | .google.protobuf.Empty | 恢复 |
Field | Type | Label | Description |
force | double | 力度 |
|
amplitude | double | 开度 |
|
weight | double | 负载重量(已弃用) |
|
hold_on | bool | 开度是否稳定 |
Field | Type | Label | Description |
address | Address |
|
Field | Type | Label | Description |
value | double |
|
Field | Type | Label | Description |
force | bool | 强制 |
Field | Type | Label | Description |
address | Address |
|
|
value | double |
|
Field | Type | Label | Description |
force | double | optional | 力度 |
amplitude | double | optional | 开度 |
Field | Type | Label | Description |
address | Address |
|
|
value | double |
|
|
relation | lebai.cmp.Relation |
|
Name | Number | Description |
AMPLITUDE | 0 | 目标开度 |
FORCE | 1 | 目标力度 |
VOLTAGE | 2 | 上传电压数字 |
DISTANCE | 3 | 上传激光测距 |
DO | 4 | 接收DO指令 |
ACTUAL_AMPLITUDE | 5 | 当前开度 |
ACTUAL_FORCE | 6 | 当前力度(已弃用) |
WEIGHT | 7 | 当前负载重量(已弃用) |
INIT | 8 | 强制初始化手爪 |
FLAG | 9 | 手爪状态标识符 |
ERROR | 10 | 手爪错误标识符 |
DISABLE_INIT | 90 | 禁用自动初始化 |
SAVE_TRAVEL | 91 | 保存理论行程 |
手爪相关服务
Method Name | Request Type | Response Type | Description |
InitClaw | InitClawRequest | .google.protobuf.Empty | 初始化手爪 |
SetClaw | SetClawRequest | .google.protobuf.Empty | 设置手爪数据 |
GetClaw | .google.protobuf.Empty | Claw | 获取手爪幅度是否稳定 |
SetClawAo | SetClawAoRequest | .google.protobuf.Empty | 设置手爪指定数据 |
GetClawAi | GetClawAiRequest | GetClawAiResponse | 读取手爪指定数据 |
WaitClawAi | WaitClawAiRequest | .google.protobuf.Empty | 等待手爪指定数据 |
Name | Number | Description |
AND | 0 | 与 |
OR | 2 | 或 |
NOT | 3 | 非 |
Name | Number | Description |
EQ | 0 | 等于 |
NEQ | 2 | 不等于 |
LT | 3 | 小于 |
LTE | 4 | 小于或等于 |
GT | 5 | 大于 |
GTE | 6 | 大于或等于 |
Field | Type | Label | Description |
name | string |
|
|
dir | string |
|
Field | Type | Label | Description |
name | string |
|
|
id | uint32 | 内部ID,重命名后ID不变 |
Field | Type | Label | Description |
dirs | Dir | repeated |
|
Field | Type | Label | Description |
dir | string |
|
Field | Type | Label | Description |
names | string | repeated | list of data name |
Field | Type | Label | Description |
name | string |
|
|
dir | string |
|
Field | Type | Label | Description |
data | string | 通用JSON数据 |
Field | Type | Label | Description |
name | string |
|
|
data | string | 通用JSON数据 |
|
dir | string |
|
Field | Type | Label | Description |
from | string |
|
|
to | string |
|
数据库存储相关服务
Method Name | Request Type | Response Type | Description |
CreateDir | Dir | .google.protobuf.Empty | 创建目录 |
UpdateDir | UpdateDirRequest | .google.protobuf.Empty | 目录重命名 |
GetDirs | .google.protobuf.Empty | Dirs | 获取目录列表 |
Field | Type | Label | Description |
mass | double | 负载质量 |
|
cog | lebai.posture.Position | 负载重心偏移位置 |
Field | Type | Label | Description |
name | string |
|
|
data | Payload |
|
|
dir | string |
|
Field | Type | Label | Description |
mass | double | optional | 负载质量 |
cog | lebai.posture.Position | 负载重心偏移位置 |
动力学相关服务
Method Name | Request Type | Response Type | Description |
SavePayload | SavePayloadRequest | .google.protobuf.Empty | 保存/修改/删除负载 |
LoadPayload | .lebai.db.LoadRequest | Payload | 查询负载 |
LoadPayloadList | .lebai.db.LoadListRequest | .lebai.db.LoadListResponse | 查询负载列表 |
SetPayload | SetPayloadRequest | .google.protobuf.Empty | 设置当前负载 |
GetPayload | .google.protobuf.Empty | Payload | 获取当前负载 |
SetGravity | .lebai.posture.Position | .google.protobuf.Empty | 设置当前地心引力方向 |
GetGravity | .google.protobuf.Empty | .lebai.posture.Position | 获取当前地心引力方向 |
Field | Type | Label | Description |
dir | string |
|
|
name | string |
|
|
url | string |
|
Field | Type | Label | Description |
is_dir | bool |
|
|
data | bytes |
|
Field | Type | Label | Description |
dir | string |
|
|
name | string |
|
Field | Type | Label | Description |
name | string |
|
|
is_dir | bool |
|
Field | Type | Label | Description |
dir | string |
|
|
prefix | string |
|
|
suffix | string |
|
Field | Type | Label | Description |
files | FileName | repeated |
|
将zip文件的files解压到文件系统中的dir目录下
Field | Type | Label | Description |
zip | FileIndex | zip文件在文件系统中的路径 |
|
dir | string | zip文件内部目录 |
|
prefix | string |
|
|
suffix | string |
|
Field | Type | Label | Description |
files | FileName | repeated |
|
Field | Type | Label | Description |
from | FileIndex |
|
|
to | FileIndex |
|
Field | Type | Label | Description |
dir | string |
|
|
name | string |
|
|
file | File |
|
将zip文件的files解压到文件系统中的dir目录下
Field | Type | Label | Description |
zip | FileIndex | zip文件在文件系统中的路径 |
|
files | string | repeated | zip文件内部文件 |
dir | string | 文件系统的路径 |
将文件系统中的files压缩到zip文件的dir目录下
Field | Type | Label | Description |
zip | FileIndex | zip文件在文件系统中的路径 |
|
files | string | repeated | 文件系统中的文件或目录 |
dir | string | zip文件内部目录 |
文件存储相关服务
Method Name | Request Type | Response Type | Description |
SaveFile | SaveFileRequest | .google.protobuf.Empty | 保存文件 |
DownloadFile | DownloadFileRequest | .google.protobuf.Empty | 下载文件 |
RenameFile | RenameFileRequest | .google.protobuf.Empty | 重命名文件 |
LoadFile | FileIndex | File | 查询文件 |
LoadFileList | LoadFileListRequest | LoadFileListResponse | 查询文件列表 |
Zip | ZipRequest | .google.protobuf.Empty | 将文件从文件系统中压缩到zip文件中 |
Unzip | UnzipRequest | .google.protobuf.Empty | 将文件从zip文件中解压到文件系统中 |
LoadZipList | LoadZipListRequest | LoadZipListResponse | 查询zip文件中的文件列表 |
固件信息
Field | Type | Label | Description |
sn | string |
|
|
version | string |
|
|
partition | FirmwarePartition |
|
Field | Type | Label | Description |
step | Step |
|
|
progress | uint32 |
|
Field | Type | Label | Description |
address | Address |
|
|
partition | FirmwarePartition |
|
|
file | string | 固件包文件在文件系统.hardware文件夹下的路径 |
Field | Type | Label | Description |
address | Address |
|
|
partition | FirmwarePartition |
|
Name | Number | Description |
EMPTY | 0 | 发送时代表广播,接收时代表无设备 |
JOINT1 | 1 | 关节1(离基座最近) |
JOINT2 | 2 | 关节2 |
JOINT3 | 3 | 关节3 |
JOINT4 | 4 | 关节4 |
JOINT5 | 5 | 关节5 |
JOINT6 | 6 | 关节6 |
JOINT7 | 7 | 关节7 |
FLANGE | 8 | 法兰 |
CLAW | 9 | 夹爪 |
LED | 10 | 灯板 |
DIAL | 13 | 百分表 |
COMM_BOARD | 14 | 通信板 |
TEST_BOARD | 15 | 测试板 |
Name | Number | Description |
A | 0 | |
B | 1 | |
C | 2 | |
UNKNOWN | 3 |
Name | Number | Description |
NONE | 0 | 未升级 |
WAIT | 1 | 准备升级 |
DOWNLOADING | 2 | 正在上传固件 |
FLASHING | 3 | 正在烧录固件 |
DONE | 4 | 完成 |
FAIL | 5 | 失败 |
RESTART | 11 | 重启硬件 |
硬件相关服务
Method Name | Request Type | Response Type | Description |
StartOta | StartOtaRequest | .google.protobuf.Empty | 开始升级 |
SwitchPartition | SwitchPartitionRequest | .google.protobuf.Empty | 切换固件分区 |
GetOtaState | .google.protobuf.Empty | OtaState | 获取升级进度 |
Field | Type | Label | Description |
device | IoDevice |
|
|
pin | uint32 | DI引脚号 |
Field | Type | Label | Description |
state | ButtonState |
|
|
time | uint32 | 长按的毫秒数 或 连击的次数 |
Field | Type | Label | Description |
button | ButtonIndex |
|
|
status | ButtonStatus |
|
Field | Type | Label | Description |
device | IoDevice |
|
|
pin | uint32 |
|
Field | Type | Label | Description |
value | double |
|
Field | Type | Label | Description |
device | IoDevice |
|
|
pin | uint32 |
|
|
count | uint32 |
|
Field | Type | Label | Description |
values | double | repeated |
|
Field | Type | Label | Description |
device | IoDevice |
|
|
pin | uint32 |
|
Field | Type | Label | Description |
mode | DigitalMode |
|
Field | Type | Label | Description |
device | IoDevice |
|
|
pin | uint32 |
|
Field | Type | Label | Description |
value | uint32 |
|
Field | Type | Label | Description |
device | IoDevice |
|
|
pin | uint32 |
|
|
count | uint32 |
|
Field | Type | Label | Description |
values | uint32 | repeated |
|
Field | Type | Label | Description |
device | IoDevice |
|
|
pin | uint32 |
|
|
count | uint32 |
|
Field | Type | Label | Description |
modes | DigitalMode | repeated |
|
Field | Type | Label | Description |
device | IoDevice |
|
|
pin | uint32 |
|
|
value | double |
|
Field | Type | Label | Description |
device | IoDevice |
|
|
pin | uint32 |
|
|
values | double | repeated |
|
Field | Type | Label | Description |
device | IoDevice |
|
|
pin | uint32 |
|
|
mode | DigitalMode |
|
Field | Type | Label | Description |
device | IoDevice |
|
|
pin | uint32 |
|
|
value | uint32 |
|
Field | Type | Label | Description |
device | IoDevice |
|
|
pin | uint32 |
|
|
values | uint32 | repeated |
|
模拟IO类型
Name | Number | Description |
VOLTAGE | 0 | |
CURRENT | 1 |
Name | Number | Description |
EMPTY | 0 | 无动作 |
UP | 1 | 松开长按 |
LONG_DOWN | 2 | 长按 |
CLICK | 3 | 点击 |
数字IO类型
Name | Number | Description |
INPUT | 0 | |
OUTPUT | 1 |
IO设备类型
Name | Number | Description |
ROBOT | 0 | 机箱IO |
FLANGE | 1 | 法兰IO |
EXTRA | 2 | 拓展IO |
ROBOT_BTN | 10 | 机箱按钮DI |
SHOULDER | 11 | 肩部按钮DI |
FLANGE_BTN | 12 | 法兰按钮DI |
IO引脚类型
Name | Number | Description |
DI | 0 | |
DO | 1 | |
AI | 2 | |
AO | 3 |
IO相关服务
Method Name | Request Type | Response Type | Description |
GetDi | GetDioPinRequest | GetDioPinResponse | |
GetDis | GetDioPinsRequest | GetDioPinsResponse | |
GetDo | GetDioPinRequest | GetDioPinResponse | |
GetDos | GetDioPinsRequest | GetDioPinsResponse | |
SetDo | SetDoPinRequest | .google.protobuf.Empty | |
SetDos | SetDoPinsRequest | .google.protobuf.Empty | |
GetAi | GetAioPinRequest | GetAioPinResponse | |
GetAis | GetAioPinsRequest | GetAioPinsResponse | |
GetAo | GetAioPinRequest | GetAioPinResponse | |
GetAos | GetAioPinsRequest | GetAioPinsResponse | |
SetAo | SetAoPinRequest | .google.protobuf.Empty | |
SetAos | SetAoPinsRequest | .google.protobuf.Empty | |
EnableButton | ButtonIndex | .google.protobuf.Empty | |
DisableButton | ButtonIndex | .google.protobuf.Empty | |
SubButtonsStatus | .google.protobuf.Empty | ButtonsStatus stream | |
SetDioMode | SetDioModeRequest | .google.protobuf.Empty | |
GetDioMode | GetDioModeRequest | GetDioModeResponse | |
GetDiosMode | GetDiosModeRequest | GetDiosModeResponse |
Field | Type | Label | Description |
o | lebai.posture.CartesianPose |
|
|
x | lebai.posture.CartesianPose |
|
|
xy | lebai.posture.CartesianPose |
|
Field | Type | Label | Description |
poses | lebai.posture.CartesianPose | repeated |
|
关节DH参数
Field | Type | Label | Description |
a | double |
|
|
alpha | double |
|
|
d | double |
|
|
theta | double |
|
Field | Type | Label | Description |
params | DhParam | repeated |
|
运动数据
Field | Type | Label | Description |
actual_joint_pose | double | repeated |
|
actual_joint_speed | double | repeated |
|
actual_joint_acc | double | repeated |
|
actual_joint_torque | double | repeated |
|
target_joint_pose | double | repeated |
|
target_joint_speed | double | repeated |
|
target_joint_acc | double | repeated |
|
target_joint_torque | double | repeated |
|
actual_tcp_pose | lebai.posture.CartesianPose |
|
|
target_tcp_pose | lebai.posture.CartesianPose |
|
|
actual_flange_pose | lebai.posture.CartesianPose |
|
运动因子
Field | Type | Label | Description |
speed_factor | int32 | 速度因子(0~100) |
Field | Type | Label | Description |
name | string |
|
|
data | lebai.posture.CartesianPose |
|
|
dir | string |
|
运动学相关服务
Method Name | Request Type | Response Type | Description |
SaveTcp | SaveTcpRequest | .google.protobuf.Empty | 保存/修改/删除工具中心点 |
LoadTcp | .lebai.db.LoadRequest | .lebai.posture.CartesianPose | 查询工具中心点 |
LoadTcpList | .lebai.db.LoadListRequest | .lebai.db.LoadListResponse | 查询工具中心点列表 |
SetDh | DhParams | .google.protobuf.Empty | 设置DH参数 |
GetDh | .google.protobuf.Empty | DhParams | 获取DH参数 |
SetKinFactor | KinFactor | .google.protobuf.Empty | 设置运动因子 |
GetKinFactor | .google.protobuf.Empty | KinFactor | 获取运动因子 |
GetKinData | .google.protobuf.Empty | KinData | 获取运动数据 |
SubKinData | .lebai.SubscribeRequest | KinData stream | 订阅运动数据 |
CalcFrame | CalcFrameRequest | .lebai.posture.CartesianPose | 三点采样计算原点特征 |
CalcTcp | CalcTcpRequest | .lebai.posture.CartesianPose | 三点采样计算工具中心点 |
SetTcp | .lebai.posture.CartesianPose | .google.protobuf.Empty | 设置工具中心点 |
GetTcp | .google.protobuf.Empty | .lebai.posture.CartesianPose | 获取工具中心点 |
Field | Type | Label | Description |
done | bool | 未开始 或 已完成 |
|
stdout | string | 调试信息 |
|
stderr | string | 警告信息 |
|
code | int32 | 返回码,非0为失败 |
Field | Type | Label | Description |
interval_min | uint64 | 保证每次推送至少间隔interval时间(ms) |
|
interval_max | uint64 | 保证interval时间(ms)内至少推送1次 |
Field | Type | Label | Description |
mode | FanMode |
|
LED样式
Field | Type | Label | Description |
mode | LedMode |
|
|
speed | LedSpeed |
|
|
colors | LedColor | repeated |
|
声光交互样式
Field | Type | Label | Description |
led | LedData |
|
|
voice | VoiceKind |
|
|
volume | Volume |
|
机器人状态对应的声光交互样式
Field | Type | Label | Description |
state | lebai.system.RobotState |
|
|
style | LedStyle |
|
声光交互样式集
Field | Type | Label | Description |
styles | LedStyles.StylesEntry | repeated |
|
Field | Type | Label | Description |
key | int32 |
|
|
value | LedStyle |
|
Field | Type | Label | Description |
name | string |
|
|
data | LedStyle |
|
|
dir | string |
|
声音样式
Field | Type | Label | Description |
voice | VoiceKind |
|
|
volume | Volume |
|
风扇工作模式
Name | Number | Description |
HOLD_FAN | 0 | 无动作 |
CLOSE_FAN | 1 | 关闭 |
OPEN_FAN | 2 | 打开 |
LED颜色
Name | Number | Description |
RED | 0 | #FF0000 |
GREEN | 1 | #00FF00 |
BLUE | 2 | #0000FF |
PINK | 3 | #FF00FF |
YELLOW | 4 | #FFFF00 |
CYAN | 5 | #00FFF |
GRAY | 6 | #808080 |
BROWN | 7 | #A52A2A |
ORANGE | 8 | #FFA500 |
GOLD | 9 | #FFD700 |
INDIGO | 10 | #4B0082 |
LIGHT_SKY_BLUE | 11 | #87CEFA |
DARK_VIOLET | 12 | #9400D3 |
CHOCOLATE | 13 | #D2691E |
LIGHT_RED | 14 | #FF9E9A |
WHITE | 15 | #FFFFFF |
LED工作模式
Name | Number | Description |
HOLD_LED | 0 | 无动作 |
CLOSE_LED | 1 | 关闭 |
OPEN_LED | 2 | 常亮 |
BREATH | 3 | 呼吸 |
FOUR | 4 | 四块流水 |
WATER | 5 | 同色流水 |
BLINK | 6 | 闪烁 |
LED运行速度
Name | Number | Description |
HOLD_LED_SPEED | 0 | 无动作 |
FAST | 1 | 快速 |
NORMAL | 2 | 中速 |
SLOW | 3 | 慢速 |
语音ID
Name | Number | Description |
OFF | 0 | |
BOOTING | 1 | |
STOPING | 2 | |
COLLISION_DETECTED | 3 | |
UPGRADE | 4 | |
TEACH_MODE_ON | 5 | |
TEACH_MODE_OFF | 6 | |
FINE_TUNNING_ON | 7 | |
FINE_TUNNING_OFF | 8 | |
FINE_TUNNING_CHANGE | 9 | |
BORING | 10 | |
CUSTOM1 | 11 | |
CUSTOM2 | 12 | |
CUSTOM3 | 13 | |
CUSTOM4 | 14 | |
CUSTOM5 | 15 |
语音音量
Name | Number | Description |
MUTE | 0 | 静音 |
LOW | 1 | 低 |
MID | 2 | 中 |
HIGH | 3 | 高 |
灯板声光风扇相关服务
Method Name | Request Type | Response Type | Description |
SaveLedStyle | SaveLedStyleRequest | .google.protobuf.Empty | 保存/修改/删除声光样式 |
LoadLedStyle | .lebai.db.LoadRequest | LedStyle | 查询声光样式 |
LoadLedStyleList | .lebai.db.LoadListRequest | .lebai.db.LoadListResponse | 查询声光样式列表 |
SetLedStyle | LedStyleItem | .google.protobuf.Empty | |
SetLedStyles | LedStyles | .google.protobuf.Empty | |
GetLedStyles | .google.protobuf.Empty | LedStyles | |
SetLed | LedData | .google.protobuf.Empty | |
SetVoice | VoiceData | .google.protobuf.Empty | |
SetFan | FanData | .google.protobuf.Empty |
Field | Type | Label | Description |
level | Level |
|
|
kind | Kind | 信息类型,前端提供国际化 |
|
detail | string | 详细信息,供内部人员查看 |
|
time | google.protobuf.Timestamp | 消息产生时间 |
Field | Type | Label | Description |
messages | Message | repeated |
|
消息类型
Name | Number | Description |
ESTOP | 0 | 急停 |
HARD_ESTOP_LOCK | 1 | 请释放硬件急停开关后重试 |
DRIVER_ERROR | 2 | 硬件驱动故障 |
REACH_JOINT_LIMIT | 3 | 关节超出临界位置 |
COLLISION_DETECTED | 4 | 机器人可能被碰撞 |
JONIT_SPEED_EXCEED | 5 | 关节速度超出限制 |
TRAJECTOR_ERROR | 6 | 机器人运动规划出错 |
OTA_FAILED | 7 | OTA升级失败 |
消息等级
Name | Number | Description |
INFO | 0 | 提示 |
WARN | 1 | 警告 |
ERROR | 2 | 故障 |
消息相关服务
Method Name | Request Type | Response Type | Description |
GetMessages | .google.protobuf.Empty | Messages | |
SubMessage | .google.protobuf.Empty | Message stream |
Field | Type | Label | Description |
device | string |
|
|
pin | string |
|
Field | Type | Label | Description |
value | bool |
|
Field | Type | Label | Description |
device | string |
|
|
pin | string |
|
|
count | uint32 |
|
Field | Type | Label | Description |
values | bool | repeated |
|
Field | Type | Label | Description |
device | string |
|
|
pin | string |
|
Field | Type | Label | Description |
value | uint32 |
|
Field | Type | Label | Description |
device | string |
|
|
pin | string |
|
|
count | uint32 |
|
Field | Type | Label | Description |
values | uint32 | repeated |
|
Field | Type | Label | Description |
device | string |
|
Field | Type | Label | Description |
device | string |
|
|
name | string |
|
Modbus设备
Field | Type | Label | Description |
kind | ModbusKind | 类型 |
|
address | string | IP地址 或 串口地址 |
|
port | uint32 | TCP端口号 |
|
slave_id | uint32 | ModBus从机地址 |
Modbus寄存器
Field | Type | Label | Description |
kind | ModbusRegisterKind |
|
|
address | uint32 | ModBus内存地址 |
Field | Type | Label | Description |
device | string |
|
|
name | string |
|
|
data | ModbusRegister |
|
Field | Type | Label | Description |
name | string |
|
|
data | Modbus |
|
Field | Type | Label | Description |
device | string |
|
|
pin | string |
|
|
value | bool |
|
Field | Type | Label | Description |
device | string |
|
|
pin | string |
|
|
values | bool | repeated |
|
Field | Type | Label | Description |
device | string |
|
|
timeout | uint32 | 超时时间,默认不超时 |
Field | Type | Label | Description |
device | string |
|
|
pin | string |
|
|
value | uint32 |
|
Field | Type | Label | Description |
device | string |
|
|
pin | string |
|
|
values | uint32 | repeated |
|
Modbus设备类型
Name | Number | Description |
ROBOT | 0 | 机箱IO |
FLANGE | 1 | 法兰IO |
EXTRA | 2 | 拓展IO |
MODBUS_FLANGE | 3 | 法兰ModBus |
MODBUS_RTU | 4 | ModBus RTU |
MODBUS_TCP | 5 | ModBus TCP |
Modbus寄存器类型
Name | Number | Description |
DISCRETE_INPUT | 0 | DI |
COIL | 1 | DO |
INPUT_REGISTER | 2 | AI |
HOLDING_REGISTER | 3 | AO |
Modbus相关服务
Field | Type | Label | Description |
name | string |
|
|
dir | string |
|
Field | Type | Label | Description |
threshold | double | 启动力阈值 |
|
damping | double | 阻尼系数 |
|
mass | double | 物体重量 |
Field | Type | Label | Description |
state | MotionState |
|
Field | Type | Label | Description |
pose | double |
|
|
velocity | double | optional |
|
acc | double | optional |
|
Field | Type | Label | Description |
id | uint32 |
|
Field | Type | Label | Description |
velocity | double |
|
|
acc | double |
|
|
time | double |
|
|
radius | double |
|
Field | Type | Label | Description |
joints | JointMove | repeated |
|
duration | double | 执行时间(0.01秒的倍数) |
Field | Type | Label | Description |
pose | lebai.posture.Pose |
|
|
param | MoveParam |
|
Field | Type | Label | Description |
name | string |
|
|
dir | string |
|
Field | Type | Label | Description |
pose_via | lebai.posture.Pose |
|
|
pose | lebai.posture.Pose |
|
|
rad | double |
|
|
param | MoveParam |
|
Field | Type | Label | Description |
name | string |
|
|
data | Trajectory |
|
|
dir | string |
|
Field | Type | Label | Description |
threshold | double | optional | 启动力阈值 |
damping | double | optional | 阻尼系数 |
mass | double | optional | 物体重量 |
Field | Type | Label | Description |
sensor | ForceSensor |
|
Field | Type | Label | Description |
speed | lebai.posture.JointPose |
|
|
param | SpeedParam |
|
Field | Type | Label | Description |
speed | lebai.posture.CartesianPose |
|
|
param | SpeedParam |
|
|
frame | lebai.posture.CartesianFrame | 参考系方向 |
Field | Type | Label | Description |
acc | double |
|
|
time | double |
|
|
constrained | bool |
|
Field | Type | Label | Description |
limit | lebai.posture.CartesianPose | 限速 |
|
wrench | Wrench | 控制力 |
Field | Type | Label | Description |
kind | PvatKind |
|
|
duration | double | 采样周期(0.01秒的倍数) |
Field | Type | Label | Description |
kind | PvatKind |
|
|
data | MovePvatRequest | repeated |
|
Field | Type | Label | Description |
force | lebai.posture.Position | 受力大小 |
|
torque | lebai.posture.Position | 扭矩大小 |
Name | Number | Description |
DISABLE | 0 | 禁用外力传感器 |
INSTANTANEOUS | 1 | 内部瞬时算法估算 |
CONTINUOUS | 2 | 内部连续算法估算 |
WEIGHT1 | 11 | 一维重力传感器 |
Name | Number | Description |
WAIT | 0 | |
RUNNING | 1 | |
FINISHED | 2 |
Name | Number | Description |
PT | 0 | |
PVT | 1 | |
PVAT | 2 |
机器人运动相关服务
Field | Type | Label | Description |
acc_position_kp | double |
|
|
acc_speed_kp | double |
|
|
acc_speed_it | double |
|
|
uni_position_kp | double |
|
|
uni_speed_kp | double |
|
|
uni_speed_it | double |
|
|
dec_position_kp | double |
|
|
dec_speed_kp | double |
|
|
dec_speed_it | double |
|
Field | Type | Label | Description |
valids | bool | repeated |
|
伺服参数
Field | Type | Label | Description |
position_kp | double |
|
|
speed_kp | double |
|
|
speed_it | double |
|
|
torque_cmd_filter | double |
|
Field | Type | Label | Description |
params | ServoParam | repeated |
|
Field | Type | Label | Description |
params | ExtraServoParam | repeated |
|
valids | bool | repeated |
|
Field | Type | Label | Description |
pose | double | repeated |
|
valids | bool | repeated |
|
电机运行模式
Name | Number | Description |
POSITION | 0 | 位置环 |
TORQUE | 1 | 扭矩环 |
SPEED | 2 | 速度环 |
关节电机相关服务
Method Name | Request Type | Response Type | Description |
SetServoParams | ServoParams | .google.protobuf.Empty | 设置伺服参数 |
GetServoParams | .google.protobuf.Empty | ServoParams | 获取伺服参数 |
FindZero | .google.protobuf.Empty | .google.protobuf.Empty | 导轨找零 |
SetZero | SetZeroRequest | .google.protobuf.Empty | 设置关节零位 |
SetExtraServoParams | SetExtraServoParamsRequest | .google.protobuf.Empty | 设置所有extra伺服参数 |
ResetExtraServoParams | ResetExtraServoParamsRequest | .google.protobuf.Empty | 重置extra伺服参数 |
Field | Type | Label | Description |
name | string |
|
|
mac | string |
|
|
ip | string |
|
|
online | bool |
|
Field | Type | Label | Description |
devices | DeviceInfo | repeated | 设备列表 |
多机协同相关服务
Method Name | Request Type | Response Type | Description |
DiscoverRobots | .google.protobuf.Empty | DiscoverRobotsResponse | 设备发现 |
Field | Type | Label | Description |
name | string |
|
Field | Type | Label | Description |
name | string | 插件名称 |
|
description | string | 详细介绍 |
|
homepage | string | 项目主页网址 |
|
auto_restart | bool | daemon异常退出后,是否自动启动 |
|
web | bool | 具备Web功能 |
|
daemon | bool | 具备Daemon功能 |
|
cmd | bool | 具备Cmd功能 |
|
enable | bool | 启用插件 |
Field | Type | Label | Description |
plugins | PluginInfo | repeated |
|
Field | Type | Label | Description |
name | string |
|
|
params | string | repeated |
|
插件相关服务
Method Name | Request Type | Response Type | Description |
LoadPlugin | PluginIndex | PluginInfo | 查询插件信息 |
LoadPlugins | .google.protobuf.Empty | Plugins | 查询已安装的插件列表 |
EnablePlugin | PluginIndex | .lebai.CommandStdout | 启用插件 |
DisablePlugin | PluginIndex | .lebai.CommandStdout | 禁用插件 |
RestartPluginDaemon | PluginIndex | .google.protobuf.Empty | 重启守护程序 |
GetPluginDaemonStdout | PluginIndex | .lebai.CommandStdout | 获取守护程序输出 |
RunPluginCmd | RunPluginCmdRequest | .lebai.CommandStdout | 执行命令行程序 |
笛卡尔空间参考系
Field | Type | Label | Description |
position_kind | CartesianFrame.Kind |
|
|
position | Position | 自定义位置,仅position_kind=CUSTOM时生效 |
|
rotation_kind | CartesianFrame.Kind |
|
|
rotation | Rotation | 自定义姿态,仅rotation_kind=CUSTOM时生效 |
笛卡尔空间 位姿4*4矩阵
Field | Type | Label | Description |
m11 | double |
|
|
m12 | double |
|
|
m13 | double |
|
|
m14 | double |
|
|
m21 | double |
|
|
m22 | double |
|
|
m23 | double |
|
|
m24 | double |
|
|
m31 | double |
|
|
m32 | double |
|
|
m33 | double |
|
|
m34 | double |
|
|
m41 | double |
|
|
m42 | double |
|
|
m43 | double |
|
|
m44 | double |
|
笛卡尔空间 位姿
Field | Type | Label | Description |
position | Position |
|
|
rotation | Rotation |
|
欧拉角
Field | Type | Label | Description |
x | double |
|
|
y | double |
|
|
z | double |
|
Field | Type | Label | Description |
pose | Pose |
|
|
refer | JointPose |
|
Field | Type | Label | Description |
pose | Pose | 关节空间 或 笛卡尔空间 |
|
delta | Pose | 在frame姿态方向的增量 |
Field | Type | Label | Description |
from | Pose |
|
|
from_to | Pose |
|
关节空间参考系
Field | Type | Label | Description |
kind | JointFrame.Kind |
|
|
pose | JointPose | 自定义关节位置,仅kind=CUSTOM时生效 |
关节空间 关节角
Field | Type | Label | Description |
joint | double | repeated | 关节度数(PI代表180°) |
枚举 机器人空间
Field | Type | Label | Description |
kind | Pose.Kind |
|
|
cart | CartesianPose | 笛卡尔空间位姿,仅kind=CARTESIAN时生效 |
|
cart_frame_index | lebai.db.LoadRequest | 笛卡尔空间参考系索引,仅kind=CARTESIAN时生效 |
|
cart_frame | CartesianFrame | 笛卡尔空间参考系,仅内部使用,仅kind=CARTESIAN时生效 |
|
joint | JointPose | 关节空间位姿,仅kind=CARTESIAN时表示反解的参考位置 |
Field | Type | Label | Description |
pose | Pose |
|
位置
Field | Type | Label | Description |
x | double |
|
|
y | double |
|
|
z | double |
|
四元组
Field | Type | Label | Description |
w | double |
|
|
i | double |
|
|
j | double |
|
|
k | double |
|
枚举 姿态
Field | Type | Label | Description |
euler_zyx | EulerZyx |
|
|
quaternion | Quaternion |
|
|
matrix | RotationMatrix |
|
姿态3*3矩阵
Field | Type | Label | Description |
m11 | double |
|
|
m12 | double |
|
|
m13 | double |
|
|
m21 | double |
|
|
m22 | double |
|
|
m23 | double |
|
|
m31 | double |
|
|
m32 | double |
|
|
m33 | double |
|
Field | Type | Label | Description |
name | string |
|
|
data | CartesianFrame |
|
|
dir | string |
|
Field | Type | Label | Description |
name | string |
|
|
data | Pose |
|
|
dir | string |
|
笛卡尔空间参考系类型
Name | Number | Description |
BASE | 0 | 基座 |
FLANGE | 1 | 当前位置的法兰平面,以收到指令时为准 |
TCP | 2 | 当前位置的TCP,以收到指令时为准 |
LAST_FLANGE | 11 | 上个目标点的法兰平面 |
LAST_TCP | 12 | 上个目标点的TCP |
CUSTOM | 99 | 自定义 |
关节空间参考系类型
Name | Number | Description |
BASE | 0 | 关节零位 |
CURRENT | 1 | 当前位置的关节位置,以收到指令时为准 |
LAST | 11 | 上个目标点的关节位置 |
CUSTOM | 99 | 指定关节位置 |
位姿类型,默认无效
Name | Number | Description |
UNKNOWN | 0 | |
JOINT | 1 | |
CARTESIAN | 2 |
位姿算法相关服务
Method Name | Request Type | Response Type | Description |
SavePose | SavePoseRequest | .google.protobuf.Empty | 保存/修改/删除路点 |
LoadPose | .lebai.db.LoadRequest | Pose | 查询路点 |
LoadPoseList | .lebai.db.LoadListRequest | .lebai.db.LoadListResponse | 查询路点列表 |
SaveFrame | SaveFrameRequest | .google.protobuf.Empty | 保存/修改/删除特征 |
LoadFrame | .lebai.db.LoadRequest | CartesianFrame | 查询特征 |
LoadFrameList | .lebai.db.LoadListRequest | .lebai.db.LoadListResponse | 查询特征列表 |
GetForwardKin | PoseRequest | CartesianPose | 正解 |
GetInverseKin | GetInverseKinRequest | JointPose | 反解 |
GetPoseTrans | GetPoseTransRequest | CartesianPose | 位姿乘 |
GetPoseAdd | GetPoseAddRequest | CartesianPose | 位姿加 |
GetPoseInverse | PoseRequest | CartesianPose | 位姿逆 |
Field | Type | Label | Description |
time | string |
|
|
auth | string |
|
Field | Type | Label | Description |
status | int32 |
|
Field | Type | Label | Description |
auth | Auth |
|
Field | Type | Label | Description |
auth | Auth |
|
|
info | lebai.system.RobotInfo |
|
Field | Type | Label | Description |
cup | string |
|
质量平台相关服务
Method Name | Request Type | Response Type | Description |
BoxTest | EmptyRequest | BoxTestResponse | 主机箱测试 |
InitRobot | InitRobotRequest | InitRobotResponse | 整机初始化 |
Field | Type | Label | Description |
max_a | double |
|
|
max_v | double |
|
|
eq_radius | double |
|
Field | Type | Label | Description |
action | CollisionDetectorAction | 碰撞后执行操作 |
|
pause_time | uint32 | action为PAUSE时生效,暂停时间(s) |
|
sensitivity | uint32 | 灵敏度[0~100] |
碰撞监测误差
Field | Type | Label | Description |
diffs | double | repeated |
|
Field | Type | Label | Description |
min_position | double |
|
|
max_position | double |
|
|
max_a | double |
|
|
max_v | double |
|
Field | Type | Label | Description |
joints | JointLimit | repeated |
|
碰撞后执行操作
Name | Number | Description |
ESTOP | 0 | 碰撞后急停 |
PAUSE | 1 | 碰撞后暂停 |
STOP_MOVE | 2 | 碰撞后停止运动 |
NONE | 99 | 关闭碰撞监测 |
操作安全相关服务
Method Name | Request Type | Response Type | Description |
EnableCollisionDetector | .google.protobuf.Empty | .google.protobuf.Empty | 使能碰撞检测 |
DisableCollisionDetector | .google.protobuf.Empty | .google.protobuf.Empty | 临时禁用碰撞检测 |
SetCollisionTorqueDiff | CollisionTorqueDiff | .google.protobuf.Empty | 设置碰撞监测误差 |
GetCollisionTorqueDiff | .google.protobuf.Empty | CollisionTorqueDiff | 读取碰撞监测误差 |
SetCollisionDetector | CollisionDetector | .google.protobuf.Empty | 设置碰撞监测 |
GetCollisionDetector | .google.protobuf.Empty | CollisionDetector | 读取碰撞监测 |
EnableLimit | .google.protobuf.Empty | .google.protobuf.Empty | 使能限位检测 |
DisableLimit | .google.protobuf.Empty | .google.protobuf.Empty | 临时禁用限位检测 |
SetJointsLimit | JointsLimit | .google.protobuf.Empty | 设置关节限位 |
GetJointsLimit | .google.protobuf.Empty | JointsLimit | 读取关节限位 |
SetCartLimit | CartesianLimit | .google.protobuf.Empty | 设置空间限位 |
GetCartLimit | .google.protobuf.Empty | CartesianLimit | 读取空间限位 |
Field | Type | Label | Description |
device | string |
|
|
len | uint32 | 单次接收的最大缓冲长度 |
Field | Type | Label | Description |
data | uint32 | repeated | u8数组 |
Field | Type | Label | Description |
device | string |
|
|
baud_rate | uint32 | 波特率,默认115200 |
Field | Type | Label | Description |
device | string |
|
|
parity | Parity | 校验位 |
Field | Type | Label | Description |
device | string |
|
|
timeout | uint32 | 超时时间,默认不超时 |
Field | Type | Label | Description |
device | string |
|
|
data | uint32 | repeated | u8数组 |
Name | Number | Description |
None | 0 | No parity bit. |
Odd | 1 | Parity bit sets odd number of 1 bits. |
Even | 2 | Parity bit sets even number of 1 bits. |
串口相关服务
Method Name | Request Type | Response Type | Description |
SetSerialTimeout | SetSerialTimeoutRequest | .google.protobuf.Empty | 设置超时时间 |
SetSerialBaudRate | SetSerialBaudRateRequest | .google.protobuf.Empty | 设置波特率 |
SetSerialParity | SetSerialParityRequest | .google.protobuf.Empty | 设置校验位 |
WriteSerial | WriteSerialRequest | .google.protobuf.Empty | 发送数据 |
ReadSerial | ReadSerialRequest | ReadSerialResponse | 读取数据 |
Field | Type | Label | Description |
id | uint32 |
|
|
dir | string |
|
|
name | string |
|
Field | Type | Label | Description |
id | uint32 |
|
Field | Type | Label | Description |
list | Shortcut | repeated |
|
快捷方式相关服务
Method Name | Request Type | Response Type | Description |
SetShortPose | Shortcut | .google.protobuf.Empty | 设置快捷路点 |
GetShortPose | ShortcutIndex | Shortcut | 获取单个快捷路点 |
GetShortPoses | .google.protobuf.Empty | ShortcutList | 获取所有快捷路点 |
SetShortTask | Shortcut | .google.protobuf.Empty | 设置快捷任务 |
GetShortTask | ShortcutIndex | Shortcut | 获取单个快捷任务 |
GetShortTasks | .google.protobuf.Empty | ShortcutList | 获取所有快捷任务 |
Field | Type | Label | Description |
key | uint32 | 取值范围0~255 |
Field | Type | Label | Description |
value | int32 |
|
Field | Type | Label | Description |
key | uint32 | 取值范围0~255 |
|
len | uint32 |
|
Field | Type | Label | Description |
values | int32 | repeated |
|
Field | Type | Label | Description |
key | uint32 | 取值范围0~255 |
|
value | int32 |
|
Field | Type | Label | Description |
key | uint32 | 取值范围0~255 |
|
values | int32 | repeated |
|
Field | Type | Label | Description |
key | uint32 | 取值范围0~255 |
|
value | int32 |
|
|
relation | lebai.cmp.Relation |
|
信号量相关服务
Method Name | Request Type | Response Type | Description |
SetSignal | SetSignalRequest | .google.protobuf.Empty | |
SetSignals | SetSignalsRequest | .google.protobuf.Empty | |
GetSignal | GetSignalRequest | GetSignalResponse | |
GetSignals | GetSignalsRequest | GetSignalsResponse | |
WaitSignal | WaitSignalRequest | .google.protobuf.Empty | |
AddSignal | SetSignalRequest | .google.protobuf.Empty |
Field | Type | Label | Description |
prefix | string |
|
Field | Type | Label | Description |
key | string |
|
|
value | string |
|
Field | Type | Label | Description |
key | string |
|
Field | Type | Label | Description |
items | Item | repeated |
|
用户数据存储相关服务
Method Name | Request Type | Response Type | Description |
SetItem | Item | .google.protobuf.Empty | 设置kv数据 |
GetItem | ItemIndex | Item | 获取kv数据 |
GetItems | GetItemsRequest | Items | 获取指定前缀的全部kv数据 |
Field | Type | Label | Description |
name | string |
|
|
data | Structure |
|
|
dir | string |
|
Field | Type | Label | Description |
active | bool | 激活状态 |
|
name | string | 名称 |
|
kind | lebai.system.ArmModel | 型号 |
|
dof | uint32 | 自由度 |
|
dh | string | DH参数 |
|
dyn | string | 动力学参数 |
|
servo | string | 伺服参数 |
机器人手臂相关服务
Method Name | Request Type | Response Type | Description |
SaveStructure | SaveStructureRequest | .google.protobuf.Empty | 保存机器人模型 |
LoadStructure | .lebai.db.LoadRequest | Structure | 查询机器人模型 |
LoadStructureList | .lebai.db.LoadListRequest | .lebai.db.LoadListResponse | 查询机器人模型列表 |
Field | Type | Label | Description |
brand | string |
|
|
num | uint32 | CPU核心数 |
|
frequency | uint64 | CPU核心频率MHz |
|
temperature | float | 各个核心中的最高温度 |
|
critical | float | CPU能容忍的临界温度 |
Field | Type | Label | Description |
invalid | bool |
|
|
sn | string |
|
|
version | string |
|
|
partition | lebai.hardware.FirmwarePartition |
|
|
di_num | uint32 |
|
|
do_num | uint32 |
|
|
dio_num | uint32 |
|
|
ai_num | uint32 |
|
|
ao_num | uint32 |
|
Field | Type | Label | Description |
name | string | 硬盘节点 |
|
used | uint64 | 已用字节 |
|
total | uint64 | 总共字节 |
Field | Type | Label | Description |
prefix | string |
|
Field | Type | Label | Description |
devices | string | repeated |
|
Field | Type | Label | Description |
reason | EstopReason |
|
Field | Type | Label | Description |
state | RobotState |
|
Field | Type | Label | Description |
comboard | DeviceInfo |
|
|
joints | DeviceInfo | repeated |
|
flange | DeviceInfo |
|
|
led | DeviceInfo |
|
|
extra_io | DeviceInfo |
|
Field | Type | Label | Description |
data | string |
|
Field | Type | Label | Description |
used | uint64 | 已用字节 |
|
total | uint64 | 总共字节 |
|
used_swap | uint64 | 已用字节 |
|
total_swap | uint64 | 总共字节 |
Field | Type | Label | Description |
ifname | string | 网卡接口名 |
|
kind | NetworkKind | 网卡接口类型 |
|
mac | string | MAC地址 |
|
ips | string | repeated | IP地址 |
virtual_ips | string | repeated | 虚拟IP地址 |
gateway | string | 网关地址 |
|
netmask | string | 子网掩码 |
物理数据
Field | Type | Label | Description |
joint_temp | double | repeated | 关节温度 |
joint_voltage | double | repeated | 关节电压 |
flange_voltage | double | 法兰电压 |
Field | Type | Label | Description |
name | string | 设备名称(唯一),形如 `lebai-123456` |
|
mac | string | 设备物理唯一标识(以太网 MAC 地址) |
|
box_model | BoxModel | 控制箱型号 |
|
box_sn | string | 控制箱序列号 `C` |
|
arm_model | ArmModel | 手臂型号 |
|
arm_sn | string | 手臂序列号 `R` |
Field | Type | Label | Description |
ifname | string | 网卡接口名 |
|
ip | string | IP地址 |
Field | Type | Label | Description |
software | SoftwareInfo.SoftwareEntry | repeated |
|
Field | Type | Label | Description |
key | string |
|
|
value | SoftwareItemInfo |
|
Field | Type | Label | Description |
version | string |
|
|
branch | string |
|
Field | Type | Label | Description |
name | string |
|
|
kernel_version | string |
|
|
os_version | string |
|
|
host_name | string |
|
|
memory | MemoryInfo |
|
|
disks | DiskInfo | repeated |
|
networks | NetworkInfo | repeated |
|
cpu | CpuInfo |
|
Name | Number | Description |
J6M1 | 0 | 6轴常规臂。简写时可省略 |
J6L1 | 1 | 6轴加长臂。简写为L1 |
J5L1 | 11 | 5轴加长臂 |
J5T1 | 51 | 5轴轨道臂 |
Name | Number | Description |
LM3 | 0 | 初代常规机箱 |
LA3 | 10 | 树莓派机箱 |
急停原因
Name | Number | Description |
NONE | 0 | 未急停 |
SYSTEM | 2 | 软件 |
MANUAL | 3 | 手动调用接口 |
HARD_ESTOP | 4 | 硬急停按钮 |
COLLISION | 5 | 碰撞 |
JOINT_LIMIT | 6 | 关节限位 |
EXCEED | 7 | 超速 |
TRAJECTORY_ERROR | 8 | 运动规划错误 |
COMM_ERROR | 11 | 通信故障 |
CAN_ERROR | 12 | CAN通信故障 |
JOINT_ERROR | 13 | 关节故障 |
Name | Number | Description |
UNKNOWN | 0 | 未知 |
LOOPBACK | 1 | 本地回环 |
ETHERNET | 2 | 以太网 |
WIRELESS | 3 | 无线网 |
CELLULAR | 4 | 蜂窝网 |
USB | 5 | USB共享网络 |
DOCKER | 11 | Docker网络 |
机器人状态
Name | Number | Description |
DISCONNECTED | 0 | 已断开连接 |
ESTOP | 1 | 急停停止状态 |
BOOTING | 2 | 启动中 |
ROBOT_OFF | 3 | 电源关闭 |
ROBOT_ON | 4 | 电源开启 |
IDLE | 5 | 空闲中 |
PAUSED | 6 | 已暂停 |
MOVING | 7 | 机器人运动中 |
UPDATING | 8 | 更新固件中 |
STARTING | 9 | 启动中 |
STOPPING | 10 | 停止中 |
TEACHING | 11 | 示教中 |
STOP | 12 | 普通停止 |
系统控制相关服务
Field | Type | Label | Description |
name | string |
|
|
is_parallel | bool | 是否以子任务形式同时运行多个任务 |
|
loop_to | uint32 | 循环次数,默认0永久循环运行 |
|
dir | string |
|
|
kind | TaskKind |
|
|
params | string | repeated |
|
Field | Type | Label | Description |
id | uint32 |
|
|
block_id | string | 代码高亮块ID |
|
event_id | uint32 | 事件ID,已弃用 |
|
state | TaskState | 任务运行状态 |
|
loop_count | uint32 | 已完成的循环次数 |
|
loop_to | uint32 | 循环次数,0为无限循环 |
|
is_parallel | bool | 是否以子任务形式同时运行多个任务 |
|
is_simu | bool | 是否为仿真模式 |
|
stdout | string | 输出 |
|
started_at | google.protobuf.Timestamp | 启动运行时间 |
|
ended_at | google.protobuf.Timestamp | 结束运行时间 |
|
pause_at | google.protobuf.Timestamp | 暂停运行时间 |
|
pre_pause | uint32 | 之前总共暂停用时ms,不包括本次暂停 |
|
kind | TaskKind | 任务类型 |
|
dir | string | 任务存储目录 |
|
name | string | 任务名称 |
|
params | string | repeated | 任务运行参数 |
Field | Type | Label | Description |
ids | uint32 | repeated |
|
Field | Type | Label | Description |
id | uint32 |
|
Field | Type | Label | Description |
id | uint32 |
|
|
done | bool |
|
|
stdout | string |
|
Field | Type | Label | Description |
tasks | Task | repeated |
|
任务类型
Name | Number | Description |
LUA | 0 | Lua |
APP | 10 | 应用程序 |
任务运行状态
Name | Number | Description |
NONE | 0 | 等待启动运行 |
RUNNING | 1 | 运行中 |
PAUSE | 2 | 已暂停 |
SUCCESS | 3 | 运行成功 |
INTERRUPT | 4 | 用户主动停止 |
FAIL | 5 | 运行失败 |
WAIT | 10 | 等待启动运行 |
BEGIN | 11 | 开始运行,已弃用 |
INTERRUPTING | 14 | 任务停止中 |
任务相关服务
Method Name | Request Type | Response Type | Description |
LoadTask | TaskIndex | Task | 查询任务 |
LoadTaskList | .google.protobuf.Empty | TaskIds | 查询任务列表 |
LoadRunningTasks | .google.protobuf.Empty | Tasks | 查询运行中的任务列表 |
StartTask | StartTaskRequest | TaskIndex | 启动新任务 |
GetTaskStdout | TaskIndex | TaskStdout | 获取任务输出 |
SubTaskStdout | TaskIndex | TaskStdout stream | 订阅任务输出流 |
WaitTask | TaskIndex | TaskStdout | 等待运动完成 |
PauseTask | TaskIndex | .google.protobuf.Empty | 暂停任务与运动 |
ResumeTask | TaskIndex | .google.protobuf.Empty | 恢复任务与运动 |
CancelTask | TaskIndex | .google.protobuf.Empty | 取消任务与运动 |
Field | Type | Label | Description |
pressed | lebai.io.ButtonIndex | repeated | 当一系列按键被同时按下时 |
button | lebai.io.ButtonIndex | 当指定按键处于某状态时 |
|
status | lebai.io.ButtonStatus |
|
Field | Type | Label | Description |
condition | Condition |
|
|
function | Function |
|
Field | Type | Label | Description |
triggers | Trigger | repeated |
|
Name | Number | Description |
NONE | 0 | 无 |
START_TEACH_MODE | 1 | 进入示教模式 |
END_TEACH_MODE | 2 | 退出示教模式 |
SET_ZERO | 3 | 设置关节零位 |
CHANGE_POWER | 4 | 改变手臂启停状态 |
SHORT_TASK1 | 11 | 运行快捷任务1对应的场景 |
SHORT_TASK2 | 12 | 运行快捷任务2对应的场景 |
SHORT_TASK3 | 13 | 运行快捷任务3对应的场景 |
SHORT_TASK4 | 14 | 运行快捷任务4对应的场景 |
SHORT_TASK5 | 15 | 运行快捷任务5对应的场景 |
SHORT_TASK6 | 16 | 运行快捷任务6对应的场景 |
SHORT_TASK7 | 17 | 运行快捷任务7对应的场景 |
SHORT_TASK8 | 18 | 运行快捷任务8对应的场景 |
SHORT_TASK9 | 19 | 运行快捷任务9对应的场景 |
条件任务触发器相关服务
Method Name | Request Type | Response Type | Description |
SetTrigger | Trigger | .google.protobuf.Empty | |
GetTriggers | .google.protobuf.Empty | Triggers |
Field | Type | Label | Description |
need_upgrade | bool |
|
|
introduction | string |
|
系统升级相关服务
Method Name | Request Type | Response Type | Description |
CheckUpgrade | .google.protobuf.Empty | CheckUpgradeResponse | 查询是否需要升级 |
StartUpgrade | .google.protobuf.Empty | .google.protobuf.Empty | 开始系统升级,升级完成后需重启才生效 |
GetUpgradeStdout | .google.protobuf.Empty | .lebai.CommandStdout | 获取更新信息 |
.proto Type | Notes | C++ | Java | Python | Go | C# | PHP | Ruby |
double | double | double | float | float64 | double | float | Float | |
float | float | float | float | float32 | float | float | Float | |
int32 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
int64 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long | int/long | int64 | long | integer/string | Bignum |
uint32 | Uses variable-length encoding. | uint32 | int | int/long | uint32 | uint | integer | Bignum or Fixnum (as required) |
uint64 | Uses variable-length encoding. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum or Fixnum (as required) |
sint32 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
sint64 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long | int/long | int64 | long | integer/string | Bignum |
fixed32 | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int | int | uint32 | uint | integer | Bignum or Fixnum (as required) |
fixed64 | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum |
sfixed32 | Always four bytes. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
sfixed64 | Always eight bytes. | int64 | long | int/long | int64 | long | integer/string | Bignum |
bool | bool | boolean | boolean | bool | bool | boolean | TrueClass/FalseClass | |
string | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String | str/unicode | string | string | string | String (UTF-8) |
bytes | May contain any arbitrary sequence of bytes. | string | ByteString | str | []byte | ByteString | string | String (ASCII-8BIT) |