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

How to integrate two controlMode in one ArticulatedSystem? #1

Open
Hly-123 opened this issue Aug 12, 2024 · 0 comments
Open

How to integrate two controlMode in one ArticulatedSystem? #1

Hly-123 opened this issue Aug 12, 2024 · 0 comments

Comments

@Hly-123
Copy link

Hly-123 commented Aug 12, 2024

Dear Professor,

I am using the simulation Raisim now. And I use addArticulatedSystem() to import my robot (UR5 + Allegro Hand in one urdf).
While I want to use PD_PLUS_FEEDFORWARD_TORQUE to control UR5, I want to use FORCE_AND_TORQUE to control the Allegro Hand.

Since I design a PD controller to compute the torque (tau) for Allegro hand in the hardware setting, I want to align the controller between Sim and Real. Therefore, I wonder if I set the imported ArticulatedSystem in PD_PLUS_FEEDFORWARD_TORQUE, then set the Pgain and Dgain of Allegro hand's joints to zero. Then use setGeneralizedForce(tau) to assign the 'tau' calculated by my PD controller.
Will it be the same as setGeneralizedForce(tau) in the FORCE_AND_TORQUE control mode? Since I noticed that the PD controller in the Raisim not only considers posErr_, gv_, uref_, but also has some compensation term?

Or, is there any other better way to solve integrate two controlMode in one ArticulatedSystem?

Thanks for your kindness and patience! I'm looking forward to hearing back from you!

Regards,
Linyi

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