Skip to content

[Question] How to find body with fixed frame? #2444

Closed Answered by jo-choi
jo-choi asked this question in Q&A
Discussion options

You must be logged in to vote

Solved.

For those using DirectRLEnv, here's how I set up the tcp frame:

class EnvCfg(DirectRLEnvCfg):
    robot: ArticulationCfg = DG_CFG.replace(   # type: ignore
        prim_path="/World/envs/env_.*/Robot",
    )

    tcp_frame = FrameTransformerCfg(
        prim_path="/World/envs/env_.*/Robot/link_0",
        debug_vis=False,
        target_frames=[
            FrameTransformerCfg.FrameCfg(
                prim_path="/World/envs/env_.*/Robot/link_dg_base",
                name="link_tcp",
                offset=OffsetCfg(
                    pos=(0.0, 0.0, 0.22),
                    rot=(1, 0, 0, 0),
                ),
            ),
        ],
    )

def _setup_scene(self):
   self._…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jo-choi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant