(trajectory: Dict[str, Any])
| 750 | |
| 751 | |
| 752 | def 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 | |
| 770 | def uiuc_d3field_dataset_transform(trajectory: Dict[str, Any]) -> Dict[str, Any]: |
nothing calls this directly
no outgoing calls
no test coverage detected