Download examples/obs.py from qualiaadmin/pingpongmerged: direct link, hf CLI and curl.
- Browser
- Download file 290 Bytes
-
https://huggingface.co/datasets/qualiaadmin/pingpongmerged/resolve/main/examples/obs.py
- Command line
-
hf download hf://datasets/qualiaadmin/pingpongmerged/examples/obs.py
-
curl -L -o obs.py https://huggingface.co/datasets/qualiaadmin/pingpongmerged/resolve/main/examples/obs.py
290 Bytes
| # Get an observation and print its structure | |
| obs = robot.get_observation() | |
| # See what type it is | |
| print(type(obs)) | |
| # If it's a dictionary, print the keys | |
| print(obs.keys()) | |
| # Print the full observation to see the structure | |
| print(obs) | |
| # Or for a nicer view | |
| import pprint | |
| pprint.pprint(obs) |