Views
No views yet
pip install numpy safetensors1from inference import KineticBCPolicy
2
3pol = KineticBCPolicy("model.safetensors")
4out = pol.act(
5 ee_xyz=[0.30, 0.0, 0.90], # current end-effector xyz
6 target_obj_xyz=[0.45, 0.10, 0.78], # detected object xyz
7 gripper_open=1.0, # 1.0 open, 0.0 closed
8 subtask="reach", # see subtask list below
9)
10# {'ee_target_xyz': [...], 'rpy': [...], 'gripper': 0.98}act() every control tick, send ee_target_xyz to your IK/controller, and
drive gripper open/closed. Sequence subtasks with your own planner.| Input (16) | ee_xyz(3), target_obj_xyz(3), gripper_open(1), subtask_onehot(9) |
| Output (7) | xyz_offset(3), rpy(3), grip_logit(1) |
| Decode | ee_target_xyz = target_obj_xyz + xyz_offset; gripper = 0.5 + 0.5*tanh(grip_logit) |
locate, navigate, reach, grasp, lift, return_to_user, release, retreat, place