Giter Club home page Giter Club logo

Comments (5)

aaronchongth avatar aaronchongth commented on August 11, 2024

@cnboonhan As mentioned during our VC, the issue of duplicated map names are here,

aaron@biryani:~/workspaces/rmf/install/rmf_demos_maps/share/rmf_demos_maps/maps$ ls
airport_terminal      battle_royale      clinic      hotel       hotel_full_ign  office      triple_H
airport_terminal_ign  battle_royale_ign  clinic_ign  hotel_full  hotel_ign       office_ign  triple_H_ign

The only difference seems to be the .world files between airport_terminal/airport_terminal.world and airport_terminal_ign/airport_terminal.world.

It would probably make sense to remove the use of install/rmf_demos_maps/share/rmf_demos_maps/maps/MAP_NAME_ign and consolidate everything into install/rmf_demos_maps/share/rmf_demos_maps/maps/MAP_NAME, with possibly just the world files named differently.

Let me know what you think.

from rmf_demos.

cnboonhan avatar cnboonhan commented on August 11, 2024

i think thats fine idea 💯

from rmf_demos.

luca-della-vedova avatar luca-della-vedova commented on August 11, 2024

Just some background and further thoughts.
The reason behind the original duplication of the meshes was that originally the sdf file for the building level was different since it had tags specific to ignition to deal with textures, this was fixed a long time ago.

I wonder if we can move this implementation further and have a common directory for all the models in all the maps, like a rmf_demos_maps/models folder. The idea is that if we have a lot of maps that use the same mesh we would still be duplicating the same mesh among different maps, for example on my machine:

luca@luxury:~/ws_avcs$ locate /MainTable/model.sdf
/home/luca/demos_ws/build/rmf_demos_maps/maps/airport_terminal/models/MainTable/model.sdf
/home/luca/demos_ws/build/rmf_demos_maps/maps/clinic/models/MainTable/model.sdf
/home/luca/demos_ws/build/rmf_demos_maps/maps/hotel/models/MainTable/model.sdf
/home/luca/demos_ws/build/rmf_demos_maps/maps/hotel_full/models/MainTable/model.sdf
/home/luca/demos_ws/install/rmf_demos_maps/share/rmf_demos_maps/maps/airport_terminal/models/MainTable/model.sdf
/home/luca/demos_ws/install/rmf_demos_maps/share/rmf_demos_maps/maps/clinic/models/MainTable/model.sdf
/home/luca/demos_ws/install/rmf_demos_maps/share/rmf_demos_maps/maps/hotel/models/MainTable/model.sdf
/home/luca/demos_ws/install/rmf_demos_maps/share/rmf_demos_maps/maps/hotel_full/models/MainTable/model.sdf

This means that we will have four of the same MainTable mesh that will both take a lot of time during build time (we need to download the model four times) plus make the size of the binaries go up quite a lot.
Does this make sense?

from rmf_demos.

cnboonhan avatar cnboonhan commented on August 11, 2024

yes i would like that too. Since we pull from Fuel, its probably always true there is a one-one correspondence between model name and model mesh ( i believe ). Happy to move with that additional push as well

from rmf_demos.

aaronchongth avatar aaronchongth commented on August 11, 2024

Yup, that would be the best way to avoid duplicated models across all maps in the whole rmf_demos_maps package. I'll update the description to reflect that.

from rmf_demos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.