simple_llmphy / tray_sim.py

Commit History

Add reset Data Keyframe
b720a8b
verified

chrisjcc commited on

Access attributes programmatically using the MuJoCo Python API
294badc
verified

chrisjcc commited on

Fix target location z-position
ee20eb5
verified

chrisjcc commited on

Set initial puck position and orientation (should be the same as in the XML file)
cf3c984
verified

chrisjcc commited on

Add missing puck_vel_idx initialization
83f47a5
verified

chrisjcc commited on

Resolved joints by body ID → model.body_dofadr and model.body_jntadr.
ca5ea66
verified

chrisjcc commited on

Systematically discovers joint offsets (qpos, qvel) for each object.
34d2632
verified

chrisjcc commited on

Remove code
1c67e52
verified

chrisjcc commited on

Locate pucks initial position
f791875
verified

chrisjcc commited on

Remove overriding puck position
912953f
verified

chrisjcc commited on

Lower the number of simulation steps to 250
d79780e
verified

chrisjcc commited on

Increase simulation steps
2b30376
verified

chrisjcc commited on

List body names to confirm, expect "tray" and "puck".
abe2c78
verified

chrisjcc commited on

Print model.nbody, model.nq, and model.nv to confirm one dynamic body (puck) plus the tray
a04a7d8
verified

chrisjcc commited on

change distance from 0.6 to 1.0
f5e170c
verified

chrisjcc commited on

Since the puck now takes the role of the pusher, we’ll apply the position and velocity directly to the puck’s DoFs.
94b2b7b
verified

chrisjcc commited on

Add back return physics_state
3afe1e3
verified

chrisjcc commited on

Remove superfluous code
bf2e8ae
verified

chrisjcc commited on

Removed Depth and Segmentation Code
d74efa4
verified

chrisjcc commited on

Remove reaming viewer code
8121a0e
verified

chrisjcc commited on

remove viewer
795a24d
verified

chrisjcc commited on

Remove visualization flags
04971ae
verified

chrisjcc commited on

Mouse-Based Camera Control:
c98a307
verified

chrisjcc commited on

Introduced a run_counter in app.py to track the number of simulation runs, ensuring each run has a distinct identifier.
9436a55
verified

chrisjcc commited on

Using LLMPhy paper's definition of stability to implement classify orientation stability
f4dbc3b
verified

chrisjcc commited on

Explicitly Reset the Simulation State
ec90f47
verified

chrisjcc commited on

Comment out code for joints etc
de77861
verified

chrisjcc commited on

Added options to see joint frames and transparent geometries
c4ad717
verified

chrisjcc commited on

Remove function
e0dffd9
verified

chrisjcc commited on

Change to mjv_addGeoms
0da5cab
verified

chrisjcc commited on

Correct function call placement of draw_world_axes
607fb0b
verified

chrisjcc commited on

Visually render the coordinate axes (X, Y, Z) in the MuJoCo simulation
7eaf1e9
verified

chrisjcc commited on

LLM prompt formatted as a natural language
d9d9c58
verified

chrisjcc commited on

Comment out print statement
9fe512f
verified

chrisjcc commited on

Return a list of dictionaries (preferred for LLM-friendly JSON) python Copy Edit
5e06c65
verified

chrisjcc commited on

Return gif_path and stability_flags
fca5fa8
verified

chrisjcc commited on

Comment out code
1a4d57e
verified

chrisjcc commited on

Stability Classification at End of Simulation
9a518dc
verified

chrisjcc commited on

The MuJoCo Python binding requires positional arguments in a specific order and format (NumPy arrays with shape (3,) or (3,1)), and crucially, you must pass the force and torque as NumPy arrays, not lists.
f1c4b61
verified

chrisjcc commited on

Apply a Force to the Tray
0a7688b
verified

chrisjcc commited on

Enable contact visualization in the renderer to debug collisions
e1833c3
verified

chrisjcc commited on

Move variable definition and initialization up.
492932f
verified

chrisjcc commited on

This will make the black disc fly in toward the center from the tray’s corner as intended, with clean and controllable motion.
0e6daaf
verified

chrisjcc commited on

Fix error
f2c36a1
verified

chrisjcc commited on

Can can dynamically adjust the camera view of a MuJoCo simulation programmatically
3bec3fb
verified

chrisjcc commited on

mujoco.Renderer(model, width=640, height=640) is asking for an image size larger than what the MuJoCo model framebuffer allows by default.
0cd2cd7

chrisjcc commited on

Multiple randomized dynamic objects. A pusher that activates mid-simulation. Full support for parameterized object count and rendering.
3c5f45f

chrisjcc commited on

Updated run_tray_simulation() (safe for HuggingFace Spaces)
45b8435
verified

chrisjcc commited on

Change mj_render to mjr_render
de503ed
verified

chrisjcc commited on

TraySim module
1b7961a
verified

chrisjcc commited on