class Object

Constants

Types

Public Instance Methods

dump_configuration(task, save_configuration) click to toggle source
# File bin/oroconf, line 78
def dump_configuration(task, save_configuration)
    model_name = task.model.name
    Orocos.task_model_from_name(model_name)
    if save_configuration
        file, section_name = *save_configuration
        if File.directory?(file)
            file = File.join(file, "#{model_name}.yml")
        end
        section_name ||= "default"
        Orocos::TaskConfigurations.save(task, file, section_name)
    else
        task_conf = Orocos::TaskConfigurations.read_task_conf(task)
        puts YAML.dump(Orocos::TaskConfigurations.to_yaml(task_conf))
    end
end
load_orogen_project(loader, name, debug) click to toggle source
# File bin/oroinspect, line 61
def load_orogen_project(loader, name, debug)
    loader.project_model_from_name(name)
rescue Exception => e
    if debug
        raise
    end
    STDERR.puts "WARN: cannot load the installed oroGen project #{name}"
    STDERR.puts "WARN:     #{e.message}"
end