I did not find the fetch on the github web
Sorry for that, the simulation is redeveloping, the documentation doesn't keep consistent with the repo update right now, After the simulation benchmark developing finished, the documentaion will update, for now You can change the file like this:
XLerobot/simulation/Maniskill/agents/xlerobot -> ManiSkill/mani_skill/agents/robots/xlerobot
XLerobot/simulation/Maniskill/assets/xlerobot-> ManiSkill/mani_skill/assets/robots/xlerobot
and see the README in simulation part.
Yes, thank you. That did actually solved my problem. But I still has some questions.
- from the README, I know you update the command running the example. But I tried to run a double-arm version of XLeRobot, I got a message " python -m mani_skill.examples.demo_ctrl_action_ee_keyboard -e "ReplicaCAD_SceneManipulation-v1" -r "xlerobot" --render-mode="human" --shader="rt-fast" -c "pd_joint_delta_pos" This is my command "python -m mani_skill.examples.demo_ctrl_action_ee_keyboard -e "ReplicaCAD_SceneManipulation-v1" -r "xlerobot" --render-mode="human" --shader="rt-fast" -c "pd_joint_delta_pos". This is what I do. XLerobot/simulation/Maniskill/agents/xlerobot -> ManiSkill/mani_skill/agents/robots/xlerobot XLerobot/simulation/Maniskill/assets/xlerobot-> ManiSkill/mani_skill/assets/robots/xlerobot XLerobot/simulation/Maniskill/examples -> ManiSkill/mani_skill/exaples XLerobot/simulation/Maniskill/envs/Scenes-> ManiSkill/mani_skill/envs
if self.env.robot_uids == "fetch" or self.env.robot_uids == "xlerobot_single" or self.env.robot_uids == "xlerobot": self.env.agent.reset(self.env.agent.keyframes["rest"].qpos) self.env.agent.robot.set_pose(sapien.Pose([-1, 0, 0.02])) else: raise NotImplementedError(self.env.robot_uids)
-
From XLeRobot the page, I see lots of new scripts, how could I do with these?
-
From XLeRobot this page, I need to copy all the codes of XLeRobot config files to the corresponding place of lerobot. I'm a little confused about "the corresponding place of lerobot". What's the "corresponding place of lerobot"?
- For the question 1, I try the author's code, it's just a warning, you can change the code here to
SUPPORTED_ROBOTS = ["panda", "fetch", "xlerobot"], and make sure you change the scene_builder and init described in the author's README. - For the question 2, these are the scripts for real world lerobot control, it's not for the maniskill simulation. If you want to run simulation for it please see the simulation part.
- For the question 3
model -> leorbot/src/lerobot/model
robots/xlerobot ->lerobot/src/lerobot/robots/xlerobot
@beforeface
Thanks for the questions and answering, I will update the documentation today to address these concerns.
Okay ,thank you.
- Have you successfully run the double-arm version? I tried to add the "xlerobot" uid, still got a problem
- I bought some materials from web, meanwhile I tried to understand the tutorial and found the issue.
- Maybe the files for the real world XLerobot? I need to mkdir the src files?
@beforeface
- Can you show your terminal output, so I can know where the bug is?
- Good job, welcome to join the XLerobot family
- You needn't, you just need to clone the lerobot repo
- This is what I did in the code
This is the command and output. It looks like that tried to access an array but out of bound.
-
I'm really happy. This is my first real robot project.
-
Okay, thank your reply. I hope I can run it in the real world.
@beforeface It seems that you choose the wrong controller, end effector control need the pd_joint_delta_pos_dual_arm, please use the command in the documentation.
python -m mani_skill.examples.demo_ctrl_action -e "ReplicaCAD_SceneManipulation-v1" --render-mode="human" --shader="rt-fast" -c "pd_joint_delta_pos_dual_arm"
@hyy02 No, it still not work for it. the message is "pd_joint_delta_pos_dual_arm not in supported modes". Actually I'm a new guy for the mani-skill, it looks like I need to edit the mani-skill's config?
@beforeface Sorry :joy: , I forgot to add -r "xlerobot", the default agent setting is 'fetch', I test this:
python -m mani_skill.examples.demo_ctrl_action -e "ReplicaCAD_SceneManipulation-v1" --render-mode="human" --shader="rt-fast" -c "pd_joint_delta_pos_dual_arm" -r "xlerobot"
@hyy02 Yeah, thank you. The double-arm version successfully run. I have a question: how could you know the -c parameter is wrong?
@beforeface Actually, I don't really understand your question 😂 , Just follow the author's documentation, use the controller config he specified. the single-arm and dual-arm use different controller config, checkout the terminal output with the author's documentation
@hyy02 Yeah, thank you. The double-arm version successfully run. I have a question: how could you know the -c parameter is wrong?
If you mean how to debug errors like "pd_joint_delta_pos_dual_arm not in supported modes", the control config is usually defined in the robot config file, in this case "/agents/robots/xlerobot/xlerobot.py". You were previously having this error because xlerobot robot file wasn't loaded correctly. Later if you want to add or modify controller configs you can just do it in the robot config file. You can check Maniskill Docs and tutorials for more details.
@Vector-Wangel Thank your replay. I think I need take time to read Maniskill Docs.