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

Define a database file (YAML) format #9

Open
corot opened this issue Jun 10, 2014 · 5 comments
Open

Define a database file (YAML) format #9

corot opened this issue Jun 10, 2014 · 5 comments

Comments

@corot
Copy link
Owner

corot commented Jun 10, 2014

On issue #8 we have implemented an initial, simplistic format. Study if we need an extended one more versatile and/or with additional information.

@corot
Copy link
Owner Author

corot commented Jul 1, 2014

At least we need to easily accommodate big chunks of data, as maps, meshes...

@stonier
Copy link
Collaborator

stonier commented Jul 3, 2014

At least we need to easily accommodate big chunks of data, as maps, meshes...

Yep. That's the only tricky part here I think.

@corot
Copy link
Owner Author

corot commented Jul 5, 2014

I'm realizing this is not trivial, and we will need specialized converters for each type of big file, because we store ROS messages, not the native files the information comes from. So... options:

  • We duplicate data and store both the file and the message. No way: duplicated data and complicated code.
  • We store only the data. No way: this breaks the uniformity of service calls to the server.
  • We store only the message, sacrificing the some information in the process (e.g. if I use a PNG to load a laser map, I transform the grayscale values into a matrix of -1, 0 and 1 values). So it would look like:
    • In the database file appears, instead of the message, a path to the file and some neccesary metadata.
    • Depending on the file time, the importer calls specialized process to transform the file into a ROS message (e.g. reuse map_server for 2D maps)
    • Reverse process for exporting, though some information can be lost
  • Exclude these big object from the database import/export. At the end, it's not that clear how useful the import/export of the database can be. I did this as a easy way to create toy database for developing and start playing with WCF, so... worth it to make this big effort?

@corot
Copy link
Owner Author

corot commented Jul 7, 2014

Conclusion, point 4 chosen:
we should go for the final editing solution (with a GUI) to solve this problem, cause we use there ROS topics, what means that any annotation is a message, so we don’t worry about how big or complicated it is.

@corot
Copy link
Owner Author

corot commented Jul 7, 2014

However I let the issue opened cause database format is prone to suffer new changes.

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

No branches or pull requests

2 participants