Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 4 additions & 0 deletions config/arm/v10/control_gains.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@ joint6:
joint7:
kp: 10.0
kd: 0.5

hand:
kp: 5.0
kd: 0.1
4 changes: 4 additions & 0 deletions urdf/ros2_control/openarm.ros2_control.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
<param name="kd5">${control_gains['joint5']['kd']}</param>
<param name="kd6">${control_gains['joint6']['kd']}</param>
<param name="kd7">${control_gains['joint7']['kd']}</param>
<xacro:if value="${hand}">
<param name="kph">${control_gains['hand']['kp']}</param>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

kph is not immediately obvious, so would kp_hand be a clearer name?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Agreed, changed as requested.

<param name="kdh">${control_gains['hand']['kd']}</param>
</xacro:if>
</xacro:if>
</hardware>

Expand Down