[Rock-dev] properties of type std::vector<double>

Chris Müller ruunhb at googlemail.com
Sun Jan 8 01:03:56 CET 2012


On 08.01.2012 00:39, Alexander Duda wrote:
> On 01/07/2012 09:57 PM, Chris Müller wrote:
>> np, we could also manage it to add it to avalon_base until base master
>> is pushed to next.
>>
>> In the same fashion like base/orogen/types/types.orogen i've already add
>> it there, but i get some errors i don't know how to handle:
>>
>> /home/chris/repos/avalon_next/avalon/orogen/avalon_base/.orogen/typekit/transports/corba/__avalon_motor_controller__PIDSettings___std__vector__float__.cpp: 
>>
>> In static member function ‘static bool
>> RTT::corba::AnyConversion<std::vector<float> >::update(const
>> CORBA::Any&, RTT::corba::AnyConversion<std::vector<float> 
>> >::BaseType&)’:
>> /home/chris/repos/avalon_next/avalon/orogen/avalon_base/.orogen/typekit/transports/corba/__avalon_motor_controller__PIDSettings___std__vector__float__.cpp:82:65: 
>>
>> error: no matching function for call to
>> ‘fromCORBA(RTT::corba::AnyConversion<std::vector<float> >::BaseType&,
>> RTT::corba::AnyConversion<std::vector<float> >::CorbaType&)’
>>
>> It's working when it's added to base/orogen/types.
>>
>> Any ideas?
>
> I would say this is a bug in orogen.
> std::vector<float> is part of base (sub field of some base types) but 
> is not exported. Avalon_base is including all types from
> base therefore orogen knows that there is already code to convert 
> std::vector<float> from and to corba but forgets to include
> the header.
>
> You can manually add the header to check if it's solving your problem
> #include <base/transports/corba/Convertions.hpp>
>
> Alex

I can confirm: This works.



More information about the Rock-dev mailing list