| calib_data_to_matrix |
Ran ran on a synthesized input |
open-dynamic-robot-initiative/trifinger_simulation/trifinger_simulation/camera.py code served (permissive licence) · get_code("642ef04048b73593") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (3, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
# Construct a valid camera calibration data dictionary
# The function expects a dict with 'data', 'rows', and 'cols' keys
# It will flatten 'data' and reshape it to (rows, cols)
data_array = np.array([
1.0, 2.0, 3.0, 4.0,
5.0, 6.0, 7.0, 8.0,
9.0, 10.0, 11.0, 12.0
])
ARGS = {
'data': {
'data': data_array,
'rows': 3,
'cols': 4
}
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 2, dtype family float, shape (3, 4) — shape (3, 4) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| check_finger_type |
Ran ran on a synthesized input |
open-dynamic-robot-initiative/trifinger_simulation/trifinger_simulation/finger_types_data.py code served (permissive licence) · get_code("0a2b36887be2bc93") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import typing
class FingerTypesDataFormat(typing.NamedTuple):
"""Describes the format for the finger type data,
comprising of the corresponding urdf, and the
number of fingers.
"""
urdf_file: str
number_of_fingers: int
initial_joint_positions: typing.Sequence[float]
finger_types_data = {'fingerone': FingerTypesDataFormat(urdf_file='finger.urdf', number_of_fingers=1, initial_joint_positions=[0, 0, 0]), 'trifingerone': FingerTypesDataFormat(urdf_file='trifinger.urdf', number_of_fingers=3, initial_joint_positions=[0, -0.9, -1.7] * 3), 'fingeredu': FingerTypesDataFormat(urdf_file='edu/fingeredu.urdf', number_of_fingers=1, initial_joint_positions=[0, 0.9, -1.7]), 'trifingeredu': FingerTypesDataFormat(urdf_file='edu/trifingeredu.urdf', number_of_fingers=3, initial_joint_positions=[0, 0.9, -1.7] * 3), 'fingerpro': FingerTypesDataFormat(urdf_file='pro/fingerpro.urdf', number_of_fingers=1, initial_joint_positions=[0, 0.9, -1.7]), 'trifingerpro': FingerTypesDataFormat(urdf_file='pro/trifingerpro.urdf', number_of_fingers=3, initial_joint_positions=[0, 0.9, -1.7] * 3)}
def check_finger_type(name: str) -> str:
"""
Check if *name* is a valid finger type.
Args:
name: Name of the finger type.
Returns:
The name if it is valid.
Raises:
ValueError: If *name* is not a valid finger type.
"""
if name not in finger_types_data.keys():
raise ValueError("Invalid finger type '%s'. Valid types are %s" % (name, finger_types_data.keys()))
else:
return name
ARGS = {
"name": "fingerone"
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| find_robot_config_file |
Ran ran; our contract draft was wrong, not the code |
open-dynamic-robot-initiative/robot_fingers/scripts/trifinger_backend.py code served (permissive licence) · get_code("918348f04f63c3af") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned PosixPath. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import pathlib
import tempfile
import os
# Create a temporary directory structure with a config file
temp_dir = tempfile.mkdtemp()
config_dir_path = pathlib.Path(temp_dir)
# Create one of the expected config files so the function can find it
config_file = config_dir_path / "trifinger.yml"
config_file.touch()
ARGS = {
"config_dir": config_dir_path,
"filenames": ('trifinger.yml', 'trifingerpro.yml')
}
- Setup block drafted by
- a language model, Claude Sonnet 4.5, prompt python_fixture_v1
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_finger_urdf |
Ran ran on a synthesized input |
open-dynamic-robot-initiative/trifinger_simulation/trifinger_simulation/finger_types_data.py code served (permissive licence) · get_code("9a7fcdb941137f0d") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import typing
class FingerTypesDataFormat(typing.NamedTuple):
"""Describes the format for the finger type data,
comprising of the corresponding urdf, and the
number of fingers.
"""
urdf_file: str
number_of_fingers: int
initial_joint_positions: typing.Sequence[float]
finger_types_data = {'fingerone': FingerTypesDataFormat(urdf_file='finger.urdf', number_of_fingers=1, initial_joint_positions=[0, 0, 0]), 'trifingerone': FingerTypesDataFormat(urdf_file='trifinger.urdf', number_of_fingers=3, initial_joint_positions=[0, -0.9, -1.7] * 3), 'fingeredu': FingerTypesDataFormat(urdf_file='edu/fingeredu.urdf', number_of_fingers=1, initial_joint_positions=[0, 0.9, -1.7]), 'trifingeredu': FingerTypesDataFormat(urdf_file='edu/trifingeredu.urdf', number_of_fingers=3, initial_joint_positions=[0, 0.9, -1.7] * 3), 'fingerpro': FingerTypesDataFormat(urdf_file='pro/fingerpro.urdf', number_of_fingers=1, initial_joint_positions=[0, 0.9, -1.7]), 'trifingerpro': FingerTypesDataFormat(urdf_file='pro/trifingerpro.urdf', number_of_fingers=3, initial_joint_positions=[0, 0.9, -1.7] * 3)}
def check_finger_type(name: str) -> str:
"""
Check if *name* is a valid finger type.
Args:
name: Name of the finger type.
Returns:
The name if it is valid.
Raises:
ValueError: If *name* is not a valid finger type.
"""
if name not in finger_types_data.keys():
raise ValueError("Invalid finger type '%s'. Valid types are %s" % (name, finger_types_data.keys()))
else:
return name
def get_finger_urdf(name: str) -> str:
"""
Get the name of the URDF-file with the model of the specified finger type.
Args:
name: Name of the finger type.
Returns:
The name of the URDF file in the ``robot_properties_fingers`` package.
Raises:
ValueError: If *name* is not a valid finger type.
"""
check_finger_type(name)
return finger_types_data[name].urdf_file
ARGS = {
"name": "fingerone"
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_number_of_fingers |
Ran ran on a synthesized input |
open-dynamic-robot-initiative/trifinger_simulation/trifinger_simulation/finger_types_data.py code served (permissive licence) · get_code("00f1719c13bc8c50") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import typing
class FingerTypesDataFormat(typing.NamedTuple):
"""Describes the format for the finger type data,
comprising of the corresponding urdf, and the
number of fingers.
"""
urdf_file: str
number_of_fingers: int
initial_joint_positions: typing.Sequence[float]
finger_types_data = {
'fingerone': FingerTypesDataFormat(
urdf_file='finger.urdf',
number_of_fingers=1,
initial_joint_positions=[0, 0, 0]
),
'trifingerone': FingerTypesDataFormat(
urdf_file='trifinger.urdf',
number_of_fingers=3,
initial_joint_positions=[0, -0.9, -1.7] * 3
),
'fingeredu': FingerTypesDataFormat(
urdf_file='edu/fingeredu.urdf',
number_of_fingers=1,
initial_joint_positions=[0, 0.9, -1.7]
),
'trifingeredu': FingerTypesDataFormat(
urdf_file='edu/trifingeredu.urdf',
number_of_fingers=3,
initial_joint_positions=[0, 0.9, -1.7] * 3
),
'fingerpro': FingerTypesDataFormat(
urdf_file='pro/fingerpro.urdf',
number_of_fingers=1,
initial_joint_positions=[0, 0.9, -1.7]
),
'trifingerpro': FingerTypesDataFormat(
urdf_file='pro/trifingerpro.urdf',
number_of_fingers=3,
initial_joint_positions=[0, 0.9, -1.7] * 3
)
}
def check_finger_type(name: str) -> str:
"""
Check if *name* is a valid finger type.
Args:
name: Name of the finger type.
Returns:
The name if it is valid.
Raises:
ValueError: If *name* is not a valid finger type.
"""
if name not in finger_types_data.keys():
raise ValueError("Invalid finger type '%s'. Valid types are %s" % (name, finger_types_data.keys()))
else:
return name
def get_number_of_fingers(name: str) -> int:
"""
Get the number of fingers of the specified finger type
Args:
name: Name of the finger type.
Returns:
Number of fingers.
Raises:
ValueError: If *name* is not a valid finger type.
"""
check_finger_type(name)
return finger_types_data[name].number_of_fingers
ARGS = {
'name': 'fingerone'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| int_to_rgba |
Ran ran on a synthesized input |
open-dynamic-robot-initiative/trifinger_simulation/trifinger_simulation/sim_finger.py code served (permissive licence) · get_code("93edcb9355562a7b") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import typing
def int_to_rgba(color: int, alpha: int=255) -> typing.Tuple[float, float, float, float]:
"""Convert an 24-bit integer to an rgba tuple.
Converts color given as a single 24-bit integer (e.g. a hex value 0xFF0011)
to an rgba tuple where each value is in the range [0, 1].
Args:
color: An RGB colour given as single number (e.g. 0xFF0011).
alpha: Optional alpha value in the interval [0, 0xFF].
Returns:
tuple: The colour as a tuple (r, g, b, a) where each element is in
[0.0, 1.0].
"""
def trim_and_convert(x):
return (x & 255) / 255
return (trim_and_convert(color >> 16), trim_and_convert(color >> 8), trim_and_convert(color), trim_and_convert(alpha))
ARGS = {
"color": 0xFF0011,
"alpha": 255
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| load_camera_parameters |
Ran ran on a synthesized input |
open-dynamic-robot-initiative/trifinger_simulation/trifinger_simulation/camera.py code served (permissive licence) · get_code("2be4c7e29899e0c7") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import pathlib
import tempfile
import numpy as np
import yaml
# Create temporary directory for camera config files
tmpdir = tempfile.TemporaryDirectory()
config_dir = pathlib.Path(tmpdir.name)
# Create sample camera YAML files for camera IDs 60, 180, 300
camera_configs = {
60: {
'camera_name': 'camera_60',
'image_width': 640,
'image_height': 480,
'camera_matrix': {
'rows': 3,
'cols': 3,
'data': [520.0, 0.0, 320.0, 0.0, 520.0, 240.0, 0.0, 0.0, 1.0]
},
'distortion_coefficients': {
'rows': 1,
'cols': 5,
'data': [0.1, -0.2, 0.0, 0.0, 0.05]
},
'tf_world_to_camera': {
'rows': 4,
'cols': 4,
'data': [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0]
}
},
180: {
'camera_name': 'camera_180',
'image_width': 800,
'image_height': 600,
'camera_matrix': {
'rows': 3,
'cols': 3,
'data': [550.0, 0.0, 400.0, 0.0, 550.0, 300.0, 0.0, 0.0, 1.0]
},
'distortion_coefficients': {
'rows': 1,
'cols': 5,
'data': [0.15, -0.25, 0.01, 0.02, 0.03]
},
'tf_world_to_camera': {
'rows': 4,
'cols': 4,
'data': [0.9, 0.1, 0.0, 1.0, -0.1, 0.9, 0.0, 2.0, 0.0, 0.0, 1.0, 3.0, 0.0, 0.0, 0.0, 1.0]
}
},
300: {
'camera_name': 'camera_300',
'image_width': 1024,
'image_height': 768,
'camera_matrix': {
'rows': 3,
'cols': 3,
'data': [600.0, 0.0, 512.0, 0.0, 600.0, 384.0, 0.0, 0.0, 1.0]
},
'distortion_coefficients': {
'rows': 1,
'cols': 5,
'data': [0.2, -0.3, 0.005, 0.01, 0.02]
},
'tf_world_to_camera': {
'rows': 4,
'cols': 4,
'data': [0.8, 0.2, 0.0, 2.0, -0.2, 0.8, 0.0, 3.0, 0.0, 0.0, 1.0, 5.0, 0.0, 0.0, 0.0, 1.0]
}
}
}
# Write YAML files to temporary directory
for camera_id, config in camera_configs.items():
filename = config_dir / f'camera{camera_id}.yml'
with open(filename, 'w') as f:
yaml.dump(config, f, default_flow_style=False, sort_keys=False)
ARGS = {
'config_dir': config_dir,
'filename_pattern': 'camera{id}.yml'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, yaml — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple — a tuple output has no array shape of its own; none is stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| random_joint_positions |
Ran ran on a synthesized input |
open-dynamic-robot-initiative/trifinger_simulation/trifinger_simulation/sample.py code served (permissive licence) · get_code("5b0703ca7f5ab015") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import random
import math
# Set seed for reproducibility
random.seed(42)
# Define ARGS dictionary with all parameters
ARGS = {
"number_of_fingers": 3,
"lower_bounds": [-math.radians(30), -math.radians(60), -math.radians(100)],
"upper_bounds": [math.radians(30), math.radians(60), math.radians(2)]
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| random_position_in_arena |
Ran ran on a synthesized input |
open-dynamic-robot-initiative/trifinger_simulation/trifinger_simulation/sample.py code served (permissive licence) · get_code("162398f4bb6b9e79") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
import random
import math
# Set seeds for reproducibility
random.seed(42)
np.random.seed(42)
# Define ARGS dict with all parameters for random_position_in_arena
ARGS = {
"height_limits": (0.05, 0.15),
"angle_limits": (-2 * math.pi, 2 * math.pi),
"radius_limits": (0.0, 0.15)
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| feasible_random_joint_positions_for_reaching |
Not yet run unverified (harvested, no recorded run) |
open-dynamic-robot-initiative/trifinger_simulation/trifinger_simulation/sample.py code served (permissive licence) · get_code("90e3c1bcfa611626") How it ran |