rtt-exercises hello-7-deployment

Hi,

We have a problem when we try to make the exercise.

We have the following message from the terminal we try to compile the cpp files:

lias@lias-desktop:~/orocos-tutorials/orocos-rtt-examples/rtt-exercises/hello-7-deployment$ make g++ -g -o libhello-gnulinux.so Hello.cpp -I`rospack find rtt_2.0)`/install/include -I`rospack find ocl_2.0)`/install/include -DOROCOS_TARGET=gnulinux -fPIC -DOCL_DLL_EXPORT -L`rospack find ocl_2.0)`/install/lib -Wl,-rpath `rospack find ocl_2.0)`/install/lib -L`rospack find rtt_2.0)`/install/lib -Wl,-rpath `rospack find rtt_2.0)`/install/lib -lorocos-taskbrowser-gnulinux -lorocos-rtt-gnulinux -lrt -lpthread /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/crt1.o: In function `_start': (.text+0x18): undefined reference to `main' collect2: ld returned 1 exit status make: *** [libhello-gnulinux.so] Error 1

On the other hand we have an error when we try to execute the deployer.

deployer-gnulinux: command not found

We have probably missed to add this command.

Thanks

rtt-exercises hello-7-deployment

On Tuesday 29 June 2010 14:43:13 pierre [..] ... wrote:
> Hi,
>
> We have a problem when we try to make the exercise.
>
> We have the following message from the terminal we try to compile the cpp
> files:
>
> lias@lias-desktop:~/orocos-tutorials/orocos-rtt-examples/rtt-exercises/hell
> o-7-deployment$ make g++ -g -o libhello-gnulinux.so Hello.cpp -I`rospack
> find rtt_2.0)`/install/include -I`rospack find ocl_2.0)`/install/include
> -DOROCOS_TARGET=gnulinux -fPIC -DOCL_DLL_EXPORT -L`rospack find
> ocl_2.0)`/install/lib -Wl,-rpath `rospack find ocl_2.0)`/install/lib
> -L`rospack find rtt_2.0)`/install/lib -Wl,-rpath `rospack find
> rtt_2.0)`/install/lib -lorocos-taskbrowser-gnulinux -lorocos-rtt-gnulinux
> -lrt -lpthread /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/crt1.o:
> In function `_start': (.text+0x18): undefined reference to `main'
> collect2: ld returned 1 exit status
> make: *** [libhello-gnulinux.so] Error 1

You modified the Makefile wrongly. It lacks the '-shared' flag which was
originally in the LDFLAGS of that file. Probably a copy/paste error ?

Use 'git diff' to see the differences you made.

>
> On the other hand we have an error when we try to execute the deployer.
>
> deployer-gnulinux: command not found
>
> We have probably missed to add this command.

This one comes from your OCL build and should be created in the ocl/build/bin
directory. So you could try to run:
`rospack find ocl_2.0)`/install/bin/deployer-gnulinux

But it's probably better to create a symlink in one of your bin directories to
that location.

Peter

Orocos Tutorials - hello 7 deployment

Hello,

We are still trying to complete the exercice 7. However we have some difficulties in using the deployer. We don't succes in connecting ports and to "Autostart" the World component. In order to solve the problem we have tried to update rtt to rtt2.0 beta3 and ocl.

The errors are now :

lias@lias-desktop:~/orocos-tutorials/orocos-rtt-examples/rtt-exercises/hello-7-deployment$ `rospack find ocl_2.0`/build/ocl_2.0-git/bin/deployer-gnulinux -s application.xml
0.042 [ ERROR ][TypeInfoName] Can not compose unknown_t.
0.043 [ ERROR ][DeploymentComponent::loadComponent] Unable to create Orocos Component 'Example::World': unknown component type.
0.043 [ Warning][DeploymentComponent::loadComponents] Could not configure 'World': No such peer.
0.043 [ ERROR ][TypeInfoName] Can not compose unknown_t.
0.043 [ ERROR ][DeploymentComponent::loadComponent] Unable to create Orocos Component 'Example::Hello': unknown component type.
0.043 [ Warning][DeploymentComponent::loadComponents] Could not configure 'Hello': No such peer.
0.043 [ ERROR ][Logger] Failed to load a component: aborting kick-start.
Switched to : Deployer

This console reader allows you to browse and manipulate TaskContexts.
You can type in an operation, expression, create or change variables.
(type 'help' for instructions)
TAB completion and HISTORY is available ('bash' like)

In Task Deployer[S]

////////////////////////////////////////////////////////////////////

It could be due to our xml file, that's why you can find it in enclosure.

Orocos Tutorials - hello 7 deployment

Hello

With the modification and using the original verison of the xml file we still have an error:

lias@lias-desktop:~/orocos-tutorials/orocos-rtt-examples/rtt-exercises/hello-7-deployment$ `rospack find ocl_2.0`/build/ocl_2.0-git/bin/deployer-gnulinux -s application.xml 0.144 [ Warning][DeploymentComponent::loadComponents] propertyDecomposition: Part 'size' of type int is not changeable. 0.145 [ Warning][DeploymentComponent::loadComponents] propertyDecomposition: Part 'capacity' of type int is not changeable. 0.145 [ ERROR ][DeploymentComponent::configureComponents] No configuration loaded ! 0.145 [ ERROR ][Logger] Failed to configure a component: aborting kick-start.

   Switched to : Deployer

  This console reader allows you to browse and manipulate TaskContexts.
  You can type in an operation, expression, create or change variables.
  (type 'help' for instructions)
    TAB completion and HISTORY is available ('bash' like)

 In Task Deployer[S]
Thank you

Pierre and Sébastien

Orocos Tutorials - hello 7 deployment

On Wednesday 30 June 2010 16:22:30 pierre [..] ... wrote:
> Hello
>
> With the modification and using the original verison of the xml file we
> still have an error:
>
> lias@lias-desktop:~/orocos-tutorials/orocos-rtt-examples/rtt-exercises/hell
> o-7-deployment$ `rospack find
> ocl_2.0`/build/ocl_2.0-git/bin/deployer-gnulinux -s application.xml 0.144
> [ Warning][DeploymentComponent::loadComponents] propertyDecomposition:
> Part 'size' of type int is not changeable. 0.145 [
> Warning][DeploymentComponent::loadComponents] propertyDecomposition: Part
> 'capacity' of type int is not changeable. 0.145 [ ERROR
> ][DeploymentComponent::configureComponents] No configuration loaded !
> 0.145 [ ERROR ][Logger] Failed to configure a component: aborting
> kick-start. Switched to : Deployer
>
> This console reader allows you to browse and manipulate TaskContexts.
> You can type in an operation, expression, create or change variables.
> (type 'help' for instructions)
> TAB completion and HISTORY is available ('bash' like)
>
> In Task Deployer[S]
>

Both this bug and a crash during 'quit' have been fixed. I've pushed the fixes
to the 2.0 mainlines on github. The exercise is running ok here now.

Peter

Orocos Tutorials - hello 7 deployment

Hello,

We are still trying to complete the exercice 7. However we have some difficulties in using the deployer. We don't succes in connecting ports and to "Autostart" the World component. In order to solve the problem we have tried to update rtt to rtt2.0 beta3 and ocl.

The errors are now :

lias@lias-desktop:~/orocos-tutorials/orocos-rtt-examples/rtt-exercises/hello-7-deployment$ `rospack find ocl_2.0`/build/ocl_2.0-git/bin/deployer-gnulinux -s application.xml 0.042 [ ERROR ][TypeInfoName] Can not compose unknown_t. 0.043 [ ERROR ][DeploymentComponent::loadComponent] Unable to create Orocos Component 'Example::World': unknown component type. 0.043 [ Warning][DeploymentComponent::loadComponents] Could not configure 'World': No such peer. 0.043 [ ERROR ][TypeInfoName] Can not compose unknown_t. 0.043 [ ERROR ][DeploymentComponent::loadComponent] Unable to create Orocos Component 'Example::Hello': unknown component type. 0.043 [ Warning][DeploymentComponent::loadComponents] Could not configure 'Hello': No such peer. 0.043 [ ERROR ][Logger] Failed to load a component: aborting kick-start.

   Switched to : Deployer

  This console reader allows you to browse and manipulate TaskContexts.
  You can type in an operation, expression, create or change variables.
  (type 'help' for instructions)
    TAB completion and HISTORY is available ('bash' like)

 In Task Deployer[S]
////////////////////////////////////////////////////////////////////

It could be due to our xml file, that's why you can find it in enclosure.

Orocos Tutorials - hello 7 deployment

Hello

With the modification and using the original verison of the xml file we still have an error:

lias@lias-desktop:~/orocos-tutorials/orocos-rtt-examples/rtt-exercises/hello-7-deployment$ `rospack find ocl_2.0`/build/ocl_2.0-git/bin/deployer-gnulinux -s application.xml
0.144 [ Warning][DeploymentComponent::loadComponents] propertyDecomposition: Part 'size' of type int is not changeable.
0.145 [ Warning][DeploymentComponent::loadComponents] propertyDecomposition: Part 'capacity' of type int is not changeable.
0.145 [ ERROR ][DeploymentComponent::configureComponents] No configuration loaded !
0.145 [ ERROR ][Logger] Failed to configure a component: aborting kick-start.
Switched to : Deployer

This console reader allows you to browse and manipulate TaskContexts.
You can type in an operation, expression, create or change variables.
(type 'help' for instructions)
TAB completion and HISTORY is available ('bash' like)

In Task Deployer[S]

Thank you

Pierre and Sébastien
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

Orocos Tutorials - hello 7 deployment

2010/6/30 pierre [..] ... <pierre [..] ...>:
> Hello,
>
> We are still trying to complete the exercice 7. However we have some difficulties in using the deployer. We don't succes in connecting ports and to "Autostart" the World component. In order to solve the problem we have tried to update rtt to rtt2.0 beta3 and ocl.
>
> The errors are now :
>
> lias@lias-desktop:~/orocos-tutorials/orocos-rtt-examples/rtt-exercises/hello-7-deployment$ `rospack find ocl_2.0`/build/ocl_2.0-git/bin/deployer-gnulinux -s application.xml
> 0.042 [ ERROR  ][TypeInfoName] Can not compose unknown_t.
> 0.043 [ ERROR  ][DeploymentComponent::loadComponent] Unable to create Orocos Component 'Example::World': unknown component type.
> 0.043 [ Warning][DeploymentComponent::loadComponents] Could not configure 'World': No such peer.
> 0.043 [ ERROR  ][TypeInfoName] Can not compose unknown_t.
> 0.043 [ ERROR  ][DeploymentComponent::loadComponent] Unable to create Orocos Component 'Example::Hello': unknown component type.
> 0.043 [ Warning][DeploymentComponent::loadComponents] Could not configure 'Hello': No such peer.
> 0.043 [ ERROR  ][Logger] Failed to load a component: aborting kick-start.
>   Switched to : Deployer
>
>  This console reader allows you to browse and manipulate TaskContexts.
>  You can type in an operation, expression, create or change variables.
>  (type 'help' for instructions)
>    TAB completion and HISTORY is available ('bash' like)
>
>  In Task Deployer[S]
>
> ////////////////////////////////////////////////////////////////////
>
> It could be due to our xml file, that's why you can find it in enclosure.

See Peters email yesterday "[Orocos-users] deployer and
RTT_COMPONENT_PATH in beta3". You have to set your RTT_COMPONENT_PATH
in order to find the toolkits.
something like:

export RTT_COMPONENT_PATH=`rospack find
rtt_2.0`/install/lib/orocos:`rospack find rtt_2.0`/install/lib

Steven

>
>
>

Orocos Tutorials - hello 7 deployment

On 06/30/2010 11:16 AM, pierre [..] ... wrote:
> Hello,
>
> We are still trying to complete the exercice 7. However we have some difficulties in using the deployer. We don't succes in connecting ports and to "Autostart" the World component. In order to solve the problem we have tried to update rtt to rtt2.0 beta3 and ocl.
>
>
try the exercices in a rospackage:

https://svn.mech.kuleuven.be/websvn/orocos/orocos-apps/public_release/or...

as stated in the mail of steven

nick

> The errors are now :
>
> lias@lias-desktop:~/orocos-tutorials/orocos-rtt-examples/rtt-exercises/hello-7-deployment$ `rospack find ocl_2.0`/build/ocl_2.0-git/bin/deployer-gnulinux -s application.xml
> 0.042 [ ERROR ][TypeInfoName] Can not compose unknown_t.
> 0.043 [ ERROR ][DeploymentComponent::loadComponent] Unable to create Orocos Component 'Example::World': unknown component type.
> 0.043 [ Warning][DeploymentComponent::loadComponents] Could not configure 'World': No such peer.
> 0.043 [ ERROR ][TypeInfoName] Can not compose unknown_t.
> 0.043 [ ERROR ][DeploymentComponent::loadComponent] Unable to create Orocos Component 'Example::Hello': unknown component type.
> 0.043 [ Warning][DeploymentComponent::loadComponents] Could not configure 'Hello': No such peer.
> 0.043 [ ERROR ][Logger] Failed to load a component: aborting kick-start.
> Switched to : Deployer
>
> This console reader allows you to browse and manipulate TaskContexts.
> You can type in an operation, expression, create or change variables.
> (type 'help' for instructions)
> TAB completion and HISTORY is available ('bash' like)
>
> In Task Deployer[S]
>
> ////////////////////////////////////////////////////////////////////
>
> It could be due to our xml file, that's why you can find it in enclosure.
>
>
>

rtt-exercises hello-7-deployment

Hi,

We have a problem when we try to make the exercise.

We have the following message from the terminal we try to compile the cpp files:

lias@lias-desktop:~/orocos-tutorials/orocos-rtt-examples/rtt-exercises/hello-7-deployment$ make
g++ -g -o libhello-gnulinux.so Hello.cpp -I`rospack find rtt_2.0)`/install/include -I`rospack find ocl_2.0)`/install/include -DOROCOS_TARGET=gnulinux -fPIC -DOCL_DLL_EXPORT -L`rospack find ocl_2.0)`/install/lib -Wl,-rpath `rospack find ocl_2.0)`/install/lib -L`rospack find rtt_2.0)`/install/lib -Wl,-rpath `rospack find rtt_2.0)`/install/lib -lorocos-taskbrowser-gnulinux -lorocos-rtt-gnulinux -lrt -lpthread
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [libhello-gnulinux.so] Error 1

On the other hand we have an error when we try to execute the deployer.

deployer-gnulinux: command not found

We have probably missed to add this command.

Thanks