jrl-umi3218 / mc_rtc

mc_rtc is an interface for simulated and real robotic systems suitable for real-time control
BSD 2-Clause "Simplified" License
122 stars 36 forks source link

[mc_rtc/Configuration] Improvements for Schema introduction #393

Closed gergondet closed 1 year ago

gergondet commented 1 year ago

This PR introduces changes to mc_rtc::Configuration that will be used in a subsequent PR that introduces a schema-like structure builder to mc_rtc. It is the first of three PRs leading to mc_rtc::Schema introduction

The following features have been added:

I started to refactor the use Configuration::has (e.g. replace the very common usage of if(cfg.has("foo")) { foo = cfg("foo"); do_something(foo); } with if(auto foo = cfg.find("foo")) { do_something(foo); } but many of these instances will be better served by introducing Schema-like structures so I'll wait for this PR to come