Monitor Topic
When you need to query a specific Topic, you can use the following commands:
ezros topic -e OG000285 -t 30
ezros topic -e gripper_d672f584b17a -t 30
The terminal prints the following information:
监听话题: OG000285
持续时间: 30 秒
按 Ctrl+C 停止
============================================================
成功订阅话题 OG000285 (类型: BytesMessage)
开始监听话题 OG000285...
[02:51:54] [OG000285]: {<OutputType.Depth: 3>: array([[0. , 0. , 0. , ..., 0. , 0. , 0. ],
[0. , 0. , 0. , ..., 0. , 0. ,0. ],
[0. , 0. , 0. , ..., 0. , 0. ,0. ],
...,
[0. , 0. , 0. , ..., 0.00699991, 0.00700688,0.00700688],
[0. , 0. , 0. , ..., 0.00699412, 0.00703006,0.00703006],
[0. , 0. , 0. , ..., 0.00699401, 0.00703049,0.00703049]],
dtype=float32), <OutputType.Difference: 2>: array([[[109, 110, 107],
[108, 110, 108],
[107, 111, 108],
...,
[111, 112, 113],
[118, 114, 120],
[121, 115, 123]],
[[107, 106, 109],
[108, 107, 110],
[110, 109, 110],
...,
[110, 110, 108],
[110, 110, 110],
[110, 109, 110]]], dtype=uint8)}
[02:51:54] [OG000285]: {<OutputType.Depth: 3>: array([[0. , 0. , 0. , ..., 0. , 0. , 1. ],
[0. , 0. , 0. , ..., 0. , 0. , 2. ],
[0. , 0. , 0. , ..., 0. , 0. , 3. ],
...,
[0. , 0. , 0. , ..., 0.00699991, 0.00700688, 0.00700688],
[0. , 0. , 0. , ..., 0.00699412, 0.00703006, 0.00703006],
[0. , 0. , 0. , ..., 0.00699401, 0.00703049, 0.00703049]],
dtype=float32), <OutputType.Difference: 2>: array([[[109, 110, 107],
[108, 110, 108],
[107, 111, 108],
...,
[110, 110, 108],
[110, 110, 110],
[110, 109, 110]]], dtype=uint8)}
监听话题: gripper_d672f584b17a
持续时间: 30 秒
按 Ctrl+C 停止
============================================================
成功订阅话题 gripper_d672f584b17a (类型: BytesMessage)
开始监听话题 gripper_d672f584b17a...
[02:52:30] [gripper_d672f584b17a]: {'position': 0.0, 'velocity': 0.0, 'force': 2.37, 'temperature': 46}
[02:52:30] [gripper_d672f584b17a]: {'position': 0.0, 'velocity': 0.0, 'force': 2.37, 'temperature': 46}
[02:52:30] [gripper_d672f584b17a]: {'position': 0.0, 'velocity': 0.0, 'force': 2.37, 'temperature': 46}
[02:52:30] [gripper_d672f584b17a]: {'position': 0.0, 'velocity': 0.0, 'force': 2.37, 'temperature': 48}
[02:52:30] [gripper_d672f584b17a]: {'position': 0.0, 'velocity': 0.0, 'force': 2.37, 'temperature': 46}
[02:52:30] [gripper_d672f584b17a]: {'position': 0.0, 'velocity': 0.0, 'force': 2.27, 'temperature': 46}
[02:52:30] [gripper_d672f584b17a]: {'position': 0.0, 'velocity': 0.0, 'force': 2.27, 'temperature': 46}
[02:52:30] [gripper_d672f584b17a]: {'position': 0.0, 'velocity': 0.0, 'force': 2.27, 'temperature': 46}
[02:52:30] [gripper_d672f584b17a]: {'position': 0.0, 'velocity': 0.0, 'force': 2.37, 'temperature': 46}
[02:52:30] [gripper_d672f584b17a]: {'position': 0.0, 'velocity': 0.0, 'force': 2.37, 'temperature': 46}
[02:52:30] [gripper_d672f584b17a]: {'position': 0.0, 'velocity': 0.0, 'force': 2.37, 'temperature': 46}
[02:52:30] [gripper_d672f584b17a]: {'position': 0.0, 'velocity': 0.0, 'force': 2.37, 'temperature': 46}
[02:52:31] [gripper_d672f584b17a]: {'position': 0.0, 'velocity': 0.0, 'force': 2.37, 'temperature': 46}
[02:52:31] [gripper_d672f584b17a]: {'position': 0.0, 'velocity': 0.0, 'force': 2.41, 'temperature': 46}
[02:52:31] [gripper_d672f584b17a]: {'position': 0.0, 'velocity': 0.0, 'force': 2.41, 'temperature': 46}
[02:52:31] [gripper_d672f584b17a]: {'position': 0.0, 'velocity': 0.0, 'force': 2.37, 'temperature': 46}
监听被用户中断
监听话题: gripper_d672f584b18a
持续时间: 30 秒
按 Ctrl+C 停止
============================================================
未能检测到话题类型,话题可能不存在或无发布者/订阅者
Tips
The topic subcommand indicates that this operation is to access a specific topic;
The –echo/-e mandatory parameter specifies the name of the Topic to be monitored;
The –timeout/-t optional parameter specifies the duration of monitoring, with a default of 30 seconds.