orocos-toolchain / orogen

Code generator for components and type handling in Rock - the Robot Construction Kit - and the Orocos Toolchain

Home Page:http://rock-robotics.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error if ro_ptr is passed as argument of operation

jmachowinski opened this issue · comments

Hi,
if one passes a ro_ptr e.g (ro_ptr('std/vector</envire/BinaryEvent>')) as argument of
an operation, this results in the following error :
===== Internal error =======
Please report the following error to the orogen developers
/home/scotch/coyote/tools/orogen/lib/orogen/base.rb:294:in unqualified_cxx_type': undefined methodgsub' for #Class:0x00000003e88020 (NoMethodError)
from /home/scotch/coyote/tools/orogen/lib/orogen/base.rb:294:in unqualified_cxx_type' from /home/scotch/coyote/tools/orogen/lib/orogen/spec/operation.rb:96:infind_interface_type'
from /home/scotch/coyote/tools/orogen/lib/orogen/spec/operation.rb:117:in argument' from local_mapper.orogen:36 from /home/scotch/coyote/tools/orogen/lib/orogen/gen/project.rb:1002:ininstance_eval'
from /home/scotch/coyote/tools/orogen/lib/orogen/gen/project.rb:1002:in block in task_context' from /home/scotch/coyote/tools/orogen/lib/orogen/gen/project.rb:1033:ininstance_eval'
from /home/scotch/coyote/tools/orogen/lib/orogen/gen/project.rb:1033:in external_task_context' from /home/scotch/coyote/tools/orogen/lib/orogen/gen/project.rb:1000:intask_context'
from local_mapper.orogen:10
from /home/scotch/coyote/tools/orogen/lib/orogen/gen/project.rb:1348:in load' from /home/scotch/coyote/tools/orogen/bin/orogen:164:inblock in

'
from /home/scotch/coyote/tools/orogen/lib/orogen/base.rb:472:in beautify_loading_errors' from /home/scotch/coyote/tools/orogen/bin/orogen:154:in'
make[3]: *** [CMakeFiles/regen] Error 1

One can still use "/RTT/extras/ReadOnlyPointer</std/vector</envire/BinaryEvent>>" as an workaround

One can still use "/RTT/extras/ReadOnlyPointer>" as an workaround

This is very fragile as you have no guarantees that the corresponding typekit support will get generated