MCPcopy Create free account
hub / github.com/SpatialVLA/SpatialVLA / iamlab_pick_insert_dataset_transform

Function iamlab_pick_insert_dataset_transform

data/oxe/transforms.py:752–767  ·  view source on GitHub ↗
(trajectory: Dict[str, Any])

Source from the content-addressed store, hash-verified

750
751
752def iamlab_pick_insert_dataset_transform(trajectory: Dict[str, Any]) -> Dict[str, Any]:
753 import tensorflow_graphics.geometry.transformation as tft
754
755 trajectory["observation"]["joint_state"] = trajectory["observation"]["state"][:, :7]
756 trajectory["observation"]["gripper_state"] = trajectory["observation"]["state"][
757 :, 7:8
758 ]
759 trajectory["action"] = tf.concat(
760 (
761 trajectory["action"][:, :3],
762 tft.euler.from_quaternion(trajectory["action"][:, 3:7]),
763 trajectory["action"][:, 7:8],
764 ),
765 axis=-1,
766 )
767 return trajectory
768
769
770def uiuc_d3field_dataset_transform(trajectory: Dict[str, Any]) -> Dict[str, Any]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected