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 dynamics integration inside Simulink #62

Closed
gabrielenava opened this issue Mar 5, 2019 · 6 comments
Closed

Support dynamics integration inside Simulink #62

gabrielenava opened this issue Mar 5, 2019 · 6 comments
Assignees
Labels

Comments

@gabrielenava
Copy link
Collaborator

In the devel branch, I've modified all the Simulink controllers to isolate all the input/outputs from/to the Gazebo simulator:

screenshot from 2019-03-05 18-49-13

This new configuration will be one day exploited for allowing the user to choose between performing the simulation with Gazebo or instead interface the controller's I/O using a forward dynamics block that will integrate the dynamics inside Simulink without the need of Gazebo.

@gabrielenava gabrielenava self-assigned this Mar 5, 2019
@gabrielenava gabrielenava added this to the next-software-upgrade milestone Mar 5, 2019
@gabrielenava
Copy link
Collaborator Author

@Giulero let's discuss about this task today afternoon. Is is fine for you?

@traversaro
Copy link
Member

Related WB-Toolbox issue: robotology/wb-toolbox#164 .

@traversaro
Copy link
Member

traversaro commented Apr 4, 2019

Ideally in the future it would be great to automatically generate a BlockFactory or FMI block for the "MOMENTUM BASE TORQUE CONTROL" model (see for example https://github.com/CATIA-Systems/FMIKit-Simulink), instead of just generating a complete executable of the complete simulation as we are doing now. Ideally, this would enable us for example to import the momentum based torque control in the walking controller, and just execute it with zero delay.

@traversaro
Copy link
Member

cc @nunoguedelha

@gabrielenava gabrielenava modified the milestones: next-software-upgrade, current-software-update Oct 10, 2019
@gabrielenava
Copy link
Collaborator Author

gabrielenava commented Oct 16, 2019

For the moment, I will create a simple subsystem that:

  • compute the forward dynamics for a floating base robot, assuming the joint torques are given by the controller;

  • integrate the forward dynamics;

  • can switch from one foot to two feet balancing, but only assuming contacts are rigid and ideal (no proper modeling of contacts like in Gazebo);

  • only interface our over-used controller, i.e. the yoga controller.

The subsystem will be stored in the library folder, so that it can be used as example for other controllers. A copy of the subsystem will be integrated in the yoga controller.

TO BE VERIFIED: can we use Gazebo with no physics just as visualizer? Otherwise, no visualization will be present, but only plots of dynamics and kinematics quantities.

@gabrielenava
Copy link
Collaborator Author

This has been now done due to unexpected necessities. There is now a simulink-balancing-simulator in devel branch that implements forward dynamics integration in Simulink. It is a first version and some things can be improved, but it =can be used as baseline for developing more complex simulators in the future. Closing the issue.

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

No branches or pull requests

2 participants