Skip to content

Commit

Permalink
Merge branch 'main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
amacati committed Feb 19, 2025
2 parents 1af6964 + c65131d commit 2124686
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ saves
.pytest_cache
*.json
**/*.csv
.vscode
build
.venv
!/.devcontainer/devcontainer.json
!/.devcontainer/devcontainer.linux.json
!/.devcontainer/devcontainer.wsl2.json
!/.vscode/launch.json
**/*.pt
tutorials/ppo/wandb
16 changes: 0 additions & 16 deletions .vscode/launch.json

This file was deleted.

7 changes: 6 additions & 1 deletion benchmark/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ def profile_gym_env_step(sim_config: config_dict.ConfigDict, n_steps: int, devic
device = jax.devices(device)[0]

envs = gymnasium.make_vec(
"DroneReachPos-v0", time_horizon_in_seconds=3, num_envs=sim_config.n_worlds, **sim_config
"DroneReachPos-v0",
time_horizon_in_seconds=3,
num_envs=sim_config.n_worlds,
device=sim_config.device,
freq=sim_config.attitude_freq,
physics=sim_config.physics,
)

# Action for going up (in attitude control)
Expand Down
2 changes: 1 addition & 1 deletion crazyflow/sim/integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def _integrate(
dvel: Array,
dang_vel: Array,
dt: float,
) -> SimData:
) -> tuple[Array, Array, Array, Array]:
"""Integrate the dynamics forward in time.
Args:
Expand Down

0 comments on commit 2124686

Please sign in to comment.