SemRoCo / giskard_core

This package provides the core C++ library of giskard, a constraint and optimization-based framework for robot motion control.
GNU General Public License v2.0
1 stars 8 forks source link

add conveniences #23

Open airballking opened 7 years ago

airballking commented 7 years ago

This is a long-overdue convenience function:

giskard_core::QPController generate_controller(const std::string& yaml_string)
{
  YAML::Node node = YAML::Load(yaml_string_);
  giskard_core::QPControllerSpec spec = node.as<giskard_core::QPControllerSpec>();
  giskard_core::QPController controller = giskard_core::generate(spec);

  return controller;
}

Please, add it.