左侧夹爪位于棕色巧克力棒上方。在腕部视图中,巧克力棒呈竖直状,位于图像 x = 320 像素附近,从大约 y = 0 延伸到 228 像素,手指在其下方。其中心可能接近 (320, 100),水平对齐看起来良好。测得的左侧第六连杆 X 坐标为 -0.115米,而非指令要求的 -0.098米,因此它提前停下了;其 Y 坐标为 -0.113米。如果巧克力棒位于世界坐标 x = -0.1米附近,则夹爪在 X 方向上偏移约 -0.015米。尽管如此,它在腕部视图中看起来居中,这或许是因为相机的几何关系。我应该在下降后细化对齐。
测得的右腕四元数(按顺序)为 [0.812, 0.06, 0.19, 0.548],接近先前的目标 [0.8099, 0.0623, 0.1922, 0.5506],而非初始朝向 [0.707, 0, 0, 0.707]。是目标边界阻止了它完成,还是每个动作在某种程度上使用了前一个目标?在观测 155 时,测得的四元数为 [0.848, 0.103, 0.322, 0.409],而我指令的是初始朝向,两者相距 0.953弧度。经过 12 步后,它到达了大约前一个动作的目标 [0.80994, 0.06233, 0.1922, 0.5506]。这可能只是反映了沿同一旋转路径的部分插值。如果它朝初始朝向移动了约 0.53弧度,则插值比例约为 0.56;比例 0.55 可能给出接近 [0.82, 0.06, 0.19, 0.54] 的四元数。先前的目标也位于该测地线上,因此这种相似性并不意味着存在控制问题。我初步估计还剩余约 0.4弧度,应该在下一次完成旋转。
初始的朝前朝向可能使右臂的转移更容易。在该朝向下,沿局部 +X 方向 0.147米的接触偏移会变成世界 +Y 方向的偏移。从当前右侧第六连杆位置 [0.183, -0.08, 1.122] m 出发,我估计最终旋转后巧克力棒中心为 [0.183, 0.067, 1.122] m。蓝色篮子中心位于世界 x = 0米,估计宽度为 0.20米,跨越 x = -0.1 到 0.1米,因此 x = 0.183米仍会在其外部。我需要将第六连杆移向 x = 0米和 y = -0.067米,或许在 z = 0.98米处。若手指水平,接触中心的高度将等于第六连杆的高度。在第六连杆 z = 0.95米附近释放,估计下落 0.17米,可能是安全的。
我应该考虑巧克力棒在世界坐标中的朝向,而不是依赖其在腕部视图中的竖直外观。在初始腕部朝向下,局部 Y 指向世界 -X,因此闭合方向沿世界 X。抓取时,巧克力棒的长轴位于世界横纵平面内,角度为 -36 度,向量 L = [0.809, -0.588, 0],抓取旋转为 = (-36°)(90°)。先应用其逆变换得到 (36°)L = [1, 0, 0],然后 (-90°)[1, 0, 0] = [0, 0, 1]。因此巧克力棒的长轴为局部 +Z。在初始运输旋转 (90°) 下,局部 Z 即为世界 Z,因此巧克力棒在世界坐标中应变为竖直。假设为居中抓取且长度为 0.12米,它将围绕其中心在竖直方向上延伸约 ±0.06米。接触中心仍沿局部 +X 方向 0.147米,该方向指向世界 +Y。在第六连杆 z = 1.122米处,巧克力棒将大致跨越 z = 1.06–1.18米,可能靠近手臂处较高。
对于放置在 z = 0.75米的篮子底部,在第六连杆 z = 0.95米处释放会使竖直巧克力棒的底部接近 z = 0.89米。它可能下落约 0.14米,然后掉入并倾倒进篮子。篮子深度可能为 0.18米,0.12米的巧克力棒应能斜着放入。另一种选择是将第六连杆降至 z = 0.86米,使巧克力棒底部接近 z = 0.80米、靠近边缘,然后释放,下落约 5厘米。水平手指将从前方沿 +Y 方向伸入篮子。在第六连杆 z = 0.86米处,手臂主体可能不会碰撞,相比其初始高度 0.921米,但我需要检查。
从 [0.183, -0.08, 1.122] m 移动到 [0, -0.067, 0.95] m 需要拆分。我最初估计其距离为 0.245米,但 X 和 Z 位移分量 -0.183米和 -0.172米给出约 0.251米,刚好超过 0.25米的指令限制。在右臂基座接近 x = 0.3米的情况下,以水平腕部朝向到达世界 x = 0米可能是可行的,但预检查必须确认。我可以使用中间目标 [0.08, -0.08, 1.03] m,距离约 0.141米,同时完成旋转,随后再到 [0, -0.067, 0.92] m。
我还考虑过在移动到 [0.10, -0.08, 1.04] m 的同时完成右侧旋转,并同时将左侧夹爪朝棕色巧克力棒下降。左侧第六连杆当前位于 z = 1.021米,自上而下且张开,最终应下降至接近 z = 0.92米的抓取高度,如同红色巧克力棒那样。左侧目标 z = 0.95米是向下位移 0.071米。允许 10 步可能达到该高度,但接近接触时的运动应只使用 1–3 步。我也可以改用重复的 3 步动作,左侧下降目标 0.04米并部分旋转右侧,或者在给右腕 8 步的同时保持左臂不动,然后放置所持巧克力棒。在左侧保持不动的情况下,结合右侧旋转和转移可以使用 10 步;我还考虑过用 12 步朝向 [0.10, -0.08, 1.04] m,估计位置距离为 0.125米,朝向变化为 0.4弧度。如果其预检查失败,我会先原地旋转。
更简单的下一个动作是保持左侧接近并原地完成右侧旋转,然后再运输巧克力棒。我对右侧剩余旋转的估计不确定:可能约为 0.4弧度,或者从测得四元数 [0.812, 0.06, 0.19, 0.548] 到初始朝向约为 0.55弧度。两者都低于 1弧度的指令限制,因此我不需要再计算来选择该目标。在当前第六连杆高度 z = 1.122米处,预测的竖直巧克力棒延伸 ±0.06米,其底部接近 z = 1.06米,高于估计的篮子边缘 z = 0.82米。我将允许右腕用 8 步原地完成旋转,保持其夹爪闭合,并保持左侧夹爪在其测得位姿处张开。
原文6,078 字
The left gripper is above the brown chocolate bar. In the wrist view, the bar appears vertical near image x = 320 pixels, extending from approximately y = 0 to 228 pixels, with the fingers below it. Its center may be near (320, 100), and the horizontal alignment looks good. The measured left link6 X coordinate is -0.115 m rather than the commanded -0.098 m, so it stopped short; its Y coordinate is -0.113 m. If the bar is near world x = -0.1 m, the gripper is offset by about -0.015 m in X. It nevertheless appears centered in the wrist view, perhaps because of the camera geometry. I should refine the alignment after descending.
The measured right wrist quaternion, in wxyz order, is [0.812, 0.06, 0.19, 0.548], close to the earlier target [0.8099, 0.0623, 0.1922, 0.5506] rather than the initial orientation [0.707, 0, 0, 0.707]. Did the target bound prevent it from finishing, or is each action somehow using the preceding target? At observation 155, the measured quaternion was [0.848, 0.103, 0.322, 0.409], and I commanded the initial orientation, which was 0.953 rad away. After 12 steps, it reached approximately the target from the preceding action, [0.80994, 0.06233, 0.1922, 0.5506]. This may simply reflect partial interpolation along the same rotation path. If it moved about 0.53 rad toward the initial orientation, the interpolation fraction would be about 0.56; a fraction of 0.55 might give a quaternion near [0.82, 0.06, 0.19, 0.54]. The earlier target also lies on that geodesic, so the resemblance does not imply a control problem. I tentatively estimate about 0.4 rad remaining and should finish the rotation next.
The initial, forward-facing orientation may make the right arm’s transfer easier. With that orientation, a contact offset of 0.147 m along local +X becomes a world +Y offset. From the current right link6 position [0.183, -0.08, 1.122] m, I estimate the bar center after the final rotation as [0.183, 0.067, 1.122] m. The blue basket is centered at world x = 0 m, with an estimated width of 0.20 m spanning x = -0.1 to 0.1 m, so x = 0.183 m would still be outside it. I would need to move link6 toward x = 0 m and y = -0.067 m, perhaps at z = 0.98 m. With horizontal fingers, the contact center’s height would equal the link6 height. A release near link6 z = 0.95 m, with an estimated drop of 0.17 m, may be safe.
I should account for the bar’s orientation in world coordinates rather than rely on its vertical appearance in the wrist view. At the initial wrist orientation, local Y points along world -X, so closure is along world X. At grasp, the bar’s long axis lay in the world XY plane at -36 degrees, with vector L = [0.809, -0.588, 0], and the grasp rotation was qg = Rz(-36°)Ry(90°). Applying its inverse first gives Rz(36°)L = [1, 0, 0], then Ry(-90°)[1, 0, 0] = [0, 0, 1]. Thus the bar’s long axis is local +Z. At the initial transport rotation Rz(90°), local Z is world Z, so the bar should become vertical in world coordinates. Assuming a central grasp and a length of 0.12 m, it would extend approximately ±0.06 m vertically around its center. The contact center remains 0.147 m along local +X, which points along world +Y. At link6 z = 1.122 m, the bar would span roughly z = 1.06–1.18 m, perhaps high near the arm.
For placement on the basket bottom at z = 0.75 m, releasing at link6 z = 0.95 m would put the vertical bar’s bottom near z = 0.89 m. It could drop about 0.14 m, then fall and tip into the basket. The basket depth may be 0.18 m, and the 0.12 m bar should fit diagonally. Another option is to lower link6 to z = 0.86 m, putting the bar bottom near z = 0.80 m around the rim, then release for a drop of about 5 cm. The horizontal fingers would extend along +Y into the basket from the front. The arm body might be clear at link6 z = 0.86 m, compared with its initial height of 0.921 m, but I would need to check.
A move from [0.183, -0.08, 1.122] m to [0, -0.067, 0.95] m would need splitting. I first estimated its distance at 0.245 m, but the X and Z displacement components of -0.183 m and -0.172 m give about 0.251 m, just over the 0.25 m command limit. Reaching world x = 0 m with the right arm’s base near x = 0.3 m may be possible with the horizontal wrist orientation, but the precheck must confirm it. I could use an intermediate target [0.08, -0.08, 1.03] m, about 0.141 m away, while finishing the rotation, followed by [0, -0.067, 0.92] m.
I also considered finishing the right rotation while moving to [0.10, -0.08, 1.04] m and simultaneously lowering the left gripper toward the brown bar. The left link6 is currently at z = 1.021 m, top-down and open, and should eventually descend toward a grasp height near z = 0.92 m, as for the red bar. A left target of z = 0.95 m is a downward displacement of 0.071 m. Allowing 10 steps might reach that height, but motions near contact should use only 1–3 steps. I could instead use repeated 3-step actions, with a 0.04 m left descent target and partial right rotation, or hold the left arm while giving the right wrist 8 steps and then place the held bar. A combined right rotation and transfer with the left held could use 10 steps; I also considered 12 steps toward [0.10, -0.08, 1.04] m, with an estimated position distance of 0.125 m and orientation change of 0.4 rad. If its precheck failed, I would rotate in place first.
The simpler next action is to hold the left approach and finish the right rotation in place before transporting the bar. My estimate of the remaining right rotation is uncertain: it may be around 0.4 rad, or perhaps 0.55 rad from the measured quaternion [0.812, 0.06, 0.19, 0.548] to the initial orientation. Either is below the 1 rad command limit, so I do not need another calculation to choose this target. At the current link6 height of z = 1.122 m, the predicted vertical bar extends ±0.06 m, with its bottom near z = 1.06 m, above the estimated basket rim at z = 0.82 m. I’ll allow 8 steps for the right wrist to finish rotating in place, keep its gripper closed, and hold the left gripper open at its measured pose.