-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SW-1266] Add option in spot urdf to put links at the feet (#447)
## Change Overview This now lets you generate a URDF of spot that puts links at the feet locations. It is possible to visualize this with `ros2 launch spot_description description.launch.py feet:=true`. The default URDF that gets generated for running the driver does not include these new frames. ## Testing Done - [x] visualizing the new URDF containing feet frames has them in the right location - [x] default URDF is unchanged ![Screenshot from 2024-08-08 14-55-57.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/Xynj6CBpA3NqqBFfE8Q9/fa798b1a-6ad6-4076-ac86-8554ff4a2ae4.png)
- Loading branch information
1 parent
aab1326
commit d20830c
Showing
4 changed files
with
71 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0"?> | ||
|
||
<robot xmlns:xacro="http://www.ros.org/wiki/xacro"> | ||
|
||
<xacro:macro name="load_feet" params="tf_prefix"> | ||
|
||
<!-- This is the distance from foot to knee in m --> | ||
<xacro:property name="foot_to_knee" value="0.35"/> | ||
|
||
<link name="${tf_prefix}front_left_foot"/> | ||
<joint name="${tf_prefix}front_left_ankle" type="fixed"> | ||
<origin rpy="0 0 0" xyz="0 0 ${-foot_to_knee}"/> | ||
<axis xyz="0 0 0"/> | ||
<parent link="${tf_prefix}front_left_lower_leg"/> | ||
<child link="${tf_prefix}front_left_foot"/> | ||
</joint> | ||
|
||
<link name="${tf_prefix}front_right_foot"/> | ||
<joint name="${tf_prefix}front_right_ankle" type="fixed"> | ||
<origin rpy="0 0 0" xyz="0 0 ${-foot_to_knee}"/> | ||
<axis xyz="0 0 0"/> | ||
<parent link="${tf_prefix}front_right_lower_leg"/> | ||
<child link="${tf_prefix}front_right_foot"/> | ||
</joint> | ||
|
||
<link name="${tf_prefix}rear_left_foot"/> | ||
<joint name="${tf_prefix}rear_left_ankle" type="fixed"> | ||
<origin rpy="0 0 0" xyz="0 0 ${-foot_to_knee}"/> | ||
<axis xyz="0 0 0"/> | ||
<parent link="${tf_prefix}rear_left_lower_leg"/> | ||
<child link="${tf_prefix}rear_left_foot"/> | ||
</joint> | ||
|
||
<link name="${tf_prefix}rear_right_foot"/> | ||
<joint name="${tf_prefix}rear_right_ankle" type="fixed"> | ||
<origin rpy="0 0 0" xyz="0 0 ${-foot_to_knee}"/> | ||
<axis xyz="0 0 0"/> | ||
<parent link="${tf_prefix}rear_right_lower_leg"/> | ||
<child link="${tf_prefix}rear_right_foot"/> | ||
</joint> | ||
|
||
</xacro:macro> | ||
|
||
</robot> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters