Rod Simulation and Cable Manipulation
Research demonstrations from my ongoing simulation and robotics project at UCLA.
News
-
Sim › Post Wrap › V4-DP: every training run (dp1–dp29) shows its training time and GPU next to its title; dp28/dp29 progress updated.
-
Sim › Post Wrap › V4-DP: dp22–dp29 (the perceived rod, then RGB only: the clean expert, the image-based experts vis and vis2, robot-state noise, demonstrations without their near-static steps) with a per-10k validation table and the 50-scene test rows (best RGB: dp27 26/50, 17/30); the expert's changes behind them; older evaluations folded into collapsible entries.
-
Sim › Post Wrap › V4-DP › Real robot: the RGB-only policies dp26 and dp23 on the real PiPERs (12 runs, R's table grasp): dp23 brings R over the rod every time but does not close at the right moment (it hovers open 2–4 mm above the table, or closes in the air), dp26 often misses the rod and closes early in the air; R's wrist view barely changes below ~12 mm above the table.
-
New pages Sim › Route and Insert (a cable routed past two pins, handed from R to L and plugged into an RJ45 jack) and Sim › Bottle Lift (a rod bent into a hook round R's fingertip, pushed into a bottle that it lifts), and on Knot the whole wrap-and-twist chain: one scripted-expert video each, simulated with rod damping and a 40-iteration Newton cap, relit with the scan's lighting at 2×2 supersampling.
-
Sim › Post Wrap › V4-DP: dp17–dp21 on the new expert's data only: DAgger rounds lifted dp17's 15 of 50 to 25 (dp19), and a rewritten "clean" expert (no close-open-close, no trial moves) plus one DAgger round reached 38 of 50 (dp21); data changes, training entries and a new table of results by rod type.
-
Sim › Post Wrap › V4-DP › Randomization: every randomization of the second batch of office-rod-and-cable data, each with a figure from the simulation: posts, lengths and diameters, plastic rods vs springy cables, placement within both hands' reach, bent start shapes, where L takes the rod, table friction, the slower grasps, grasp disturbances, execution noise, cameras, colours and the success rule; the expert succeeded in 496 of the 929 scenes (53%).
-
Sim › Post Wrap › V4-DP: dp16, trained 80k steps from dp13 on its data plus the first batch of office-rod-and-cable data (727 demonstrations, 58.5% of the expert's scenes): 24 of 50 on the new task's scenes against dp13's 17 (40k steps did as well); failures spread over L's table grasp, the carry and the winding. A second batch with springy network/charging cables, 17-inch thick rods and the lab's rod colours is being generated (Data generation).
-
Sim › Post Wrap › V4-DP › Real robot: dp13's first 15 runs on the two real PiPERs: R took the rod once (two more possible), L never did; the failures came from the rod's placement and from R's wrist camera, mounted ~4.5° steeper than in the simulation. The data generation's answer (office rods and cables 0.4–2.2 m, 4–16 mm, wider placement, camera randomisation, grasps whose hand starts off the rod and puts itself right on a slow way down) is in Data generation.
-
Sim › Post Wrap › V4-DP: dp15, the second DAgger round (the expert's next step only, short segments): its grasps are the best so far and the early closes are gone, but it succeeds in 27 of 50 (17 of 27 without black rods) -- the winding stalls after the re-takes.
-
Sim › Post Wrap › V4-DP: success by rod colour for dp12–dp14; black rods (55% of the training data and of the evaluation's scenes) are the hardest and are not used on the robot: without them dp13 succeeds in 21 of 27 (78%).
-
Sim › Post Wrap › V4-DP: Train entries dp9ft2 (dp9 trained to 220k steps: 22 of 50), dp11 (wrist depth: 26), dp12 (random rod and post colours: 33), dp13 (wrist point clouds, camera jitter, image augmentation: 34 of 50, the best so far) and dp14 (a first DAgger round: 28, why it got worse); a wider catch rule in the evaluation; the second DAgger round (dp15) is training.
-
Sim › Post Wrap › V4-DP: three new Train entries, dp9 (UMI's relative observations, no random shift: 7 of 50), dp8ft (dp8 trained 80k steps more: 23 of 50) and dp10 (actions normalized per step of the chunk: 25 of 50); a 50-scene paired comparison (the 16-scene results could not tell the models apart); evaluation with 20 scenes at once, 1.4 min per episode instead of 3.7.
-
Sim › Post Wrap › V4-DP, Eval speed-up: the policy server now answers the queries that wait together in one batched denoising (the 16 simulations are independent of each other), 6.5× the queries per second in a 16-client load test.
-
Sim › Post Wrap › V4-DP: dp8 (a wrist-camera aux task, where the rod is in each hand's frame: 4 of 16), the evaluation's new solver (one Newton kernel, the band factored in 4 parallel parts, an H100: 32% faster per process, while the policy server now sets the pace), and the banded PCG note now explains the parallel factorization.
-
Sim › Post Wrap › V4-DP: two new Train entries, dp7 (actions as poses relative to each hand, a camera on the post, the coil's turns as an aux task: 4 of 16 scenes wound) and dp7ft (60k steps more: 7 of 16), and their rows in the Eval comparison.
-
Sim › Post Wrap › V4-DP now reads Data generation → Train → Eval, each with its speed-ups as an expandable entry; click fused PCG or banded PCG for a short note on the two solvers.
-
Sim › Post Wrap › V4-DP: what made training about 3× faster per step, and a new list of simulator speed-ups for data generation and evaluation (evaluation now on the same banded PCG solver as the data).
-
Sim › Post Wrap › V4-DP: results of dp5ft (dp5 trained 40k steps more, 160k in all): 2 of 16 scenes wound, the same as at 120k, with better table grasps and fewer slips.
-
The section nav lists the Imitation Learning versions under Sim › Post Wrap, from the scripted expert to V4-DP, each one click away.
-
Sim › Post Wrap: the V4-DP Train entries now give each run's data generation and training times.
-
Sim › Post Wrap: Imitation Learning adds V4-DP (Diffusion Policy) with a Train list of its five runs, each opening into a table of its data, inputs, outputs, training and results, and a comparison of the results.
-
New Real2Sim › Parameter Identification page: the springback experiment for the plastic yield curvature κs (rods, posts, cameras, timeline and the 48 trials) and the method (shape measurement, per-point springback, FEMU with DER).
-
Post Wrap: NN is renamed Imitation Learning. While the page is open, the menu lists its two sections, MPC and Imitation Learning, under Post Wrap.
-
New Sim › Post Wrap page. MPC: the post wrap videos, the Hessian convergence chart and the MPC notes, moved from Sim. NN: the decision network that chooses the wrapping primitives, with its architecture diagram, data, inputs, outputs and results.
-
Perception: the videos are grouped under Track. In the Overview, the routing task gets sim / sim2real tags, Perception and Track link to that page, and 图片增强 opens the supplementary capture comparison.
-
News shows the newest five, with the rest behind Expand. The Overview adds Perception under Sim2Real and sim / sim2real tags on the post wrap task, and Sim › Post Wrap lists the control plan.
-
The rod self-contact Hessian convergence chart moved from Sim2Real to Sim › Post Wrap.
-
Videos are now smaller, two per row. The two-turn post wrap is removed from Sim › Post Wrap.
-
Sim2Real › Simple Routing: sim vs. real video of the action sequence generated in sim, run directly on the real arm. Sim is now grouped into Post Wrap (with a new coil-collision failure), Simple Routing (the updated three-obstacle MPC video, moved from Sim2Real) and Basic Operations.
-
New Overview below the news: the plan for Real2Sim and Sim2Real, with links to the pages that show each part.
-
Perception: DER_projection is now a video with a top view comparing it with TrackDLO and UPETrack.
-
New Sim page with one- and two-turn MPC post wraps (the PiPER and Franka tasks moved there from Simulator), and a new Real2Sim › Perception page: DER_projection, TrackDLO, and TrackDLO vs. UPETrack on a cable wound around a mug.
-
New Home page with these updates. The sections are now Real2Sim › GS Enhancement (formerly GS Optimization), Simulator and Sim2Real.
-
Each section now has its own page, listed in the menu on the left.
-
Sim2Real: chart of how rod self-contact converges with the full contact Hessian vs. dropping its off-diagonal blocks.
-
Sim2Real: video of MPC shape control around three obstacles in the Difix3D+ GS scene.
-
GS Enhancement: post-processing, supplementary capture and Difix3D+, each compared with the original 3DGS scan of the lab table.
Overview
项目的整体路线:Real2Sim 把真实场景、线缆和它的物理参数搬进仿真,Sim2Real 把仿真里找到的操作用到真实机械臂上。带链接的条目可以跳到对应页面。
Real2Sim
- 在simulator里重建场景
- 3DGS重建场景 垫子122cm×61cm
polycam 很垃圾 很糊 也无法照rodsceniverse 还不错- xgrids 效果很好
替换机械臂替换钩爪
- 提高效果
- 后处理
- 图片增强
- difix+ 25 cvpr nvidia
CoDim的做法,直接作为参考建模
- 下一步可以渲染效果和光照, 颜色
物体 → mesh,3D打印物体- cable,考虑一下cable怎么重建和现实生活中match的比较好,找一下是否有绳子既有模型又可以买到,或者重建比较简单的cable
- 找模型,网线usb那个模型,网线实际的7.5mm直径,全长195.5cm左右(已放入)
gs做?
医用绳子打结
- 3DGS重建场景 垫子122cm×61cm
- real2sim参数识别:
估算范围,让rl范围内学习- 做test,反推精确测量
- 做test视频录制,NN学习 PhysCoRe
- 弯折+cantilever:识别弯曲刚度以及 E
- 扭转:G
- 绕柱:塑性
- 做test视频录制,NN学习 PhysCoRe
codim:给一个simulator skill数据库,包含场景,agent判断选哪个作为基础,然后再在基础上改。在simulation环境中做testdiffsim,求grad
Sim2Real
- Perception
- 颜色分割识别:
我发现举的很高的话会有问题识别不到,在蓝色胶带上也有点难以识别
- Track:
- trackDLO:有些情况绕过就做不到了
- MotionDLO:需要事件相机,pass
- UniStateDLO:没有开源,要自己训练
- UPEDLO:效果一般,无法识别挨得近的dlo
- Perception:DER-projection
- 颜色分割识别:
- task:cable绕过物体
- 重建场景后用MPC找到成功的trajectory
- apply到real机械臂和场景
- 完成后问题总结:
- 夹爪会松开的不够大,最后丢不下线缆
- 塑性和摩擦会使得最后的形状不如理想形状 :但是可能对于routing这种事情区别不大
- piper运行时感觉震动很明显,一抖一抖的
- gs:光照问题不够真?
- task:绕柱
- 目标:几圈+紧紧留在柱上?
- 几何解法:硬解
- mpc
- bug:
- 对于随机长度,得开始考虑左手抓取的位置,接触点的位置
- 卡死的时候要加入重抓,找附近的位置,然后预测是否可以
- 夹爪和rod是刚性耦合,对于软的rod会穿模;改成真实推算的摩擦阈值
- 初始抓取问题:抓末尾分数最高,但是会影响后面重抓然后重抓范围不够大就会失败。固定规则:左手抓在“引入段长度 + 绕一圈所需长度 + 3 cm”处,杆不够长就抓末端
- 速度慢:把一个 world 的整套 PCG 放进一个 thread block,kernel 边界变成 block 内的同步
- mps。multi
- 双臂位置,左臂有些姿势达不到,比如远一点的地面的线,捡起来必须要竖直否则会碰,但是达不到这个角度,就会判断失败
- bug:
- Imitation Learning
- task:先弯折cable。然后进入缝隙/某个位置。
- 理由:先弯折再进入利于一些狭小位置并且利于布线
- task:布线后保持形状
- task:弯折后吊起来物品
- task:插入
- task:处理本身就携带曲率的自然买来的cable