[Rock-dev] Accessing portnames with dots

Sylvain Joyeux sylvain.joyeux at dfki.de
Wed Aug 10 11:56:33 CEST 2011


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


More information about the Rock-dev mailing list