Connect to a port defined in service (XML)

Hi,
i'm writing an orocos component with an associated service. This service
defines an input port that i wish to connect.
Putting:

<simple name="my_port_name"
type="string"><value>my_con_name<value><simple>

in the solution file and running the component i obtain this error from
the Deployer:

[ ERROR ][DeploymentComponent::loadComponents] Component
'my_component_name' does not have a Port 'my_port_name'.
[ ERROR ][Logger] Failed to load a component: aborting kick-start.

When i do the same think with a port defined in the component (and not
in the service) all works fine.
How can i specify the service port name in the .xml file?

Thank you in advance.

Regards.

Andrea Luzzana

Connect to a port defined in service (XML)

2012/4/16 Andrea Luzzana <andrea [dot] luzzana [..] ...>:
> Hi,
> i'm writing an orocos component with an associated service. This service
> defines an input port that i wish to connect.
> Putting:
>
> <simple name="my_port_name"
> type="string"><value>my_con_name<value><simple>
>
> in the solution file and running the component i obtain this error from
> the Deployer:
>
>  [ ERROR  ][DeploymentComponent::loadComponents] Component
> 'my_component_name' does not have a Port 'my_port_name'.
>  [ ERROR  ][Logger] Failed to load a component: aborting kick-start.
>
> When i do the same think with a port defined in the component (and not
> in the service) all works fine.
> How can i specify the service port name in the .xml file?

I think it's componentName.serviceName.portName

Steven

>
> Thank you in advance.
>
> Regards.
>
> Andrea Luzzana
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

Connect to a port defined in service (XML)

On 04/16/2012 07:32 PM, Steven Bellens wrote:
> 2012/4/16 Andrea Luzzana<andrea [dot] luzzana [..] ...>:
>> Hi,
>> i'm writing an orocos component with an associated service. This service
>> defines an input port that i wish to connect.
>> Putting:
>>
>> <simple name="my_port_name"
>> type="string"><value>my_con_name<value><simple>
>>
>> in the solution file and running the component i obtain this error from
>> the Deployer:
>>
>> [ ERROR ][DeploymentComponent::loadComponents] Component
>> 'my_component_name' does not have a Port 'my_port_name'.
>> [ ERROR ][Logger] Failed to load a component: aborting kick-start.
>>
>> When i do the same think with a port defined in the component (and not
>> in the service) all works fine.
>> How can i specify the service port name in the .xml file?
> I think it's componentName.serviceName.portName
I get the same error. Do i have to declare the services as peers of the
component or something similar?
>
> Steven
>
>> Thank you in advance.
>>
>> Regards.
>>
>> Andrea Luzzana
>> --
>> Orocos-Users mailing list
>> Orocos-Users [..] ...
>> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

Ruben Smits's picture

Connect to a port defined in service (XML)

On Tue, Apr 17, 2012 at 10:13 AM, Andrea Luzzana
<andrea [dot] luzzana [..] ...> wrote:
> On 04/16/2012 07:32 PM, Steven Bellens wrote:
>> 2012/4/16 Andrea Luzzana<andrea [dot] luzzana [..] ...>:
>>> Hi,
>>> i'm writing an orocos component with an associated service. This service
>>> defines an input port that i wish to connect.
>>> Putting:
>>>
>>> <simple name="my_port_name"
>>> type="string"><value>my_con_name<value><simple>
>>>
>>> in the solution file and running the component i obtain this error from
>>> the Deployer:
>>>
>>>   [ ERROR  ][DeploymentComponent::loadComponents] Component
>>> 'my_component_name' does not have a Port 'my_port_name'.
>>>   [ ERROR  ][Logger] Failed to load a component: aborting kick-start.
>>>
>>> When i do the same think with a port defined in the component (and not
>>> in the service) all works fine.
>>> How can i specify the service port name in the .xml file?
>> I think it's componentName.serviceName.portName
> I get the same error. Do i have to declare the services as peers of the
> component or something similar?

The current deployer is not able to connect ports embedded in services
using xml-files, this is currently only possible using scripting
(Orocos native or lua)

Ruben

>> Steven
>>
>>> Thank you in advance.
>>>
>>> Regards.
>>>
>>> Andrea Luzzana
>>> --
>>> Orocos-Users mailing list
>>> Orocos-Users [..] ...
>>> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

Connect to a port defined in service (XML)

On 04/17/2012 01:28 PM, Ruben Smits wrote:
> On Tue, Apr 17, 2012 at 10:13 AM, Andrea Luzzana
> <andrea [dot] luzzana [..] ...> wrote:
>> On 04/16/2012 07:32 PM, Steven Bellens wrote:
>>> 2012/4/16 Andrea Luzzana<andrea [dot] luzzana [..] ...>:
>>>> Hi,
>>>> i'm writing an orocos component with an associated service. This service
>>>> defines an input port that i wish to connect.
>>>> Putting:
>>>>
>>>> <simple name="my_port_name"
>>>> type="string"><value>my_con_name<value><simple>
>>>>
>>>> in the solution file and running the component i obtain this error from
>>>> the Deployer:
>>>>
>>>> [ ERROR ][DeploymentComponent::loadComponents] Component
>>>> 'my_component_name' does not have a Port 'my_port_name'.
>>>> [ ERROR ][Logger] Failed to load a component: aborting kick-start.
>>>>
>>>> When i do the same think with a port defined in the component (and not
>>>> in the service) all works fine.
>>>> How can i specify the service port name in the .xml file?
>>> I think it's componentName.serviceName.portName
>> I get the same error. Do i have to declare the services as peers of the
>> component or something similar?
> The current deployer is not able to connect ports embedded in services
> using xml-files, this is currently only possible using scripting
> (Orocos native or lua)
Ok... thank you!
Regards.

Andrea
> Ruben
>
>>> Steven
>>>
>>>> Thank you in advance.
>>>>
>>>> Regards.
>>>>
>>>> Andrea Luzzana
>>>> --
>>>> Orocos-Users mailing list
>>>> Orocos-Users [..] ...
>>>> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>> --
>> Orocos-Users mailing list
>> Orocos-Users [..] ...
>> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>
>