Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load_type not working in deployment #5

Open
vbargsten opened this issue Jun 20, 2022 · 0 comments
Open

load_type not working in deployment #5

vbargsten opened this issue Jun 20, 2022 · 0 comments

Comments

@vbargsten
Copy link

Trying to use the load_type method when creating a deployment (hoping the logger then will also log this type of another deployment's task).

            # Manually request loading of types that are not provided throught
            # the task_contex typekit.
            def load_type(typename)
                unless loader.imported_typekits_for(typename).map(&:name)[0]
                    raise ArgumentError, "cannot find a typekit defining #{typename}"
                end
                @manually_loaded_types << typename
            end

However there is no loader:

===== Internal error =======
Please report the following error to the orogen developers
Traceback (most recent call last):
    10: from ..../tools/orogen/bin/orogen:187:in `<main>'
     9: from ..../tools/orogen/lib/orogen/base.rb:68:in `beautify_loading_errors'
     8: from ..../tools/orogen/bin/orogen:197:in `block in <main>'
     7: from ..../tools/orogen/lib/orogen/gen/project.rb:1431:in `load'
     6: from ..../crex/orogen/crex_hardware_deployments/crex_hardware_deployments.orogen:27
     5: from ..../tools/orogen/lib/orogen/gen/project.rb:1345:in `deployment'
     4: from ..../tools/orogen/lib/orogen/gen/project.rb:1345:in `instance_eval'
     3: from ..../crex/orogen/crex_hardware_deployments/crex_hardware_deployments.orogen:80
     2: from ..../tools/orogen/lib/orogen/spec/deployment.rb:685:in `load_type'
     1: from ..../tools/orogen/lib/orogen/spec/deployment.rb:584:in `loader'
..../tools/orogen/lib/orogen/spec/deployment.rb:584:in `loader': undefined method `loader' for #<OroGen::Gen::RTT_CPP::Project: crex_hardware_deployments> (NoMethodError)
Did you mean?  load
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant