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

initializing Types.base.JointsTrajectory with parameters fails #105

Open
renan028 opened this issue Dec 13, 2017 · 0 comments
Open

initializing Types.base.JointsTrajectory with parameters fails #105

renan028 opened this issue Dec 13, 2017 · 0 comments

Comments

@renan028
Copy link

renan028 commented Dec 13, 2017

Fails:

traj = Types.base.JointsTrajectory.new(
                names: [],
                elements: states,
                times: dtimes)

Works:

traj = Types.base.JointsTrajectory.new(
                names: [])
traj.elements = states
traj.times = dtimes
undefined method `[]' for nil:NilClass (NoMethodError)
    /home/renan/dev/emma/install/lib/ruby/2.3.0/typelib/compound_type.rb:132:in `block in set_array'
    /home/renan/dev/emma/install/lib/ruby/2.3.0/typelib/compound_type.rb:131:in `each'
    /home/renan/dev/emma/install/lib/ruby/2.3.0/typelib/compound_type.rb:131:in `each_with_index'
    /home/renan/dev/emma/install/lib/ruby/2.3.0/typelib/compound_type.rb:131:in `set_array'
    /home/renan/dev/emma/install/lib/ruby/2.3.0/typelib/compound_type.rb:301:in `block in subclass_initialize'
    /home/renan/dev/emma/install/lib/ruby/2.3.0/typelib.rb:287:in `from_ruby'
    /home/renan/dev/emma/install/lib/ruby/2.3.0/typelib/container_type.rb:290:in `__element_from_ruby'
    /home/renan/dev/emma/install/lib/ruby/2.3.0/typelib/container_type.rb:308:in `block (2 levels) in concat'
    /home/renan/dev/emma/install/lib/ruby/2.3.0/typelib/container_type.rb:307:in `each'
    /home/renan/dev/emma/install/lib/ruby/2.3.0/typelib/container_type.rb:307:in `block in concat'
    /home/renan/dev/emma/install/lib/ruby/2.3.0/typelib/type.rb:307:in `block in allocating_operation'
    /home/renan/dev/emma/install/lib/ruby/2.3.0/typelib/type.rb:339:in `handle_invalidation_protect_containers'
    /home/renan/dev/emma/install/lib/ruby/2.3.0/typelib/type.rb:351:in `block in handle_invalidation_protect_containers'
    /home/renan/dev/emma/install/lib/ruby/2.3.0/typelib/container_type.rb:266:in `handle_container_invalidation'
    /home/renan/dev/emma/install/lib/ruby/2.3.0/typelib/type.rb:350:in `handle_invalidation_protect_containers'
    /home/renan/dev/emma/install/lib/ruby/2.3.0/typelib/type.rb:333:in `handle_invalidation'
    /home/renan/dev/emma/install/lib/ruby/2.3.0/typelib/type.rb:306:in `allocating_operation'
    /home/renan/dev/emma/install/lib/ruby/2.3.0/typelib/container_type.rb:306:in `concat'
    /home/renan/dev/emma/install/lib/ruby/2.3.0/typelib/container_type.rb:194:in `block in subclass_initialize'
    /home/renan/dev/emma/install/lib/ruby/2.3.0/typelib.rb:287:in `from_ruby'
    /home/renan/dev/emma/install/lib/ruby/2.3.0/typelib/compound_type.rb:509:in `set'
    /home/renan/dev/emma/install/lib/ruby/2.3.0/typelib/compound_type.rb:494:in `set_field'
    /home/renan/dev/emma/install/lib/ruby/2.3.0/typelib/compound_type.rb:123:in `block in set_hash'
    /home/renan/dev/emma/install/lib/ruby/2.3.0/typelib/compound_type.rb:122:in `each'
    /home/renan/dev/emma/install/lib/ruby/2.3.0/typelib/compound_type.rb:122:in `set_hash'
    /home/renan/dev/emma/install/lib/ruby/2.3.0/typelib/compound_type.rb:293:in `block in subclass_initialize'
    /home/renan/dev/emma/install/lib/ruby/2.3.0/typelib.rb:287:in `from_ruby'
    /home/renan/dev/emma/install/lib/ruby/2.3.0/typelib/type.rb:588:in `new'
    /home/renan/dev/emma/bundles/emma/lib/emma/trajectory_helpers.rb:62:in `read_trajectories_from_disk'
    /home/renan/dev/emma/bundles/emma/test/lib/test_trajectory_helpers.rb:23:in `block (2 levels) in <module:Emma>'

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