[Rock-dev] Accessing portnames with dots

Matthias Goldhoorn matthias.goldhoorn at dfki.de
Wed Aug 10 16:15:17 CEST 2011


On 10.08.2011 16:14, Matthias Goldhoorn wrote:
> On 10.08.2011 11:56, Sylvain Joyeux wrote:
>> On 08/10/2011 10:27 AM, Matthias Goldhoorn wrote:
>>> Hello,
>>> one problem solved here's the next.
>>>
>>> I creating logger ports like
>>>
>>> @logger.createLoggingPort("seegrip.comments","/seegrip/CommentMessage")
>>>
>>> my problem is now, how can i access these ports, the naming convention
>>> "task.port" is standart afaik.
>>> If i call something like that:
>>>
>>> @commentWriter = @logger.seegrip.comments.writer
>>>
>>> i got the error that @logger.seegrip is unknown
>>>
>>> /home/goldhoorn/dev-seegrip/tools/orocos.rb/lib/orocos/task_context.rb:933:in 
>>>
>>> `method_missing': undefined method `seegrip' for #<TaskContext:
>>> Orocos::TaskContext/seegripLogger>  (NoMethodError)
>> @logger.port('seegrip.comments')
>>
>> Sylvain
> Okay neverending story
> now i get the following error on the client ruby side:
>
> /home/goldhoorn/dev-seegrip/tools/orogen/lib/orogen/gen/typekit.rb:743:in 
> `build': cannot find /seegrip/CommentMessage in registry 
> (Typelib::NotFound)
>
> during
> @testWriter = @logger.port('seegrip.comedi').writer
> @commentWriter = @logger.port('seegrip.comments').writer
>
> the first command works, the second not, this is only an ruby script, 
> no tasks are started, so why is one typekit known, the other not?
>
> Matthias
>
>
>
>


-- 
  Dipl.-Inf. Matthias Goldhoorn
  Unterwasserrobotik

  Hauptanschrift Standort Bremen:
  DFKI GmbH
  Robotics Innovation Center
  Robert-Hooke-Straße 5
  28359 Bremen, Germany

  Phone: +49 (0)421 178 45-4193
  Fax:   +49 (0)421 178 45-4150
  E-Mail: robotik at dfki.de

  Weitere Informationen: http://www.dfki.de/robotik
  -----------------------------------------------------------------------
  Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
  Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
  Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
  (Vorsitzender) Dr. Walter Olthoff
  Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
  Amtsgericht Kaiserslautern, HRB 2313
  Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
  USt-Id.Nr.:    DE 148646973
  Steuernummer:  19/673/0060/3




More information about the Rock-dev mailing list