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

Automatic Code Generation support exploiting Simulink Coder #82

Closed
diegoferigo opened this issue Feb 24, 2018 · 2 comments
Closed

Automatic Code Generation support exploiting Simulink Coder #82

diegoferigo opened this issue Feb 24, 2018 · 2 comments

Comments

@diegoferigo
Copy link
Member

At the current state, WB-Toolbox provides an excellent tool for rapid-prototyping. Adding a new feature of changing a parameter are trivial operations since they are done in Simulink.

However, for controlling the robot this workflow requires the presence of a computer in the robot's network that streams the motor references.

We are currently experimenting the usage of Simulink Coder for removing Simulink from the loop for the runtime usage. What we envision is the following:

  • Start with rapidly-prototyping a controller in the current way
  • Test everything in gazebo and on the real robot, tuning all the required parameters
  • Automatically generate C++ code from the Simulink Model
  • Deploy the generated sources in the robot's pc (head) and compile them
  • Execute the controller from the robot's head (possibly as a yarp module)

This workflow would also remove all the latency due to the network transport.

Considering that Simulink executes the model in a single-thread, and iCub's head is a PREEMPT_RT-enabled x86 distribution, this might work without many low-level complications.

@diegoferigo
Copy link
Member Author

This milestone collects all the issues opened for adding support for Automatic Code Generation.

@diegoferigo
Copy link
Member Author

PR #77 closes this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment