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

Generically expose URDF joint dynamics. #56

Open
wants to merge 16 commits into
base: rolling
Choose a base branch
from

Conversation

danzimmerman
Copy link

@danzimmerman danzimmerman commented Apr 7, 2023

This is aimed at simulation use cases like #54 and #55, where simulation needs dictate different non-zero joint dynamics parameters.

In ur.urdf.xacro I provide an example loading the joint dynamics properties from a config file, but followed the treatment of initial_positions so that no config file is necessary to use the xacro:ur_robot macro in other contexts.

For the Gazebo Classic use case, I want to compute the dynamics parameters dynamically from other data, setting the joints' friction attributes to a multiple of the joints' effort limits like here.

(See discussion in #55 and Universal_Robots_ROS2_Gazebo_Simulation/#19 for context.)

In other user code including ur_macro.xacro I think this should not require any changes.

Copy link

@Icon45 Icon45 left a comment

Choose a reason for hiding this comment

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

I think it should be fine. But as I'm not an expert, I don't see myself in a position to approve the commit.

@danzimmerman
Copy link
Author

This should likely wait and build on top of #59 or equivalent.

@fmauch fmauch requested review from fmauch and VinDp June 20, 2024 09:14
@fmauch fmauch changed the base branch from ros2 to rolling September 5, 2024 10:52
@@ -41,14 +41,15 @@
<mesh filename="${mesh}"/>
</xacro:macro>

<xacro:macro name="read_model_data" params="joint_limits_parameters_file kinematics_parameters_file physical_parameters_file visual_parameters_file force_abs_paths">
<xacro:macro name="read_model_data" params="joint_limits_parameters_file kinematics_parameters_file physical_parameters_file visual_parameters_file joint_dynamics force_abs_paths">
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think I would prefer passing the filename down to here as we do with the other parameters, as well.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Actually, I am not sure. It would be nicer to keep it on one level, however this way it is backwards compatible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants