[Rock-dev] Error connecting sonar beam of log

Fabian Franzen ffranzen at informatik.uni-bremen.de
Wed Jun 19 09:46:37 CEST 2013


Hi,

Thank you for your response!

It's the other way around. The system which recorded the log file was a
32-bit system and my system where i play the log is 64-bit. ;-)

However when i try to convert my whole log i get the following error of
rock-convert:

/home/fabian/mini_rock/tools/log_tools/lib/log_tools/converter.rb:429:in
`deep_cast': cannot deep cast #<Typelib::NumericType: /uint32_t> into
#<Typelib::NumericType: /uint64_t> (ArgumentError)
    from
/home/fabian/mini_rock/tools/log_tools/lib/log_tools/converter.rb:410:in
`block in deep_cast'
    from
/home/fabian/mini_rock/install/lib/ruby/1.9.1/typelib/compound_type.rb:311:in
`block in each_field'
    from
/home/fabian/mini_rock/install/lib/ruby/1.9.1/typelib/compound_type.rb:311:in
`each'
    from
/home/fabian/mini_rock/install/lib/ruby/1.9.1/typelib/compound_type.rb:311:in
`each_field'
    from
/home/fabian/mini_rock/tools/log_tools/lib/log_tools/converter.rb:394:in
`deep_cast'
    from
/home/fabian/mini_rock/tools/log_tools/lib/log_tools/converter.rb:330:in
`convert_type'
    from
/home/fabian/mini_rock/tools/log_tools/lib/log_tools/converter.rb:246:in
`block (3 levels) in convert'
    from
/home/fabian/mini_rock/tools/pocolog/lib/pocolog/data_reader.rb:442:in
`block in each'
    from
/home/fabian/mini_rock/tools/pocolog/lib/pocolog/data_reader.rb:510:in
`yield_sample'
    from
/home/fabian/mini_rock/tools/pocolog/lib/pocolog/data_reader.rb:486:in
`block in raw_each'
    from
/home/fabian/mini_rock/tools/pocolog/lib/pocolog/data_reader.rb:40:in
`each_block'
    from
/home/fabian/mini_rock/tools/pocolog/lib/pocolog/data_reader.rb:462:in
`raw_each'
    from
/home/fabian/mini_rock/tools/pocolog/lib/pocolog/data_reader.rb:441:in
`each'
    from
/home/fabian/mini_rock/tools/log_tools/lib/log_tools/converter.rb:228:in
`block (2 levels) in convert'
    from
/home/fabian/mini_rock/tools/log_tools/lib/log_tools/converter.rb:215:in
`each'
    from
/home/fabian/mini_rock/tools/log_tools/lib/log_tools/converter.rb:215:in
`block in convert'
    from
/home/fabian/mini_rock/tools/log_tools/lib/log_tools/converter.rb:205:in
`each'
    from
/home/fabian/mini_rock/tools/log_tools/lib/log_tools/converter.rb:205:in
`convert'
    from /home/fabian/mini_rock/tools/log_tools/bin/rock-convert:95:in
`<main>'

Any further ideas?

Regards,
Fabian

Am 19.06.2013 08:32, schrieb Alexander Duda:
> On 06/19/2013 03:11 AM, Fabian Franzen wrote:
>> Hi,
>>
>> I'm getting the following error when i connect the sonar port of a
>> logfile to a task of mine in a ruby script. I couldn't find the error
>> myself, in my opinion the sonar_beam type has not been changed for some
>> time and the log and the bootstrap which produced the log is not very
>> old (1 day old logfile, the bootstrap is maybe one month old). So in my
>> opinion, the type should be exactly the same..
> I guess your system is running under 32 Bit but the log file was
> recorded on a 64 Bit system.
> To convert to a 32 Bit version you can use rock-convert.
>
> Alex
>
>>
>> Here is the error message of my script:
>>
>> /home/fabian/avalon/install/lib/ruby/1.9.1/typelib.rb:238:in
>> `from_ruby': cannot convert #</base/samples/SonarBeam: 0x21bfc450
>> ptr=0x1c258c60> to /base/samples/SonarBeam: the types have the same name
>> but different definitions (ArgumentError)
>>      from
>> /home/fabian/avalon/tools/orocos.rb/lib/orocos/ruby_task_context.rb:147:in
>>
>> `write'
>>      from
>> /home/fabian/avalon/tools/orocos.rb/lib/orocos/ruby_task_context.rb:174:in
>>
>> `write'
>>      from
>> /home/fabian/avalon/tools/orocos.rb/lib/orocos/log/task_context.rb:164:in
>> `update'
>>      from
>> /home/fabian/avalon/tools/orocos.rb/lib/orocos/log/task_context.rb:337:in
>> `block
>> in write'
>>      from
>> /home/fabian/avalon/tools/orocos.rb/lib/orocos/log/task_context.rb:336:in
>> `each'
>>      from
>> /home/fabian/avalon/tools/orocos.rb/lib/orocos/log/task_context.rb:336:in
>> `write'
>>      from
>> /home/fabian/avalon/tools/orocos.rb/lib/orocos/log/replay.rb:514:in
>> `step'
>>      from
>> /home/fabian/avalon/tools/orocos.rb/lib/orocos/log/replay.rb:366:in
>> `align'
>>      from
>> /home/fabian/avalon/tools/orocos.rb/lib/orocos/log/replay.rb:472:in
>> `step'
>>      from
>> /home/fabian/avalon/tools/orocos.rb/lib/orocos/log/replay.rb:556:in
>> `run'
>>      from scripts/test_signal_processing.rb:16:in `block in <main>'
>>      from
>> /home/fabian/avalon/tools/orocos.rb/lib/orocos/process.rb:398:in `block
>> in run'
>>      from
>> /home/fabian/avalon/tools/orocos.rb/lib/orocos/process.rb:832:in `guard'
>>      from
>> /home/fabian/avalon/tools/orocos.rb/lib/orocos/process.rb:397:in `run'
>>      from
>> /home/fabian/avalon/tools/orocos.rb/lib/orocos/process.rb:74:in
>> `run'
>>      from scripts/test_signal_processing.rb:12:in `<main>'
>>
>> Any ideas? (I am using the master bootstrap btw.)
>>
>> Regards,
>> Fabian
>> _______________________________________________
>> Rock-dev mailing list
>> Rock-dev at dfki.de
>> http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev
>
>



More information about the Rock-dev mailing list