Error loading a component

Hi,

I have converted the example of simple tcp client to rtt2.x using the scripts
provided by Peter. The conversion worked more or less smoothly and only a few
changes were needed : new cmake and a change with the name of a function.

I have tried to run the example, but I got this error and I'm a bit lost:

0.059 [ ERROR ][DeploymentComponent::loadComponent] Unable to create Orocos
Component 'SimpleNonPeriodicClient': unknown component type.
0.059 [ Warning][DeploymentComponent::loadComponents] Could not
configure 'SimpleNonPeriodicClient': No such peer.
0.059 [ ERROR ][Logger] Failed to load a component: aborting kick-start.

any light to help me in the path .....

Regards,

Leo

PS. I would like to send the example with the new cmake to Stephen Roderick to
update the wiki page, but when it works ...

[1]
http://www.orocos.org/wiki/rtt/simple-examples/simple-tcp-client-using-n...

Error loading a component

On Thu, Nov 11, 2010 at 10:57 AM, Leopold Palomo-Avellaneda
<leopold [dot] palomo [..] ...> wrote:
> Hi,
>
> I have converted the example of simple tcp client to rtt2.x using the scripts
> provided by Peter. The conversion worked more or less smoothly and only a few
> changes were needed : new cmake and  a change with the name of a function.
>
> I have tried to run the example, but I got this error and I'm a bit lost:
>
>
> 0.059 [ ERROR  ][DeploymentComponent::loadComponent] Unable to create Orocos
> Component 'SimpleNonPeriodicClient': unknown component type.

Did you compile with '-DRTT_COMPONENT' defined + the ORO_CREATE_COMPONENT
macro ?

Did you import the directory where the .so library exists ?

Peter
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

Error loading a component

A Dijous 11 Novembre 2010, Peter Soetens va escriure:
> On Thu, Nov 11, 2010 at 10:57 AM, Leopold Palomo-Avellaneda
>
> <leopold [dot] palomo [..] ...> wrote:
> > Hi,
> >
> > I have converted the example of simple tcp client to rtt2.x using the
> > scripts provided by Peter. The conversion worked more or less smoothly
> > and only a few changes were needed : new cmake and a change with the
> > name of a function.
> >
> > I have tried to run the example, but I got this error and I'm a bit lost:
> >
> >
> > 0.059 [ ERROR ][DeploymentComponent::loadComponent] Unable to create
> > Orocos Component 'SimpleNonPeriodicClient': unknown component type.
>
> Did you compile with '-DRTT_COMPONENT' defined + the ORO_CREATE_COMPONENT
> macro ?
>

I used the example of CMake in the documentation. Have I to add this?

yes,

ORO_CREATE_COMPONENT(SimpleNonPeriodicClient)

> Did you import the directory where the .so library exists ?
>
nops ....

import(SimpleNonPeriodicClient-gnulinux)?

--
--
Leopold Palomo-Avellaneda <leopold [dot] palomo [..] ...>
Institut d'Organització i Control de Sistemes Industrials
Universitat Politècnica de Catalunya
Avda. Diagonal 647, pl. 11
08028 BARCELONA (Spain)

Tel. +34-934017163
Fax. +34-934016605
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

Error loading a component

2010/11/11 Leopold Palomo-Avellaneda <leopold [dot] palomo [..] ...>

> A Dijous 11 Novembre 2010, Peter Soetens va escriure:
> > On Thu, Nov 11, 2010 at 10:57 AM, Leopold Palomo-Avellaneda
> >
> > <leopold [dot] palomo [..] ...> wrote:
> > > Hi,
> > >
> > > I have converted the example of simple tcp client to rtt2.x using the
> > > scripts provided by Peter. The conversion worked more or less smoothly
> > > and only a few changes were needed : new cmake and a change with the
> > > name of a function.
> > >
> > > I have tried to run the example, but I got this error and I'm a bit
> lost:
> > >
> > >
> > > 0.059 [ ERROR ][DeploymentComponent::loadComponent] Unable to create
> > > Orocos Component 'SimpleNonPeriodicClient': unknown component type.
> >
> > Did you compile with '-DRTT_COMPONENT' defined + the ORO_CREATE_COMPONENT
> > macro ?
> >
>
> I used the example of CMake in the documentation. Have I to add this?
>
> yes,
>
> ORO_CREATE_COMPONENT(SimpleNonPeriodicClient)
>
>
> > Did you import the directory where the .so library exists ?
> >
> nops ....
>
> import(SimpleNonPeriodicClient-gnulinux)?
>
>
no only the directory in wich SimpleNonPeriodicClient is located (a
personnal "my_project/lib" for example)

>
>
>
> --
> --
> Leopold Palomo-Avellaneda <leopold [dot] palomo [..] ...>
> Institut d'Organització i Control de Sistemes Industrials
> Universitat Politècnica de Catalunya
> Avda. Diagonal 647, pl. 11
> 08028 BARCELONA (Spain)
>
> Tel. +34-934017163
> Fax. +34-934016605
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>

Error loading a component

On Nov 11, 2010, at 04:57 , Leopold Palomo-Avellaneda wrote:

> Hi,
>
> I have converted the example of simple tcp client to rtt2.x using the scripts
> provided by Peter. The conversion worked more or less smoothly and only a few
> changes were needed : new cmake and a change with the name of a function.
>
> I have tried to run the example, but I got this error and I'm a bit lost:
>
>
> 0.059 [ ERROR ][DeploymentComponent::loadComponent] Unable to create Orocos
> Component 'SimpleNonPeriodicClient': unknown component type.
> 0.059 [ Warning][DeploymentComponent::loadComponents] Could not
> configure 'SimpleNonPeriodicClient': No such peer.
> 0.059 [ ERROR ][Logger] Failed to load a component: aborting kick-start.
>
>
> any light to help me in the path .....
>
>
> Regards,
>
> Leo
>
> PS. I would like to send the example with the new cmake to Stephen Roderick to
> update the wiki page, but when it works ...

Please do! Which actually brings up a larger topic ...

I suggest creation of an "examples" repository on Gitorious, that contains tested and working examples of how to do things in Orocos. This goes from Peter's RTT tutorial, through the several examples I have on the Orocos wiki, to KDL and BFL examples, to a user-perspective hello world component example, and other examples leading up to a full and complete example working robot system. As an ecosystem, we remain utterly lacking in this regard. It is the very first critique I consistenly get from new users ...

I am happy to maintain such a repo.
S

Error loading a component but now it's a port problem

A Dijous 11 Novembre 2010, S Roderick va escriure:
> On Nov 11, 2010, at 04:57 , Leopold Palomo-Avellaneda wrote:
> > Hi,
> >
> > I have converted the example of simple tcp client to rtt2.x using the
> > scripts provided by Peter. The conversion worked more or less smoothly
> > and only a few changes were needed : new cmake and a change with the
> > name of a function.
> >
> > I have tried to run the example, but I got this error and I'm a bit lost:
> >
> >
> > 0.059 [ ERROR ][DeploymentComponent::loadComponent] Unable to create
> > Orocos Component 'SimpleNonPeriodicClient': unknown component type.
> > 0.059 [ Warning][DeploymentComponent::loadComponents] Could not
> > configure 'SimpleNonPeriodicClient': No such peer.
> > 0.059 [ ERROR ][Logger] Failed to load a component: aborting kick-start.
> >
> >
> > any light to help me in the path .....
> >

Ok,

I have loaded the component. However, the problem (I think) is somthing
reported before. The component uses a port that send a std:string. You must
specify to RTT to add this kind of type adding:

RTT::types::TypeInfoRepository::Instance()->addType( new
RTT::types::StdVectorTemplateTypeInfo<std::string,true>("strings") );

but I got this error:

SimpleNonPeriodicClient.cpp: In
constructor ‘SimpleNonPeriodicClient::SimpleNonPeriodicClient(std::string)’:
/home/users/leopold.palomo/robotica/projects/mrcuoxar/soft/example/SimpleNonPeriodicClient/SimpleNonPeriodicClient.cpp:107:
error: invalid use of incomplete type ‘struct
RTT::types::StdVectorTemplateTypeInfo<std::basic_string std::char_traits /usr/local/orocos/include/rtt/plugin/../types/rtt-types-fwd.hpp:21: error:
declaration of ‘struct
RTT::types::StdVectorTemplateTypeInfo<std::basic_string std::char_traits make[2]: ***
[CMakeFiles/SimpleNonPeriodicClient.dir/SimpleNonPeriodicClient.cpp.o] Error
1
make[1]: *** [CMakeFiles/SimpleNonPeriodicClient.dir/all] Error 2
make: *** [all] Error 2

Any idea?

> > Regards,
> >
> > Leo
> >
> > PS. I would like to send the example with the new cmake to Stephen
> > Roderick to update the wiki page, but when it works ...

> Please do! Which actually brings up a larger topic ...

yes, yes, but I would like to send something that works.

Leo
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

Error loading a component but now it's a port problem

On Thu, Nov 11, 2010 at 3:22 PM, Leopold Palomo-Avellaneda
<leopold [dot] palomo [..] ...> wrote:
> A Dijous 11 Novembre 2010, S Roderick va escriure:
>> On Nov 11, 2010, at 04:57 , Leopold Palomo-Avellaneda wrote:
>> > Hi,
>> >
>> > I have converted the example of simple tcp client to rtt2.x using the
>> > scripts provided by Peter. The conversion worked more or less smoothly
>> > and only a few changes were needed : new cmake and  a change with the
>> > name of a function.
>> >
>> > I have tried to run the example, but I got this error and I'm a bit lost:
>> >
>> >
>> > 0.059 [ ERROR  ][DeploymentComponent::loadComponent] Unable to create
>> > Orocos Component 'SimpleNonPeriodicClient': unknown component type.
>> > 0.059 [ Warning][DeploymentComponent::loadComponents] Could not
>> > configure 'SimpleNonPeriodicClient': No such peer.
>> > 0.059 [ ERROR  ][Logger] Failed to load a component: aborting kick-start.
>> >
>> >
>> > any light to help me in the path .....
>> >
>
> Ok,
>
> I have loaded the component. However, the problem (I think) is somthing
> reported before. The component uses a port that send a std:string. You must
> specify to RTT to add this kind of type adding:
>
>  RTT::types::TypeInfoRepository::Instance()->addType( new
> RTT::types::StdVectorTemplateTypeInfo<std::string,true>("strings") );

Do you really need this ? If your port uses 'string', but it's not
known in the deployer,
it must be because the RTT_COMPONENT_PATH is wrong.

The 'strings' type (which I doubt!) can be added by writing:

RTT::types::Types()->addType( new
SequenceTypeInfo<std::string,true>("strings"));

Setting the type path automatically will be part of the next release,
which will liberate
you from the hurdles you had now with RTT_COMPONENT_PATH.

Peter
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

Error loading a component but now it's a port problem

A Dijous 11 Novembre 2010, Peter Soetens va escriure:
> On Thu, Nov 11, 2010 at 3:22 PM, Leopold Palomo-Avellaneda
>
> <leopold [dot] palomo [..] ...> wrote:
> > A Dijous 11 Novembre 2010, S Roderick va escriure:
> >> On Nov 11, 2010, at 04:57 , Leopold Palomo-Avellaneda wrote:
> >> > Hi,
> >> >
> >> > I have converted the example of simple tcp client to rtt2.x using the
> >> > scripts provided by Peter. The conversion worked more or less smoothly
> >> > and only a few changes were needed : new cmake and a change with the
> >> > name of a function.
> >> >
> >> > I have tried to run the example, but I got this error and I'm a bit
> >> > lost:
> >> >
> >> >
> >> > 0.059 [ ERROR ][DeploymentComponent::loadComponent] Unable to create
> >> > Orocos Component 'SimpleNonPeriodicClient': unknown component type.
> >> > 0.059 [ Warning][DeploymentComponent::loadComponents] Could not
> >> > configure 'SimpleNonPeriodicClient': No such peer.
> >> > 0.059 [ ERROR ][Logger] Failed to load a component: aborting
> >> > kick-start.
> >> >
> >> >
> >> > any light to help me in the path .....
> >
> > Ok,
> >
> > I have loaded the component. However, the problem (I think) is somthing
> > reported before. The component uses a port that send a std:string. You
> > must specify to RTT to add this kind of type adding:
> >
> > RTT::types::TypeInfoRepository::Instance()->addType( new
> > RTT::types::StdVectorTemplateTypeInfo<std::string,true>("strings") );
>
> Do you really need this ? If your port uses 'string', but it's not
> known in the deployer,
> it must be because the RTT_COMPONENT_PATH is wrong.
>
> The 'strings' type (which I doubt!) can be added by writing:
>
> RTT::types::Types()->addType( new
> SequenceTypeInfo<std::string,true>("strings"));
>
> Setting the type path automatically will be part of the next release,
> which will liberate
> you from the hurdles you had now with RTT_COMPONENT_PATH.
>

grrrrrrrrrr

RTT_COMPONENT_PATH=/usr/local/orocos/lib/orocos !!!!!!!!!!!!!

.........................

0.901 [ Info ][Thread] Creating Thread for scheduler: 1
0.909 [ Warning][Thread] Lowering scheduler type to SCHED_OTHER for non-
privileged users..
0.917 [ Warning][Activity] Lowering scheduler type to SCHED_OTHER for non-
privileged users..
0.926 [ Info ][Activity] Thread created with scheduler type '0', priority 0
and period 0.
0.934 [ Info ][PropertyLoader:configure] Configuring TaskContext
'SimpleNonPeriodicClient' with '../SimpleNonPeriodicClient.cpf'.
0.943 [ Info ][DeploymentComponent::configureComponents] Configured Properties
of SimpleNonPeriodicClient from ../SimpleNonPeriodicClient.cpf
0.951 [ Info ][DeploymentComponent::configureComponents] Re-setting activity
of SimpleNonPeriodicClient
0.959 [ Info ][DeploymentComponent::configureComponents] Configuration
successful.
0.967 [ Info ][SimpleNonPeriodicClient] Connecting to 127.0.0.1:50001
0.976 [ Info ][SimpleNonPeriodicClient] Connected
0.984 [ Info ][DeploymentComponent::startComponents] Startup of 'AutoStart'
components successful.
0.992 [ Info ][Logger] Successfully loaded, configured and started components
from ../SimpleNonPeriodicClient.xml
1.001 [ Info ][Thread] Creating Thread for scheduler: 0
1.009 [ Info ][TaskBrowser] Thread created with scheduler type '0', priority
0 and period 0.
Switched to : Deployer
1.018 [ Info ][Logger] Entering Task Deployer

ok, it now works more or less. In theory you should see the message send by
nc. No?

Regards,

and I'm sorry for the noise ...

Leo

--
--
Leopold Palomo-Avellaneda <leopold [dot] palomo [..] ...>
Institut d'Organització i Control de Sistemes Industrials
Universitat Politècnica de Catalunya
Avda. Diagonal 647, pl. 11
08028 BARCELONA (Spain)

Tel. +34-934017163
Fax. +34-934016605
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

Error loading a component but now it's a port problem

On Thu, Nov 11, 2010 at 9:46 PM, Leopold Palomo-Avellaneda
<leopold [dot] palomo [..] ...> wrote:
...
> 0.992 [ Info   ][Logger] Successfully loaded, configured and started components
> from ../SimpleNonPeriodicClient.xml
> 1.001 [ Info   ][Thread] Creating Thread for scheduler: 0
> 1.009 [ Info   ][TaskBrowser] Thread created with scheduler type '0', priority
> 0 and period 0.
>   Switched to : Deployer
> 1.018 [ Info   ][Logger] Entering Task Deployer
>
>
> ok, it now works more or less. In theory you should see the message send by
> nc. No?

Not only in theory ! It works in practice too !

Peter
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

Error loading a component but now it's a port problem

A Dijous 11 Novembre 2010, Peter Soetens va escriure:
> On Thu, Nov 11, 2010 at 9:46 PM, Leopold Palomo-Avellaneda
> <leopold [dot] palomo [..] ...> wrote:
> ...
>
> > 0.992 [ Info ][Logger] Successfully loaded, configured and started
> > components from ../SimpleNonPeriodicClient.xml
> > 1.001 [ Info ][Thread] Creating Thread for scheduler: 0
> > 1.009 [ Info ][TaskBrowser] Thread created with scheduler type '0',
> > priority 0 and period 0.
> > Switched to : Deployer
> > 1.018 [ Info ][Logger] Entering Task Deployer
> >
> >
> > ok, it now works more or less. In theory you should see the message send
> > by nc. No?
>
> Not only in theory ! It works in practice too !
>

no messages ... however I have made a lot of mistakes today, so tomorrow I
will review it.

--
--
Leopold Palomo-Avellaneda <leopold [dot] palomo [..] ...>
Institut d'Organització i Control de Sistemes Industrials
Universitat Politècnica de Catalunya
Avda. Diagonal 647, pl. 11
08028 BARCELONA (Spain)

Tel. +34-934017163
Fax. +34-934016605
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users