[Rock-dev] find_typekit_for / Vizkit3D

Sylvain Joyeux sylvain.joyeux at dfki.de
Thu Apr 19 11:53:15 CEST 2012


On 04/19/2012 11:32 AM, chris wrote:
> On 18.04.2012 12:12, Sylvain Joyeux wrote:
>> On 04/18/2012 12:04 PM, chris wrote:
>>> Hio,
>>>
>>> i have currently a small problem with using manually defined port_types
>>> and a self written vizkit 3d visualization plugins.
>>>
>>> If i start my script, i often get an error message of this:
>>>
>>> 1.340 [ ERROR  ][TypekitRepository::Import] A protocol with id 2 was
>>> already added for type /std/vector</double>
>>> NodePath 0
>>>         Camera
>>>         Group
>>> /home/chris/repos/avalon_next/tools/orocos.rb/lib/orocos/typekits.rb:228:in
>>>
>>> `find_typekit_for': the type /uw_localization/ParticleSet is registered,
>>> but is not exported to the RTT type system (ArgumentError)
>>>            from
>>> /home/chris/repos/avalon_next/tools/orocos.rb/lib/orocos/typekits.rb:242:in
>>>
>>> `load_typekit_for'
>>>            from
>>> /home/chris/repos/avalon_next/gui/vizkit/ruby/lib/vizkit/cplusplus_extensions/vizkit_widget.rb:22:in
>>>
>>> `load_adapters'
>>>            from
>>> /home/chris/repos/avalon_next/gui/vizkit/ruby/lib/vizkit/cplusplus_extensions/vizkit_widget.rb:12:in
>>>
>>> `each'
>>>            from
>>> /home/chris/repos/avalon_next/gui/vizkit/ruby/lib/vizkit/cplusplus_extensions/vizkit_widget.rb:12:in
>>>
>>> `load_adapters'
>>>            from
>>> /home/chris/repos/avalon_next/gui/vizkit/ruby/lib/vizkit/cplusplus_extensions/vizkit_widget.rb:242:in
>>>
>>> `createPlugin'
>>>            from logs.rb:33
>>>
>>> But this error occurs not frequently. After retrying severall times it
>>> finds a registration and the plugin is working fine.
>>>
>>> Any ideas?
>> My guess, from looking at the code is:
>>
>>    * there are multiple typekits defining that type (i.e. you do a
>> import_types_from of the type definition multiple times)
> That's probably the reason for that. We have two tasks in two different
> orogen modules that uses this port_type and
> we would like to share a visualization for the data of this port.
FYI, I pushed a fix on master for that.

Sylvain


More information about the Rock-dev mailing list