Module: Roby::Planning::Tools
Overview
Some common tools for Planner and Library
Instance Method Summary collapse
Instance Method Details
#using(*modules) ⇒ Object
69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/roby/planning/model.rb', line 69 def using(*modules) modules.each do |mod| if mod.respond_to?(:planning_methods) include mod elsif planning_mod = (mod.const_get('Planning') rescue nil) include planning_mod else raise ArgumentError, "#{mod} is not a planning library and has no Planning module which is one" end end end |