-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleaned up code, added new macros and properties
- Loading branch information
1 parent
ddd5b83
commit bee690e
Showing
15 changed files
with
127 additions
and
80 deletions.
There are no files selected for viewing
16 changes: 0 additions & 16 deletions
16
src/meldog_simple_description/description/actuator/actuator_macros.urdf.xacro
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
src/meldog_simple_description/description/joints/joint_macros.urdf.xacro
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,9 @@ | ||
<?xml version="1.0"?> | ||
<robot xmlns:xacro="http://www.ros.org/wiki/xacro" name = "joint_macros"> | ||
|
||
<xacro:macro name ="joint_macro" params="lower upper"> | ||
<limit lower="${lower}" upper="${upper}" effort="${joint_max_torque}" velocity="${joint_max_velocity}"/> | ||
<dynamics damping="${joint_damping}" friction="${joint_friction}"/> | ||
</xacro:macro> | ||
|
||
</robot> |
20 changes: 20 additions & 0 deletions
20
src/meldog_simple_description/description/joints/joint_properties.urdf.xacro
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,20 @@ | ||
<?xml version="1.0"?> | ||
<robot xmlns:xacro="http://www.ros.org/wiki/xacro" name = "joint_properties"> | ||
|
||
<!-- Limits for joints (lower and upper position): --> | ||
<xacro:property name="H_lower_limit" value="-${PI/2}"/> | ||
<xacro:property name="H_upper_limit" value="${PI/2}"/> | ||
<xacro:property name="T_lower_limit" value="-${PI}"/> | ||
<xacro:property name="T_upper_limit" value="${PI}"/> | ||
<xacro:property name="S_lower_limit" value="-${5*PI/6}"/> | ||
<xacro:property name="S_upper_limit" value="${5*PI/6}"/> | ||
|
||
<!-- Limits for joints (velocity, torque)--> | ||
<xacro:property name="joint_max_velocity" value="20.2"/> | ||
<xacro:property name="joint_max_torque" value="30"/> | ||
|
||
<!-- Joint properties --> | ||
<xacro:property name="joint_damping" value="0.0"/> | ||
<xacro:property name="joint_friction" value="0.0"/> | ||
|
||
</robot> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
14 changes: 6 additions & 8 deletions
14
...trol/ros2_control_joint_macros.urdf.xacro → ...hardware/joint_hardware_macros.urdf.xacro
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
14 changes: 14 additions & 0 deletions
14
...description/description/ros2_control/joints_hardware/joint_hardware_properties.urdf.xacro
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,14 @@ | ||
<?xml version="1.0"?> | ||
<robot xmlns:xacro="http://www.ros.org/wiki/xacro" name ="joint_hardware_properties"> | ||
|
||
<!-- Actuator and motor parameters: --> | ||
<xacro:property name="actuator_gear_ratio" value="9.97"/> | ||
<xacro:property name="motor_max_velocity" value="${actuator_gear_ratio*20.2}"/> | ||
<xacro:property name="motor_max_torque" value="${30.0/actuator_gear_ratio}"/> | ||
<xacro:property name="motor_lower_limit" value="-${100}"/> | ||
<xacro:property name="motor_upper_limit" value="${100}"/> | ||
|
||
|
||
|
||
|
||
</robot> |
31 changes: 31 additions & 0 deletions
31
src/meldog_simple_description/description/ros2_control/ros2_control_core.urdf.xacro
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,31 @@ | ||
<?xml version="1.0"?> | ||
<robot xmlns:xacro="http://www.ros.org/wiki/xacro" name = "meldog_ros2_control_core"> | ||
|
||
<!-- Joint hardware properties and macros: --> | ||
<xacro:include filename="joints_hardware/joint_hardware_properties.urdf.xacro"/> | ||
<xacro:include filename="joints_hardware/joint_hardware_macros.urdf.xacro"/> | ||
|
||
<!-- Transmissions: --> | ||
<xacro:include filename="transmission/transmission_macros.urdf.xacro"/> | ||
|
||
<!-- Hardware interface for Gazebo: --> | ||
|
||
<!-- Trunk to Hips joints--> | ||
<xacro:joint_hardware_macro joint_name="FLH" lower="${motor_lower_limit}" upper="${motor_upper_limit}"/> | ||
<xacro:joint_hardware_macro joint_name="FRH" lower="${motor_lower_limit}" upper="${motor_upper_limit}"/> | ||
<xacro:joint_hardware_macro joint_name="BLH" lower="${motor_lower_limit}" upper="${motor_upper_limit}"/> | ||
<xacro:joint_hardware_macro joint_name="BRH" lower="${motor_lower_limit}" upper="${motor_upper_limit}"/> | ||
|
||
<!-- Hips to Thighs joints --> | ||
<xacro:joint_hardware_macro joint_name="FLT" lower="${motor_lower_limit}" upper="${motor_upper_limit}"/> | ||
<xacro:joint_hardware_macro joint_name="FRT" lower="${motor_lower_limit}" upper="${motor_upper_limit}"/> | ||
<xacro:joint_hardware_macro joint_name="BLT" lower="${motor_lower_limit}" upper="${motor_upper_limit}"/> | ||
<xacro:joint_hardware_macro joint_name="BRT" lower="${motor_lower_limit}" upper="${motor_upper_limit}"/> | ||
|
||
<!-- Thighs to Shanks joints --> | ||
<xacro:joint_hardware_macro joint_name="FLS" lower="${motor_lower_limit}" upper="${motor_upper_limit}"/> | ||
<xacro:joint_hardware_macro joint_name="FRS" lower="${motor_lower_limit}" upper="${motor_upper_limit}"/> | ||
<xacro:joint_hardware_macro joint_name="BLS" lower="${motor_lower_limit}" upper="${motor_upper_limit}"/> | ||
<xacro:joint_hardware_macro joint_name="BRS" lower="${motor_lower_limit}" upper="${motor_upper_limit}"/> | ||
|
||
</robot> |
27 changes: 3 additions & 24 deletions
27
src/meldog_simple_description/description/ros2_control/ros2_control_gazebo.urdf.xacro
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