Skip to content
Discussion options

You must be logged in to vote

In the direct workflow, the user takes care of most of the environment stepping and its internal operations. Hence, there are no tutorials suggesting use-case dependent operations.

You can call the operations from the terrain curriculum function in the step function of the direct RL environment. Mainly something similar to these lines from here should be added to the step call:

    # extract the used quantities (to enable type-hinting)
    asset: Articulation = env.scene[asset_cfg.name]
    terrain: TerrainImporter = env.scene.terrain
    command = env.command_manager.get_command("base_velocity")
    # compute the distance the robot walked
    distance = torch.norm(asset.data.root_link_pos_w

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by RandomOakForest
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation
3 participants