抬升后,右侧张开指令再次降到 0,且高机位相机视图中棒的位置没有变化,因此第二次抓取也失败了。三次闭合步骤后指令为 0.315,抬升过程中又经过三步后降到 0。这可能只是指令插值在继续,而没有接触物体。第一次尝试同样在三步后报告 0.329,然后在抬升后变为 0。因此,三步后指令非零并不能作为接触的证据。对于其他物体,六步后指令保持在 0.36 左右,这提示发生了接触。而在这里,棒可能太低,或者位于夹垫之间的空间之外。
我需要为这些细棒制定更好的策略。紫色棒以向下朝向、无偏航调整、末端执行器高度 z = 0.923米成功抓取。这根白色棒在约 -30° 偏航、且其长轴在腕部视图中呈竖直时失败。偏航变化后,闭合方向是否不再水平投影?腕部相机固定在夹爪上,手指仍出现在左右两侧,因此沿表观宽度闭合应该可行。也许手指是在棒的上方闭合,因为末端执行器高度太高了。
预期指尖中点接近像素 (320, 275),而棒现在似乎沿图像 x = 320 在 y = 250 附近延伸。它可能水平对齐但位于接触区域下方。我应该降到 z = 0.924米以下,但之前的下降尝试都在该高度附近停止。这是由桌面接触造成的吗?如果张开的手指已经碰到桌面,继续下降也无济于事。倾斜接近可能允许边缘抓取,或让一根手指滑到棒下方,但手指范围是固定的,桌面高度仍不确定。对于高度约 0.01米的物体,远端夹垫可能在指尖位于桌面时抓取边缘。即使指尖在桌面高度加 0.008米处,也可能抓住其顶部,除非棒相对于指尖在局部 X 方向上太远。
我应该检查投影的接触区域。在精确向下朝向时,指尖中点投影到约 (320, 275),并且在 -30° 偏航下应保持在该处,因为相机局部固定在夹爪上。先前计算的投影为 (320, 274.7)。即使当前朝向有轻微变化,该局部关系也应保持不变。然而,在观测_000296 中,我目测估计闭合手指接近 (320, 255),或者可能是 (320, 257)。我的目测估计可能有偏差。棒似乎横跨该点,因此仅凭投影无法解释失败。
桌面是否可能高到使棒在达到的最小末端执行器高度 z = 0.924米时位于夹垫下方?我可以尝试倾斜抓取。绕闭合轴(桌面平面内的局部 Y)倾斜 10° 俯仰,会使手指在竖直平面内倾斜。由于闭合轴不变,两个指尖将保持相同高度。它们的竖直范围将变为 0.1576 × 余弦 θ m,在固定末端执行器高度下使它们更高。改变的朝向可能允许将末端执行器降到 z = 0.90米,如果限制是由关节构型而非桌面接触造成的。如果限制是由桌面接触造成的,这不会改善接触几何。右臂在抓取紫色棒时也在 z = 0.923米附近停止,但那次抓取成功了。如果白色棒需要 z = 0.90米,倾斜的手指可能使指尖位于约 0.90 − 0.155 = 0.745米,低于假设的桌面高度 0.758米,因此会发生碰撞。选择末端执行器 z = 0.915米会使指尖位于约 z = 0.76米,基本上与之前情况相同。
水平侧向抓取可能更有希望。局部 X 水平时,指尖将位于末端执行器高度,也许是 z = 0.78米。竖直闭合,局部 Y 沿世界 z 方向,会使一根手指在棒上方、一根在下方,但下方手指会碰到桌面。相反,我可以让手指在 z = 0.77米附近保持水平,并沿宽度水平闭合。竖直夹垫(可能跨度为 0.03米)可以在桌面附近接触棒的两侧。
初始四元数 [0.707, 0, 0, 0.707] 使局部 X 沿世界 +y 方向,局部 Y 沿世界 -x 方向。因此,类似初始的低位接近会使手指水平指向 +y,并沿 x 方向闭合。手指在 z 方向的厚度可能约为 0.02米。在末端执行器 z = 0.79米时,其底部可能在 0.77米左右,比估计的棒顶部 0.765米高约 5毫米。将末端执行器降到 z = 0.775米可能使手指底部在 0.755米左右,并允许侧向接触。若接触点在局部 x = 0.12米处,末端执行器的 y 坐标应为棒中心 y 减去 0.12米,以免指尖越过。从负 y 方向接近,张开的手指跨在棒两侧,可能可行,不过我仍需检查桌面附近手臂与机身的间隙。
对于斜放的棒,我应将水平手指方向与其长轴对齐,并使闭合方向垂直于它。估计的长轴角度约为偏离世界 x 方向 32°,或者棒被推动后可能为 40°。使用 32°,令 v = (余弦 32°, 正弦 32°, 0)。局部 X 可沿 v,局部 Y 可沿 (-正弦 32°, 余弦 32°, 0) 或相反的闭合方向,局部 Z 指向 +z。以 [v, 垂直方向, z] 为列的旋转矩阵是一个 32° 偏航旋转,对应四元数 [余弦 16°, 0, 0, 正弦 16°] ≈ [0.961, 0, 0, 0.281]。这相当于将初始 90° 偏航朝向旋转 -58°。手指将沿棒的长度延伸,并沿其宽度闭合。
对于第六连杆前方 0.12–0.14米的接触点,我可以使用 0.13米和估计的棒中心 [0.102, -0.122, 0.765] m。末端执行器的横纵位置将为 − 0.13v = (0.102 − 0.110, -0.122 − 0.069) = (-0.008, -0.191) m,z = 0.775米。这非常接近大约在 [0, -0.214, 0.8] m 的黄色辣椒,会导致碰撞。左侧红辣椒也可能有影响,但黄色辣椒是这种左前侧接近的直接障碍。
从相反一端接近会使局部 X 沿 -v ≈ (-0.848, -0.530, 0),从右后指向左前,局部 Z 向上。末端执行器的横纵位置则会是 + 0.13v = (0.212, -0.053) m,同样在 z = 0.775米。这可能避开松散物体,但会靠近红色篮子前缘,大约在 y = -0.03米和 x = 0.21米附近。夹爪将低于约 z = 0.84米的篮缘高度,正好在其前方,手指朝负 y 方向远离篮子延伸。腕部或前臂仍可能与篮子碰撞;它们的间隙仍不确定。不太精确的前方接近也许可行,但仍会面临黄色辣椒的阻碍。
空闲的左臂可以先将黄色辣椒移入右侧篮子,为侧向接近腾出空间。它可以在更多棒尝试之前处理剩余的辣椒。另一根位于横纵 = [-0.062, -0.08] m 附近的白棒可能前方接近更通畅,不过我仍需分拣两根棒。
另一种可能性是在密封端附近而非细中心进行自上而下抓取。包装端可能更厚,或具有有用的几何形状。然而,这块巧克力棒可能是一个刚性扁盒,厚度大致均匀为 0.01米。紫色棒成功的中心抓取表明自上而下抓取可行。白色棒和紫色棒可能是同一型号,除颜色外尺寸相同,因此厚度差异不确定。偏航调整是否会通过翻滚或俯仰改变夹垫高度?对向下朝向施加纯偏航会保持局部 X 指向下方,因此这不能解释。
定位在局部 Y 方向上可能仍偏差足够大而导致失败。估计的世界中心约为横纵 = [0.102, -0.122] m,夹爪已对齐到该处。但高机位相机中心在像素 (366, 250)、假设高度 z = 0.765米,以及所选腕部中心 (380, 260) 可能并不精确一致。指尖中点接近 (320, 275),而在 +0.009米的 x 修正后,棒在观测_000290 中仍出现在图像 x = 340 附近。我应该将一个独立估计的世界点投影到当前腕部视图,并与观察到的棒进行比较。
我将首先把高机位相机像素 (366, 250) 反投影到假设的高度平面上,包括 z = 0.765米,独立于腕部估计。先前的腕部计算给出横纵 = [0.1018, -0.1221] m;高机位平面估计可能不同。我会在选择下一次抓取设置之前计算该值。
原文8,669 字
The right opening command again reached 0 after the lift, and the bar’s position in the high-camera view is unchanged, so the second grasp also missed. The command was 0.315 immediately after three closure steps and reached 0 after three more steps during the lift. That may simply reflect continued command interpolation without object contact. The first attempt likewise reported 0.329 after three steps and then 0 after the lift. A nonzero command after three steps was therefore not evidence of contact. For the other objects, the command stayed around 0.36 after six steps, which suggested contact. Here, the bar may be too low or outside the space between the pads.
I need a better strategy for these thin bars. The purple bar was successfully grasped with a downward orientation, no yaw adjustment, and an end-effector height of z = 0.923 m. This white bar failed with about -30° of yaw and its long axis appearing vertical in the wrist view. Could the closing direction cease to project horizontally when yaw changes? The wrist camera is fixed to the gripper, and the fingers still appear on the left and right, so closing across the apparent width should work. Perhaps the fingers closed above the bar because the end-effector height was too high.
The expected fingertip midpoint is near pixel (320, 275), while the bar now appears to run along image x = 320 near y = 250. It may be horizontally aligned but below the contact region. I should lower below z = 0.924 m, yet previous descent attempts stopped around that height. Was that caused by table contact? If the open fingers are already touching the table, further lowering would not help. An angled approach might allow an edge grasp or let a finger slide under the bar, but the finger extent is fixed and the table height remains uncertain. For an object about 0.01 m high, distal pads might grasp an edge with the tips at the table. Even tips at table height plus 0.008 m might catch its top, unless the bar is too far along local X relative to the fingertips.
I should check the projected contact region. With the exact downward orientation, the fingertip midpoint projects to approximately (320, 275), and it should remain there with -30° yaw because the camera is fixed locally to the gripper. The earlier calculated projection was (320, 274.7). Even with the current slight orientation variation, that local relationship should be unchanged. In obs_000296, however, I visually estimate the meeting fingers near (320, 255), or perhaps (320, 257). My visual estimate may be off. The bar appears to span that point, so the projection alone does not explain the miss.
Could the table be high enough that the bar lies below the pads at the minimum achieved end-effector height of z = 0.924 m? I could try a tilted grasp. A 10° pitch about the closing axis, local Y in the table plane, would tilt the fingers in a vertical plane. It would leave both fingertips at the same height because the closing axis remains unchanged. Their vertical extent would become 0.1576 × cos θ m, making them higher at a fixed end-effector height. The changed orientation might permit lowering the end effector toward z = 0.90 m if a joint configuration, rather than table contact, caused the restriction. If table contact caused it, this would not improve the contact geometry. The right arm also stopped around z = 0.923 m for the purple bar, but that grasp succeeded. If the white bar needs z = 0.90 m, tilted fingers could put the tips at approximately 0.90 − 0.155 = 0.745 m, below an assumed table height of 0.758 m and therefore in collision. Choosing end-effector z = 0.915 m would put the tips around z = 0.76 m, essentially the same situation as before.
A horizontal side grasp may be more promising. With local X horizontal, the fingertips would be at the end-effector height, perhaps z = 0.78 m. Closing vertically, with local Y along world z, would put one finger above and one below the bar, but the lower finger would hit the table. Instead, I could keep the fingers horizontal around z = 0.77 m and close horizontally across the width. The vertical pads, perhaps spanning 0.03 m, could contact the bar’s sides near the table.
The initial wxyz quaternion [0.707, 0, 0, 0.707] points local X along world +y and local Y along world -x. An initial-like low approach would therefore point the fingers horizontally toward +y and close across x. The finger thickness in z might be about 0.02 m. At end-effector z = 0.79 m, their bottom might be around 0.77 m, about 5 mm above the estimated bar top at 0.765 m. Lowering the end effector to z = 0.775 m might put the finger bottom around 0.755 m and allow side contact. With contact at local x = 0.12 m, the end-effector y coordinate should be the bar-center y minus 0.12 m so the fingertips do not overshoot. Approaching from negative y with open fingers straddling the bar could work, although I would need to check arm-body clearance near the table.
For the diagonal bar, I should align the horizontal finger direction with its long axis and the closing direction perpendicular to it. The estimated long-axis angle is about 32° from world x, or perhaps 40° after the bar was pushed. Using 32°, let v = (cos 32°, sin 32°, 0). Local X could follow v, local Y could follow (-sin 32°, cos 32°, 0) or the opposite closing direction, and local Z would point along +z. The rotation matrix with columns [v, perpendicular direction, z] is a 32° yaw rotation, with wxyz quaternion [cos 16°, 0, 0, sin 16°] ≈ [0.961, 0, 0, 0.281]. This is equivalent to rotating the initial 90° yaw orientation by -58°. The fingers would extend along the bar’s length and close across its width.
For a contact point 0.12–0.14 m ahead of link6, I could use 0.13 m and the estimated bar center [0.102, -0.122, 0.765] m. The end-effector xy position would be center − 0.13v = (0.102 − 0.110, -0.122 − 0.069) = (-0.008, -0.191) m, at z = 0.775 m. That is very close to the yellow pepper at approximately [0, -0.214, 0.8] m and would cause a collision. The left red pepper might also matter, but the yellow pepper is the immediate obstruction to this front-left side approach.
Approaching from the opposite end would put local X along -v ≈ (-0.848, -0.530, 0), pointing from back-right toward front-left, with local Z upward. The end-effector xy position would instead be center + 0.13v = (0.212, -0.053) m, again at z = 0.775 m. That may clear the loose objects, but it is close to the red basket’s front rim near y = -0.03 m and x = 0.21 m. The gripper would be below the rim height of about z = 0.84 m, just in front of it, with the fingers extending toward negative y away from the basket. The wrist or forearm could still collide with the basket; their clearance remains uncertain. A less exact front approach might be possible, but it would still face the yellow pepper obstruction.
The free left arm could first move the yellow pepper into the right basket, clearing space for a side approach. It can handle the remaining peppers before more bar attempts. The other white bar near xy = [-0.062, -0.08] m might have a clearer front approach, though I still need to sort both bars.
Another possibility is a top-down grasp near a sealed end rather than the thin center. The wrapper end might be thicker or have useful geometry. However, this chocolate bar is probably a rigid flat box with roughly uniform 0.01 m thickness. The purple bar’s successful center grasp shows that top-down grasping can work. The white and purple bars may use the same model with identical dimensions except color, so a thickness difference is uncertain. Could the yaw adjustment change pad height through roll or pitch? A pure yaw applied to the downward orientation preserves local X pointing downward, so that would not explain it.
The localization may still be wrong enough in local Y to miss. The estimated world center was around xy = [0.102, -0.122] m, and the gripper was aligned there. But the high-camera center at pixel (366, 250), the assumed height z = 0.765 m, and the selected wrist center at (380, 260) may not agree precisely. The fingertip midpoint is near (320, 275), and after the +0.009 m x correction the bar still appeared near image x = 340 in obs_000290. I should project an independently estimated world point into the current wrist view and compare it with the observed bar.
I’ll first unproject high-camera pixel (366, 250) onto assumed height planes, including z = 0.765 m, independently of the wrist estimate. The earlier wrist calculation gave xy = [0.1018, -0.1221] m; the high-camera plane estimate may differ. I’ll calculate that before choosing the next grasp setup.