Skip to content

Draft: [fix_extract] Not working first attempts to fix the extract feature - #38

Draft
Rauldg wants to merge 1 commit into
rock-core:masterfrom
Rauldg:fix_extract
Draft

Draft: [fix_extract] Not working first attempts to fix the extract feature#38
Rauldg wants to merge 1 commit into
rock-core:masterfrom
Rauldg:fix_extract

Conversation

@Rauldg

@Rauldg Rauldg commented Dec 10, 2023

Copy link
Copy Markdown
pocolog <input_log.log> --extract <output_log.log> --stream <stream_name>:ini_index:end_index

Is not working. It seems like the classes that ExtractConfig uses have been updated but the ExtractConfig itself not. This is what I deduce since the method each_block does not exist for objects of the type Logfiles. It could be that I am passing the parameters in the wrong order but I could not find the method each_block implemented for any other pocolog class, so I think that the parameter order is correct.

Steps to reproduce

Download this log containing streams from various tasks and place it under pocolog/test/data then run:

pocolog test/data/laser_scanner_Logger.0.log --extract test/data/sample_velodyne_only.log --stream velodyne.laser_scans:0:5

This is the complete output:

pocolog.rb[INFO]: building index test/data/laser_scanner_Logger.0.log ...
pocolog.rb[INFO]: done
Traceback (most recent call last):
        8: from /opt/workspace/tools/pocolog/bin/pocolog:715:in `<main>'
        7: from /opt/workspace/tools/pocolog/bin/pocolog:576:in `execute'
        6: from /opt/workspace/tools/pocolog/bin/pocolog:158:in `execute'
        5: from /opt/workspace/tools/pocolog/bin/pocolog:68:in `init'
        4: from /opt/workspace/tools/pocolog/bin/pocolog:68:in `open'
        3: from /opt/workspace/tools/pocolog/bin/pocolog:72:in `block in init'
        2: from /opt/workspace/tools/pocolog/bin/pocolog:166:in `block in execute'
        1: from /opt/workspace/tools/pocolog/bin/pocolog:166:in `each'
/opt/workspace/tools/pocolog/bin/pocolog:169:in `block (2 levels) in execute': undefined method `each_block' for #<Pocolog::Logfiles:0x0000557b7237e3d8> (NoMethodError)

I have tried to fix this on my own but I miss too much expertise on this library. Probably I am doing too many things wrong.

Anyone can help recovering this feature?

@Rauldg Rauldg changed the title [fix_extract] Not working first attempts to fix the extract feature Draft: [fix_extract] Not working first attempts to fix the extract feature Dec 10, 2023
@Rauldg
Rauldg marked this pull request as draft December 10, 2023 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant