Skip to content

Commit

Permalink
[doc][py] Explain setWrenches method (thanks to #1131).
Browse files Browse the repository at this point in the history
Similar info should be added to IDL level (this Python file is only the end-user API so the number of audience can be minimum).
  • Loading branch information
130s committed May 9, 2017
1 parent c246c41 commit 6544fef
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions python/hrpsys_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2109,19 +2109,15 @@ def startImpedance(self, arm, **kwargs):
self.seq_svc.setWrenches instead of this method.
See an example at https://github.com/fkanehiro/hrpsys-base/pull/434/files#diff-6204f002204dd9ae80f203901f155fa9R44:
- ref_force=[x, y, z] can be set by:
- ref_force[fx, fy, fz] (unit: N) and ref_moment[tx, ty, tz] (unit: Nm) can be set via self.seq_svc.setWrenches. For example:
self.seq_svc.setWrenches([0, 0, 0, 0, 0, 0,
fx, fy, fz, tx, ty, tz,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
x, y, z, 0, 0, 0,])
- ref_moment=[x, y, z] can be set by:
0, 0, 0, 0, 0, 0,])
self.seq_svc.setWrenches([0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0, x, y, z,])
setWrenches takes 6 values per sensor, so the robot in the example above has 4 sensors where each line represents a sensor.
See this link (https://github.com/fkanehiro/hrpsys-base/pull/434/files) for a concrete example.
@param arm: Name of the kinematic group (i.e. self.Groups[n][0]).
@param kwargs: This varies depending on the version of hrpsys your robot's controller runs on
Expand Down

0 comments on commit 6544fef

Please sign in to comment.