Skip to content

Commit

Permalink
Rename drop-in walking trajectory loader.
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxenburg committed Mar 26, 2024
1 parent 6d3b28b commit 7a95687
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions flybody/tasks/trajectory_loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,13 @@ def get_joint_names(self):
return [s.decode('utf-8') for s in self._h5['id2name']['joints']]


class WalkingTrajectoryTestPlug():
"""A simple inference/test-time replacement for walking trajectory loader.
class InferenceWalkingTrajectoryLoader():
"""Simple drop-in inference-time replacement for walking trajectory loader.
To use this class, create qpos and qvel for your test trajectory and then
This trajectory loader can be used for bypassing loading actual walking
datasets and loading custom trajectories instead, e.g. at inference time.
To use this class, create qpos and qvel for your custom trajectory and then
set this trajectory for loading in the walking task by calling:
env.task._traj_generator.set_next_trajectory(qpos, qvel)
"""
Expand Down

0 comments on commit 7a95687

Please sign in to comment.