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

[hrpsys_config.py] Add clearJointAngles* methods. #1064

Merged
merged 1 commit into from
Oct 30, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions python/hrpsys_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2114,6 +2114,23 @@ def setFootStepsWithParam(self, footstep, stepparams, overwrite_fs_idx = 0):
'''
self.abc_svc.setFootStepsWithParam(footstep, stepparams, overwrite_fs_idx)

def clearJointAngles(self):
'''!@brief
Cancels the commanded sequence of joint angle, by overwriting the command by the values of instant the method was invoked.
Note that this only cancels the queue once. Icoming commands after this method is called will be processed as usual.
@return bool
'''
return self.seq_svc.clearJointAngles()

def clearJointAnglesOfGroup(self, gname):
'''!@brief
Cancels the commanded sequence of joint angle for the specified joint group, by overwriting the command by the values of instant the method was invoked.
Note that this only cancels the queue once. Icoming commands after this method is called will be processed as usual.
@param gname: Name of the joint group.
@return bool
'''
return self.seq_svc.clearJointAngles(gname)
Copy link
Contributor

Choose a reason for hiding this comment

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

  •    return self.seq_svc.clearJointAnglesOfGroup(gname)  ?
    

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for the headsup, fixed in #1146


# ##
# ## initialize
# ##
Expand Down