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

Run my own robot occur a problem #60

Open
Zcyyy opened this issue Dec 13, 2022 · 7 comments
Open

Run my own robot occur a problem #60

Zcyyy opened this issue Dec 13, 2022 · 7 comments

Comments

@Zcyyy
Copy link

Zcyyy commented Dec 13, 2022

Hi,
When I configured my robot using ocs2_legged_robot as an example, the following error occurred:
image
How should I define my input to ensure that the MPC runs successfully?

@FaresKchaou
Copy link

Hey!
I am having the same problem! have you found a solution for this problem ?

@Zcyyy
Copy link
Author

Zcyyy commented May 15, 2023

Hey! I am having the same problem! have you found a solution for this problem ?

Yes, the problem was resolved after I modified the config file. Please make sure that the degrees of freedom of your robot match those specified in the config file. Additionally, ensure that the names of the robot's end effectors and joints are the same. You can also modify the weights of the Q and R matrices. These are all factors that can potentially affect the calculations. Of course, there may be other factors that I haven't mentioned. @FaresKchaou

@FaresKchaou
Copy link

thx @Zcyyy that helped me a lot! have you test it it on a real Robot ? If yes, how have you done it ? you considered the MRT as your real Robot ? or you use the MRT to send the velocity commands to your ROBOT ? thx

@Zcyyy
Copy link
Author

Zcyyy commented Jun 19, 2023

thx @Zcyyy that helped me a lot! have you test it it on a real Robot ? If yes, how have you done it ? you considered the MRT as your real Robot ? or you use the MRT to send the velocity commands to your ROBOT ? thx

I'm glad the previous answer was helpful to you. What you mentioned is one of the areas I have been exploring recently. If you want to apply it to your own real robot, you may need to write some ros control files. The control content sent depends on your control mode and motor model. ocs2 provides PD control and PD+FF control methods.

@FaresKchaou
Copy link

thank you for your quick reply! i want to test ocs2 with a real franka panda robot before testing it on a mobile manipulator. i will be thankful for some input or some help! what i still didn't exactly get is: if the real robot is replacing the MRT so that i need to run the panda controller and just apply the mpc_policy (joint velocities) from the mpc node and then send the real states of the joints via mpc_observation topic (i think this is wrong because the MRT node is getting also the mpc_target topic)? i would be very thankful if you provide me some small tips!

@Zcyyy
Copy link
Author

Zcyyy commented Jun 19, 2023

thank you for your quick reply! i want to test ocs2 with a real franka panda robot before testing it on a mobile manipulator. i will be thankful for some input or some help! what i still didn't exactly get is: if the real robot is replacing the MRT so that i need to run the panda controller and just apply the mpc_policy (joint velocities) from the mpc node and then send the real states of the joints via mpc_observation topic (i think this is wrong because the MRT node is getting also the mpc_target topic)? i would be very thankful if you provide me some small tips!

According to my understanding of ocs2, you cannot replace MRT. MRT is an important part to get the robot state observation. You should focus on the OC Rollout part.

@ppap36
Copy link

ppap36 commented Dec 10, 2023

I am sorry to raise a question that has no bussienss with your problem.
SORRY
but have you ever met the problem mentioned in issue #87
sorry to bother you

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

3 participants