Skip to content

GRF of the first frame of all the trials are always 0 #208

@Tian-A-Tan

Description

@Tian-A-Tan

I load subject GRF data as follows:

            subject = nimble.biomechanics.SubjectOnDisk(subject_path)
            frames: nimble.biomechanics.FrameList = subject.readFrames(trial_index, 0, trial_length,
                                                                       includeSensorData=False,
                                                                       includeProcessingPasses=True)
            try:
                first_passes: List[nimble.biomechanics.FramePass] = [frame.processingPasses[0] for frame in frames]
            except IndexError:
                print(f'{subject_name}, {trial_index} has no processing passes, skipping')
                continue
            forces = [frame.groundContactForce for frame in first_passes]
            if (forces[0] == 0).all():
                print(f'{subject_name}, {trial_index} has 0 GRF at the first frame.', end='')

Then the (forces[0] == 0).all() returns True for every trial of all the datasets I processed. Forces show up starting at index 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions