sim.sensors
crazyflow.sim.sensors
¶
Classes¶
Functions¶
build_render_depth_fn(mjx_model, camera=0, resolution=(100, 100), geomgroup=(1, 1, 0, 0, 1, 1, 1, 1))
¶
Build a depth renderer function for given camera and resolution.
Compiles the mjx model and rays directly into the rendering function for higher performance. The returned function takes a Sim object as input and returns depth images.
Source code in crazyflow/sim/sensors.py
render_depth(sim, camera=0, resolution=(100, 100), include_drone=False)
¶
Render depth images using raycasting.
Note
Code has been adoped from https://github.com/Andrew-Luo1/jax_shac/blob/main/vision/2dof_ball.ipynb