Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Rauldg
Copy link

@Rauldg Rauldg commented Dec 10, 2023

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