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

Boost data processing for data coming from the Simulink model #13

Closed
gabrielenava opened this issue Jan 23, 2018 · 4 comments
Closed

Boost data processing for data coming from the Simulink model #13

gabrielenava opened this issue Jan 23, 2018 · 4 comments
Labels

Comments

@gabrielenava
Copy link
Collaborator

gabrielenava commented Jan 23, 2018

With this commit, I added a callback in every model to a function like this one. The function is called every time the terminate button is pressed. The purpose was to remove the local paths that are added when running a specific simulation, e.g. Yoga or Standup. The reason is that the local paths may contain functions with the same names and this may be dangerous (it is not clear which function is called).

However, I noticed that this callback function is run only after the to workspace block updates the workspace. I realized that we can then use this function to plot data, save the workspace, etc, automatically and every time we run a demo on the robot. This may be useful for processing data while on the robot, or compare two different simulations and decide if the data collected are valuable.

@gabrielenava
Copy link
Collaborator Author

I will try to implement this during this week. The Idea is the following:

  • run a demo;
  • terminate and collect data, plot data;
  • decide whether to save or discard data.

@S-Dafarra may be useful also for you for collecting data on the robot.

@gabrielenava
Copy link
Collaborator Author

I think I will implement this soon for collecting data for IROS.

@diegoferigo
Copy link
Member

@gabrielenava In my opinion we should exploit this features and dump all the data we can gather from the robot using simulink to the workspace in a structured way. With this I mean that the initialization script could contain a flag to enable / disable data logging, and all the blocks that export data (scopes mainly) are configured in such a way to fill a class' object.

This class can be developed separately and might provide useful methods for automatically post-processing and plotting data. If needed, serializers to different file formats (csv, ...), e.g. for committing datasets, might be integrated easily.

We can have a f2f meeting for discussing this more in detail (remember: you applied priority low!)

@gabrielenava
Copy link
Collaborator Author

closing as a duplicate of #20

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