Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Hardware-in-the-loop simulation #343

Open
oscarkfpang opened this issue Sep 11, 2024 · 0 comments
Open

Support for Hardware-in-the-loop simulation #343

oscarkfpang opened this issue Sep 11, 2024 · 0 comments

Comments

@oscarkfpang
Copy link

This mjpc is great and I managed to create my own custom robot task and try different cost terms and weights on various planners for simulation. My next step is to include my own real robot and test if the planner's policy can act on the robot under actual environment.

I know some other people have asked about collecting trajectories from planners in headless mode or updating mjdata with real robot states. I tried but mjpc seems cannot perform accurately when the mjdata is updated by the real robot states data. I think because the mjpc is also running its own physics engine to generate the robot states. And I can't close this loop by exporting the best trajectory back to the real robot. Is there an roadmap for supporting hardware in the loop simulation? And also plans for support in ROS?

Another approach to my problem above is to extract the planner part to run and feed it with the state info from the robot and its sensors to generate trajectories for controlling the robot. I'm experimenting this and if you have any insights please let me know. I hope I can update my progress here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant