failed to import rtt_ros in the deployer

Hi (again ^^)

I'm trying to launch a simple deployer and import the "rtt_ros" package to
the path.

To launch the deployer I use :
roslaunch rtt_ros deployer.launch LOG_LEVEL:=debug

Then I type :
Deployer [S]> import("rtt_ros")

The rtt_ros plugin is found as I have the following line :
24.048 [ Debug ][ComponentLoader::import(path_list)] Scanning file
/home/ard/arp_os/dependencies/ros_addons/install_isolated/lib/orocos/gnulinux/rtt_ros/plugins/librtt_ros-gnulinux.so
...Found library librtt_ros-gnulinux.so

Here is the complete error log :

Deployer [S]> import("rtt_ros")
24.001 [ Info ][ComponentLoader::import(path_list)] Importing directory
/home/ard/arp_os/dependencies/ros_addons/install_isolated/lib/orocos/gnulinux/rtt_ros
...
24.001 [ Debug ][ComponentLoader::import(path_list)] Scanning file
/home/ard/arp_os/dependencies/ros_addons/install_isolated/lib/orocos/gnulinux/rtt_ros/types
...not a regular file: ignored.
24.001 [ Debug ][ComponentLoader::import(path_list)] Scanning file
/home/ard/arp_os/dependencies/ros_addons/install_isolated/lib/orocos/gnulinux/rtt_ros/plugins
...not a regular file: ignored.
24.001 [ Debug ][ComponentLoader::import(path_list)] Looking for plugins
or typekits in directory
/home/ard/arp_os/dependencies/ros_addons/install_isolated/lib/orocos/gnulinux/rtt_ros
...
24.002 [ Info ][ComponentLoader::import(path_list)] Loading typekit
libraries from directory
/home/ard/arp_os/dependencies/ros_addons/install_isolated/lib/orocos/gnulinux/rtt_ros/types
...
24.043 [ Debug ][ComponentLoader::import(path_list)] Scanning file
/home/ard/arp_os/dependencies/ros_addons/install_isolated/lib/orocos/gnulinux/rtt_ros/types/librtt-ros-primitives-typekit-gnulinux.so
...Found library librtt-ros-primitives-typekit-gnulinux.so
24.043 [ Info ][TypekitRepository::Import] Loading Typekit ros-primitives.
24.043 [ Debug ][TypekitRepository::Import] Registered Type 'time' to the
Orocos Type System.
24.043 [ Debug ][TypekitRepository::Import] Registered Type 'duration' to
the Orocos Type System.
24.043 [ Debug ][TypekitRepository::Import] Registered Type 'int8' to the
Orocos Type System.
24.043 [ Debug ][TypekitRepository::Import] Registered Type 'int8[]' to
the Orocos Type System.
24.043 [ Debug ][TypekitRepository::Import] Registered Type 'cint8[]' to
the Orocos Type System.
24.043 [ Debug ][TypekitRepository::Import] Registered Type 'uint8' to the
Orocos Type System.
24.043 [ Debug ][TypekitRepository::Import] Registered Type 'uint8[]' to
the Orocos Type System.
24.044 [ Debug ][TypekitRepository::Import] Registered Type 'cuint8[]' to
the Orocos Type System.
24.044 [ Debug ][TypekitRepository::Import] Registered Type 'int16' to the
Orocos Type System.
24.044 [ Debug ][TypekitRepository::Import] Registered Type 'int16[]' to
the Orocos Type System.
24.044 [ Debug ][TypekitRepository::Import] Registered Type 'cint16[]' to
the Orocos Type System.
24.044 [ Debug ][TypekitRepository::Import] Registered Type 'uint16' to
the Orocos Type System.
24.044 [ Debug ][TypekitRepository::Import] Registered Type 'uint16[]' to
the Orocos Type System.
24.044 [ Debug ][TypekitRepository::Import] Registered Type 'cuint16[]' to
the Orocos Type System.
24.044 [ Debug ][TypekitRepository::Import] Registered Type 'int32' to the
Orocos Type System.
24.044 [ Debug ][TypekitRepository::Import] Registered Type 'int32[]' to
the Orocos Type System.
24.044 [ Debug ][TypekitRepository::Import] Registered Type 'cint32[]' to
the Orocos Type System.
24.044 [ Debug ][TypekitRepository::Import] Registered Type 'uint32' to
the Orocos Type System.
24.044 [ Debug ][TypekitRepository::Import] Registered Type 'uint32[]' to
the Orocos Type System.
24.044 [ Debug ][TypekitRepository::Import] Registered Type 'cuint32[]' to
the Orocos Type System.
24.045 [ Debug ][TypekitRepository::Import] Registered Type 'int64' to the
Orocos Type System.
24.045 [ Debug ][TypekitRepository::Import] Registered Type 'int64[]' to
the Orocos Type System.
24.045 [ Debug ][TypekitRepository::Import] Registered Type 'cint64[]' to
the Orocos Type System.
24.045 [ Debug ][TypekitRepository::Import] Registered Type 'uint64' to
the Orocos Type System.
24.045 [ Debug ][TypekitRepository::Import] Registered Type 'uint64[]' to
the Orocos Type System.
24.045 [ Debug ][TypekitRepository::Import] Registered Type 'cuint64[]' to
the Orocos Type System.
24.045 [ Debug ][TypekitRepository::Import] Registered Type 'float32' to
the Orocos Type System.
24.045 [ Debug ][TypekitRepository::Import] Registered Type 'float32[]' to
the Orocos Type System.
24.045 [ Debug ][TypekitRepository::Import] Registered Type 'cfloat32[]'
to the Orocos Type System.
24.045 [ Debug ][TypekitRepository::Import] Registered Type 'float64' to
the Orocos Type System.
24.045 [ Debug ][TypekitRepository::Import] Registered Type 'float64[]' to
the Orocos Type System.
24.045 [ Debug ][TypekitRepository::Import] Registered Type 'cfloat64[]'
to the Orocos Type System.
24.045 [ Debug ][TypekitRepository::Import] Registered Type 'string' to
the Orocos Type System.
24.045 [ Debug ][TypekitRepository::Import] Registered Type 'string[]' to
the Orocos Type System.
24.046 [ Debug ][TypekitRepository::Import] Registered Type 'cstring[]' to
the Orocos Type System.
24.046 [ Info ][ComponentLoader::import(path_list)] Loaded RTT
TypeKit/Transport 'ros-primitives' from 'rtt-ros-primitives-typekit'
24.046 [ Info ][ComponentLoader::import(path_list)] Loading plugin
libraries from directory
/home/ard/arp_os/dependencies/ros_addons/install_isolated/lib/orocos/gnulinux/rtt_ros/plugins
...
24.048 [ Debug ][ComponentLoader::import(path_list)] Scanning file
/home/ard/arp_os/dependencies/ros_addons/install_isolated/lib/orocos/gnulinux/rtt_ros/plugins/librtt_ros-gnulinux.so
...Found library librtt_ros-gnulinux.so
24.048 [ ERROR ][ComponentLoader::import(path_list)] Unexpected exception
in loadRTTPlugin !
24.048 [ ERROR ][ComponentLoader::import(path_list)] Failed to load RTT
Plugin 'ros': plugin refused to load into this process. Unloading.
24.048 [ ERROR ][ComponentLoader::import(path_list)] Some found plugins
could not be loaded !
24.048 [ ERROR ][Logger] Exception raised while executing an operation :
Some found plugins could not be loaded !
24.048 [ ERROR ][Logger] in Deployer: unhandled exception in sent
operation.
The command 'import("rtt_ros")' caused a std::exception: 'Unable to
complete the operation call. The called operation has thrown an exception'
and could not be completed.

Ruben Smits's picture

failed to import rtt_ros in the deployer

Hi Willy,

On Thu, Mar 6, 2014 at 2:09 AM, Willy Lambert <lambert [dot] willy [..] ...> wrote:
> Hi (again ^^)
>
> I'm trying to launch a simple deployer and import the "rtt_ros" package to
> the path.
>
> To launch the deployer I use :
> roslaunch rtt_ros deployer.launch LOG_LEVEL:=debug
>
> Then I type :
> Deployer [S]> import("rtt_ros")
>
> The rtt_ros plugin is found as I have the following line :
> 24.048 [ Debug ][ComponentLoader::import(path_list)] Scanning file
> /home/ard/arp_os/dependencies/ros_addons/install_isolated/lib/orocos/gnulinux/rtt_ros/plugins/librtt_ros-gnulinux.so
> ...Found library librtt_ros-gnulinux.so
>
>
>
> Here is the complete error log :
>
....
> /home/ard/arp_os/dependencies/ros_addons/install_isolated/lib/orocos/gnulinux/rtt_ros/plugins
> ...
> 24.048 [ Debug ][ComponentLoader::import(path_list)] Scanning file
> /home/ard/arp_os/dependencies/ros_addons/install_isolated/lib/orocos/gnulinux/rtt_ros/plugins/librtt_ros-gnulinux.so
> ...Found library librtt_ros-gnulinux.so
> 24.048 [ ERROR ][ComponentLoader::import(path_list)] Unexpected exception
> in loadRTTPlugin !
> 24.048 [ ERROR ][ComponentLoader::import(path_list)] Failed to load RTT
> Plugin 'ros': plugin refused to load into this process. Unloading.
> 24.048 [ ERROR ][ComponentLoader::import(path_list)] Some found plugins
> could not be loaded !
> 24.048 [ ERROR ][Logger] Exception raised while executing an operation :
> Some found plugins could not be loaded !
> 24.048 [ ERROR ][Logger] in Deployer: unhandled exception in sent
> operation.
> The command 'import("rtt_ros")' caused a std::exception: 'Unable to complete
> the operation call. The called operation has thrown an exception' and could
> not be completed.
>

I've seen this on my Ubuntu 13.10 (Saucy), ROS Indigo system too with
catkin_make_isolated.

Ruben

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

Ruben Smits's picture

failed to import rtt_ros in the deployer

Hi all,

On Thu, Mar 6, 2014 at 9:02 AM, Ruben Smits
<ruben [dot] smits [..] ...> wrote:
> Hi Willy,
>
> On Thu, Mar 6, 2014 at 2:09 AM, Willy Lambert <lambert [dot] willy [..] ...> wrote:
>> Hi (again ^^)
>>
>> I'm trying to launch a simple deployer and import the "rtt_ros" package to
>> the path.
>>
>> To launch the deployer I use :
>> roslaunch rtt_ros deployer.launch LOG_LEVEL:=debug
>>
>> Then I type :
>> Deployer [S]> import("rtt_ros")
>>
>> The rtt_ros plugin is found as I have the following line :
>> 24.048 [ Debug ][ComponentLoader::import(path_list)] Scanning file
>> /home/ard/arp_os/dependencies/ros_addons/install_isolated/lib/orocos/gnulinux/rtt_ros/plugins/librtt_ros-gnulinux.so
>> ...Found library librtt_ros-gnulinux.so
>>
>>
>>
>> Here is the complete error log :
>>
> ....
>> /home/ard/arp_os/dependencies/ros_addons/install_isolated/lib/orocos/gnulinux/rtt_ros/plugins
>> ...
>> 24.048 [ Debug ][ComponentLoader::import(path_list)] Scanning file
>> /home/ard/arp_os/dependencies/ros_addons/install_isolated/lib/orocos/gnulinux/rtt_ros/plugins/librtt_ros-gnulinux.so
>> ...Found library librtt_ros-gnulinux.so
>> 24.048 [ ERROR ][ComponentLoader::import(path_list)] Unexpected exception
>> in loadRTTPlugin !
>> 24.048 [ ERROR ][ComponentLoader::import(path_list)] Failed to load RTT
>> Plugin 'ros': plugin refused to load into this process. Unloading.
>> 24.048 [ ERROR ][ComponentLoader::import(path_list)] Some found plugins
>> could not be loaded !
>> 24.048 [ ERROR ][Logger] Exception raised while executing an operation :
>> Some found plugins could not be loaded !
>> 24.048 [ ERROR ][Logger] in Deployer: unhandled exception in sent
>> operation.
>> The command 'import("rtt_ros")' caused a std::exception: 'Unable to complete
>> the operation call. The called operation has thrown an exception' and could
>> not be completed.
>>
>
> I've seen this on my Ubuntu 13.10 (Saucy), ROS Indigo system too with
> catkin_make_isolated.

I dugg into this a little bit and got to the following:

Deployer [S]> import("rtt_ros")
4.170 [ ERROR ][ComponentLoader::import(path_list)] Loading ros threw
an exception: tr1::bad_weak_ptr
4.170 [ ERROR ][ComponentLoader::import(path_list)] Failed to load
RTT Plugin 'ros': plugin refused to load into this process. Unloading.

I'm using gcc 4.8.1 which is the same as in Debian Jessy. So it might
be related to that.

Ruben

> Ruben
>
>>
>> --
>> Orocos-Users mailing list
>> Orocos-Users [..] ...
>> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>>
>
>
>
> --
> Ruben Smits, CTO
> +32 479 511 786
> Intermodalics - Kapeldreef 60, 3001 Heverlee - BELGIUM
> www.intermodalics.eu
>
> ---------------------------------------------------------------------------------------------------------------------------------------
> This email and any attached files are confidential and may be legally
> privileged. Any copy, print or forward of this email, without the
> agreement of sender or addressee, is strictly prohibited. Misuse is a
> violation of the law on personal data protection (D. Lgs. 196/2003)
> and on secrecy of correspondence (art. 616 cp). If you have received
> this transmission in error please notify the sender immediately and
> then delete this email and any attached files.

failed to import rtt_ros in the deployer

Ruben,

Is this specific to rtt_ros or does it happen with any global service?

-j
On Mar 6, 2014 4:00 AM, "Ruben Smits" <ruben [dot] smits [..] ...> wrote:

> Hi all,
>
> On Thu, Mar 6, 2014 at 9:02 AM, Ruben Smits
> <ruben [dot] smits [..] ...> wrote:
> > Hi Willy,
> >
> > On Thu, Mar 6, 2014 at 2:09 AM, Willy Lambert <lambert [dot] willy [..] ...>
> wrote:
> >> Hi (again ^^)
> >>
> >> I'm trying to launch a simple deployer and import the "rtt_ros" package
> to
> >> the path.
> >>
> >> To launch the deployer I use :
> >> roslaunch rtt_ros deployer.launch LOG_LEVEL:=debug
> >>
> >> Then I type :
> >> Deployer [S]> import("rtt_ros")
> >>
> >> The rtt_ros plugin is found as I have the following line :
> >> 24.048 [ Debug ][ComponentLoader::import(path_list)] Scanning file
> >>
> /home/ard/arp_os/dependencies/ros_addons/install_isolated/lib/orocos/gnulinux/rtt_ros/plugins/librtt_ros-gnulinux.so
> >> ...Found library librtt_ros-gnulinux.so
> >>
> >>
> >>
> >> Here is the complete error log :
> >>
> > ....
> >>
> /home/ard/arp_os/dependencies/ros_addons/install_isolated/lib/orocos/gnulinux/rtt_ros/plugins
> >> ...
> >> 24.048 [ Debug ][ComponentLoader::import(path_list)] Scanning file
> >>
> /home/ard/arp_os/dependencies/ros_addons/install_isolated/lib/orocos/gnulinux/rtt_ros/plugins/librtt_ros-gnulinux.so
> >> ...Found library librtt_ros-gnulinux.so
> >> 24.048 [ ERROR ][ComponentLoader::import(path_list)] Unexpected
> exception
> >> in loadRTTPlugin !
> >> 24.048 [ ERROR ][ComponentLoader::import(path_list)] Failed to load RTT
> >> Plugin 'ros': plugin refused to load into this process. Unloading.
> >> 24.048 [ ERROR ][ComponentLoader::import(path_list)] Some found plugins
> >> could not be loaded !
> >> 24.048 [ ERROR ][Logger] Exception raised while executing an operation
> :
> >> Some found plugins could not be loaded !
> >> 24.048 [ ERROR ][Logger] in Deployer: unhandled exception in sent
> >> operation.
> >> The command 'import("rtt_ros")' caused a std::exception: 'Unable to
> complete
> >> the operation call. The called operation has thrown an exception' and
> could
> >> not be completed.
> >>
> >
> > I've seen this on my Ubuntu 13.10 (Saucy), ROS Indigo system too with
> > catkin_make_isolated.
>
> I dugg into this a little bit and got to the following:
>
> Deployer [S]> import("rtt_ros")
> 4.170 [ ERROR ][ComponentLoader::import(path_list)] Loading ros threw
> an exception: tr1::bad_weak_ptr
> 4.170 [ ERROR ][ComponentLoader::import(path_list)] Failed to load
> RTT Plugin 'ros': plugin refused to load into this process. Unloading.
>
> I'm using gcc 4.8.1 which is the same as in Debian Jessy. So it might
> be related to that.
>
> Ruben
>
>
> > Ruben
> >
> >>
> >> --
> >> Orocos-Users mailing list
> >> Orocos-Users [..] ...
> >> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
> >>
> >
> >
> >
> > --
> > Ruben Smits, CTO
> > +32 479 511 786
> > Intermodalics - Kapeldreef 60, 3001 Heverlee - BELGIUM
> > www.intermodalics.eu
> >
> >
> ---------------------------------------------------------------------------------------------------------------------------------------
> > This email and any attached files are confidential and may be legally
> > privileged. Any copy, print or forward of this email, without the
> > agreement of sender or addressee, is strictly prohibited. Misuse is a
> > violation of the law on personal data protection (D. Lgs. 196/2003)
> > and on secrecy of correspondence (art. 616 cp). If you have received
> > this transmission in error please notify the sender immediately and
> > then delete this email and any attached files.
>
>
>
> --
> Ruben Smits, CTO
> +32 479 511 786
> Intermodalics - Kapeldreef 60, 3001 Heverlee - BELGIUM
> www.intermodalics.eu
>
>
> ---------------------------------------------------------------------------------------------------------------------------------------
> This email and any attached files are confidential and may be legally
> privileged. Any copy, print or forward of this email, without the
> agreement of sender or addressee, is strictly prohibited. Misuse is a
> violation of the law on personal data protection (D. Lgs. 196/2003)
> and on secrecy of correspondence (art. 616 cp). If you have received
> this transmission in error please notify the sender immediately and
> then delete this email and any attached files.
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>

failed to import rtt_ros in the deployer

On Thu, Mar 6, 2014 at 6:46 PM, Jonathan Bohren
<jonathan [dot] bohren [..] ...> wrote:
> Ruben,
>
> Is this specific to rtt_ros or does it happen with any global service?

It's specific to rtt_ros, which does a
provides("time")->addOperation(...) in its constructor.

This in turns calls shared_from_this() which is not supported in
constructors. We've created
a fix we will release tomorrow in the RTT::Service class which fixes
this for all existing
services, ie to allow calling provides("foo") in service constructors.

After this fix, we'll also merge some other pull requests into
RTT/OCL/ROS integration

https://github.com/orocos-toolchain/rtt/pulls
https://gitorious.org/orocos-toolchain/rtt/merge_requests

if there's consensus...

Peter

failed to import rtt_ros in the deployer

2014-03-06 21:15 GMT+01:00 Peter Soetens <peter [..] ...>:

> On Thu, Mar 6, 2014 at 6:46 PM, Jonathan Bohren
> <jonathan [dot] bohren [..] ...> wrote:
> > Ruben,
> >
> > Is this specific to rtt_ros or does it happen with any global service?
>
> It's specific to rtt_ros, which does a
> provides("time")->addOperation(...) in its constructor.
>
> This in turns calls shared_from_this() which is not supported in
> constructors. We've created
> a fix we will release tomorrow in the RTT::Service class which fixes
> this for all existing
> services, ie to allow calling provides("foo") in service constructors.
>
>
Great, please let us know when it's ready, I'll test as soon as it's
available.

> After this fix, we'll also merge some other pull requests into
> RTT/OCL/ROS integration
>
> https://github.com/orocos-toolchain/rtt/pulls
> https://gitorious.org/orocos-toolchain/rtt/merge_requests
>
> if there's consensus...
>
> Peter
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>

failed to import rtt_ros in the deployer

Hi Willy,

On Fri, Mar 7, 2014 at 1:08 AM, Willy Lambert <lambert [dot] willy [..] ...> wrote:
>
>
>
> 2014-03-06 21:15 GMT+01:00 Peter Soetens <peter [..] ...>:
>
>> On Thu, Mar 6, 2014 at 6:46 PM, Jonathan Bohren
>> <jonathan [dot] bohren [..] ...> wrote:
>> > Ruben,
>> >
>> > Is this specific to rtt_ros or does it happen with any global service?
>>
>> It's specific to rtt_ros, which does a
>> provides("time")->addOperation(...) in its constructor.
>>
>> This in turns calls shared_from_this() which is not supported in
>> constructors. We've created
>> a fix we will release tomorrow in the RTT::Service class which fixes
>> this for all existing
>> services, ie to allow calling provides("foo") in service constructors.
>>
>
> Great, please let us know when it's ready, I'll test as soon as it's
> available.

It was a quite painful transition, a way paved with segfaults. We
eventually found out that Boost 1.53
contains the enable_shared_from_raw class which replaces
enable_shared_from_this2.

I created a merge request here :
https://www.gitorious.org/orocos-toolchain/rtt/merge_requests/29

For review, but I think we should accept it. You can clone it yourself
for testing. I used a 13.10 system
for my tests.

The other pull request have been reviewed here, but some will be
slightly rewritten next week.

Peter

>
>
>>
>> After this fix, we'll also merge some other pull requests into
>> RTT/OCL/ROS integration
>>
>> https://github.com/orocos-toolchain/rtt/pulls
>> https://gitorious.org/orocos-toolchain/rtt/merge_requests
>>
>> if there's consensus...
>>
>> Peter
>> --
>> Orocos-Users mailing list
>> Orocos-Users [..] ...
>> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>
>

failed to import rtt_ros in the deployer

On Fri, Mar 7, 2014 at 12:22 PM, Peter Soetens <peter [..] ...>wrote:

> The other pull request have been reviewed here, but some will be
> slightly rewritten next week.
>

Thanks for the update, Peter!

-j

failed to import rtt_ros in the deployer

2014-03-07 18:47 GMT+01:00 Jonathan Bohren <jonathan [dot] bohren [..] ...>:

>
> On Fri, Mar 7, 2014 at 12:22 PM, Peter Soetens <peter [..] ...>wrote:
>
>> The other pull request have been reviewed here, but some will be
>> slightly rewritten next week.
>>
>
> Thanks for the update, Peter!
>
> -j
>
>
I have just tested it : it solved my problem too. Thanks for support !!!

>
> --
> Jonathan Bohren
> Laboratory for Computational Sensing and Robotics
> http://dscl.lcsr.jhu.edu/People/JonathanBohren
>
>

adding template operations

Hi,
is there a way to add template functions as rtt operations?

For example:
template<typename Type> void func(Type value){}

now I'm looking for the signature of the function:
addOperation("name", &class::func);
addOperation("name",&class::func<typename>);

Both ways lead to an "unresolved overloaded function type" compiling error.

Greetings
Sandra

adding template operations

On Tue, Mar 11, 2014 at 3:50 PM, Sandra Beyer <sandra [dot] beyer [..] ...>wrote:

> Hi,
>
> is there a way to add template functions as rtt operations?
>
>
>
> For example:
>
> template<typename Type> void func(Type value){}
>
>
>
> now I’m looking for the signature of the function:
>
> addOperation(“name”, &class::func);
>
> addOperation(“name”,&class::func<typename>);
>

You need to provide a class instance as third argument, unless func was a
static class function.

If you have multiple implementations of 'func' (overloading), then follow
Jonathan's advise by using a helper function or casting to the correct
function type.

>
> Both ways lead to an “unresolved overloaded function type” compiling error.
>
>
>
> Greetings
>
> Sandra
>

Peter

adding template operations

On Tue, Mar 11, 2014 at 10:50 AM, Sandra Beyer <sandra [dot] beyer [..] ...>wrote:

> is there a way to add template functions as rtt operations?
>
>
>
> For example:
>
> template<typename Type> void func(Type value){}
>
>
>
> now I'm looking for the signature of the function:
>
> addOperation("name", &class::func);
>
> addOperation("name",&class::func<typename>);
>
>
>
> Both ways lead to an "unresolved overloaded function type" compiling error.
>
>
Are you trying to add an operation to a specialized template function? If
so, then you would need to cast it like so (I've done this for overloaded
functions, but not for specialized templates):

```
addOperation("name", (void
(YourClass::*)(YourSpecializedType))&YourClass::func, your_class_instance);
```

The above may or may not work. If it doesn't then the easiest thing would
be to make a specialized wrapper function:

```
void func_wrapper(YourSpecializedType value) { this->func(value); }
//...
addOperation("name", &YourClass::func_wrapper, your_class_instance);
```

If you're not trying to use a specialized type, then you can't do this,
because template code is generated at compile time, at which point it's not
known what types will be passed into the operation. If you want a generic
orocos operation, maybe there's something you could do with typekits, but
you won't be able to bind an orocos operation to an unspecialized templated
function.

-j

adding template operations

Hi Jonathan,
thanks a lot. I will try it this way.

Greetings
Sandra.

Von: Jonathan Bohren [mailto:jonathan [dot] bohren [..] ...]
Gesendet: Dienstag, 11. März 2014 21:36
An: Sandra Beyer
Cc: orocos-users
Betreff: Re: [Orocos-users] adding template operations

On Tue, Mar 11, 2014 at 10:50 AM, Sandra Beyer <sandra [dot] beyer [..] ...<mailto:sandra [dot] beyer [..] ...>> wrote:
is there a way to add template functions as rtt operations?

For example:
template<typename Type> void func(Type value){}

now I'm looking for the signature of the function:
addOperation("name", &class::func);
addOperation("name",&class::func<typename>);

Both ways lead to an "unresolved overloaded function type" compiling error.

Are you trying to add an operation to a specialized template function? If so, then you would need to cast it like so (I've done this for overloaded functions, but not for specialized templates):

```
addOperation("name", (void (YourClass::*)(YourSpecializedType))&YourClass::func, your_class_instance);
```

The above may or may not work. If it doesn't then the easiest thing would be to make a specialized wrapper function:

```
void func_wrapper(YourSpecializedType value) { this->func(value); }
//...
addOperation("name", &YourClass::func_wrapper, your_class_instance);
```

If you're not trying to use a specialized type, then you can't do this, because template code is generated at compile time, at which point it's not known what types will be passed into the operation. If you want a generic orocos operation, maybe there's something you could do with typekits, but you won't be able to bind an orocos operation to an unspecialized templated function.

-j

--
Jonathan Bohren
Laboratory for Computational Sensing and Robotics
http://dscl.lcsr.jhu.edu/People/JonathanBohren

failed to import rtt_ros in the deployer

2014-03-06 10:00 GMT+01:00 Ruben Smits <ruben [dot] smits [..] ...>:

> Hi all,
>
> On Thu, Mar 6, 2014 at 9:02 AM, Ruben Smits
> <ruben [dot] smits [..] ...> wrote:
> > Hi Willy,
> >
> > On Thu, Mar 6, 2014 at 2:09 AM, Willy Lambert <lambert [dot] willy [..] ...>
> wrote:
> >> Hi (again ^^)
> >>
> >> I'm trying to launch a simple deployer and import the "rtt_ros" package
> to
> >> the path.
> >>
> >> To launch the deployer I use :
> >> roslaunch rtt_ros deployer.launch LOG_LEVEL:=debug
> >>
> >> Then I type :
> >> Deployer [S]> import("rtt_ros")
> >>
> >> The rtt_ros plugin is found as I have the following line :
> >> 24.048 [ Debug ][ComponentLoader::import(path_list)] Scanning file
> >>
> /home/ard/arp_os/dependencies/ros_addons/install_isolated/lib/orocos/gnulinux/rtt_ros/plugins/librtt_ros-gnulinux.so
> >> ...Found library librtt_ros-gnulinux.so
> >>
> >>
> >>
> >> Here is the complete error log :
> >>
> > ....
> >>
> /home/ard/arp_os/dependencies/ros_addons/install_isolated/lib/orocos/gnulinux/rtt_ros/plugins
> >> ...
> >> 24.048 [ Debug ][ComponentLoader::import(path_list)] Scanning file
> >>
> /home/ard/arp_os/dependencies/ros_addons/install_isolated/lib/orocos/gnulinux/rtt_ros/plugins/librtt_ros-gnulinux.so
> >> ...Found library librtt_ros-gnulinux.so
> >> 24.048 [ ERROR ][ComponentLoader::import(path_list)] Unexpected
> exception
> >> in loadRTTPlugin !
> >> 24.048 [ ERROR ][ComponentLoader::import(path_list)] Failed to load RTT
> >> Plugin 'ros': plugin refused to load into this process. Unloading.
> >> 24.048 [ ERROR ][ComponentLoader::import(path_list)] Some found plugins
> >> could not be loaded !
> >> 24.048 [ ERROR ][Logger] Exception raised while executing an operation
> :
> >> Some found plugins could not be loaded !
> >> 24.048 [ ERROR ][Logger] in Deployer: unhandled exception in sent
> >> operation.
> >> The command 'import("rtt_ros")' caused a std::exception: 'Unable to
> complete
> >> the operation call. The called operation has thrown an exception' and
> could
> >> not be completed.
> >>
> >
> > I've seen this on my Ubuntu 13.10 (Saucy), ROS Indigo system too with
> > catkin_make_isolated.
>

Yes, but I may change back to catkin_make is requiered.

>
> I dugg into this a little bit and got to the following:
>
> Deployer [S]> import("rtt_ros")
> 4.170 [ ERROR ][ComponentLoader::import(path_list)] Loading ros threw
> an exception: tr1::bad_weak_ptr
> 4.170 [ ERROR ][ComponentLoader::import(path_list)] Failed to load
> RTT Plugin 'ros': plugin refused to load into this process. Unloading.
>
> I'm using gcc 4.8.1 which is the same as in Debian Jessy. So it might
> be related to that.
>
>
arg, please don't tell me I have to change my compiler ^^

May I help in any way on this ?

> Ruben
>
>
> > Ruben
> >
> >>
> >> --
> >> Orocos-Users mailing list
> >> Orocos-Users [..] ...
> >> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
> >>
> >
> >
> >
> > --
> > Ruben Smits, CTO
> > +32 479 511 786
> > Intermodalics - Kapeldreef 60, 3001 Heverlee - BELGIUM
> > www.intermodalics.eu
> >
> >
> ---------------------------------------------------------------------------------------------------------------------------------------
> > This email and any attached files are confidential and may be legally
> > privileged. Any copy, print or forward of this email, without the
> > agreement of sender or addressee, is strictly prohibited. Misuse is a
> > violation of the law on personal data protection (D. Lgs. 196/2003)
> > and on secrecy of correspondence (art. 616 cp). If you have received
> > this transmission in error please notify the sender immediately and
> > then delete this email and any attached files.
>
>
>
> --
> Ruben Smits, CTO
> +32 479 511 786
> Intermodalics - Kapeldreef 60, 3001 Heverlee - BELGIUM
> www.intermodalics.eu
>
>
> ---------------------------------------------------------------------------------------------------------------------------------------
> This email and any attached files are confidential and may be legally
> privileged. Any copy, print or forward of this email, without the
> agreement of sender or addressee, is strictly prohibited. Misuse is a
> violation of the law on personal data protection (D. Lgs. 196/2003)
> and on secrecy of correspondence (art. 616 cp). If you have received
> this transmission in error please notify the sender immediately and
> then delete this email and any attached files.
>

failed to import rtt_ros in the deployer

On Wed, Mar 5, 2014 at 8:09 PM, Willy Lambert <lambert [dot] willy [..] ...>wrote:

> I'm trying to launch a simple deployer and import the "rtt_ros" package to
> the path.
>
> To launch the deployer I use :
> roslaunch rtt_ros deployer.launch LOG_LEVEL:=debug
>
> Then I type :
> Deployer [S]> import("rtt_ros")
>
> The rtt_ros plugin is found as I have the following line :
> 24.048 [ Debug ][ComponentLoader::import(path_list)] Scanning file
> /home/ard/arp_os/dependencies/ros_addons/install_isolated/lib/orocos/gnulinux/rtt_ros/plugins/librtt_ros-gnulinux.so
> ...Found library librtt_ros-gnulinux.so
>

Is this still in your completely isolated workspace?