ethz-asl / cad-percept

Bringing meshes to robotics.
BSD 3-Clause "New" or "Revised" License
5 stars 1 forks source link

Consolidate parameters / configs #79

Open gawela opened 4 years ago

gawela commented 4 years ago

There are a lot of config files and launch file parameters flowing around. An effort for cleaning this up would be nice (nice-to-have!).

hermannsblum commented 4 years ago

In particular, all config handling should be refactored at some point to use the ConfigProvider.

This makes it possible to use configs in libraries without explicitly relying on ROS. An example looks like this here:

// Set up configuration provider.
ConfigProvider::Ptr cfg =
    std::dynamic_pointer_cast<ConfigProvider>(std::make_shared<RosConfigProvider>(nh_private_));

// Create construction strategy
auto construction_strategy = std::make_shared<offset_surface::VertexNormalStrategy>(cfg);
drehermarc commented 4 years ago

Thanks for the remarks. As soon as the pending PRs have been discussed, I will start a new PR in which I will try to generally clean the code in master correspondingly.

hermannsblum commented 4 years ago

I think this does not only apply to Marcs code btw, we should clean up some other modules as well.

michaelpantic commented 4 years ago

@hermannsblum thought so too. I am currently cleaning up some of my code and will next week have a look on how we could modularize and consolidate the core a bit. I'll add a new general issue about this. Otherwise it'll grow out of our hands :)

michaelpantic commented 4 years ago

https://github.com/ethz-asl/cad-percept/issues/80