Skip to content

Sts analysis#151

Open
rdmagruder wants to merge 6 commits intomainfrom
sts_analysis
Open

Sts analysis#151
rdmagruder wants to merge 6 commits intomainfrom
sts_analysis

Conversation

@rdmagruder
Copy link

Sit-to-stand analysis scripts built in the style of gait_analysis.py, including optional kinetics.

Copy link
Collaborator

@suhlrich suhlrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested kinematics and am testing a simulation. Let me know if you have questions wrt. the review comments. We just have to be careful to not break anything existing.

pController.addActuator(newActuator)
# Attach the function to the controller.
pController.prescribeControlForActuator(0,constFxn)
pController.prescribeControlForActuator(newActuator.getName(),constFxn)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need this? Are we computing joint reactions during STS? And what is wrong with calling 0 index?

pController.setName(coordName + '_controller')
pController.addActuator(newActuator)
# Attach the function to the controller.
pController.prescribeControlForActuator(0,constFxn)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment


return (risingTimes, risingTimesDelayedStart,
risingSittingTimesDelayedStartPeriodicEnd)
# %% Segment sts
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we want to leave the old segmenter alone as it is used in example_kinetics.py. Should we create a different segmenter or have you tested the example_kinetics code also?

if motion_type == 'squats':
times_window = segment_squats(pathMotionFile, visualize=True)
elif motion_type == 'sit_to_stand':
_, _, times_window = segment_STS(pathMotionFile, visualize=True)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

concern changing the segmenter for compatibility with other codes. I commented on the utilsProcessing file


return angular_position_df

def get_body_angular_velocity(self, body_names=None, lowpass_cutoff_frequency=-1, expressed_in='body'):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this left alone from before? In the review, it looks like we overwrite the get angular velocity with get orientation. Just want to make sure we don't change functions that are used elsewhere

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.

2 participants