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

refactor(franka_gazebo): remove FrankaHWSim robot namespace warning #366

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

rickstaa
Copy link
Contributor

@rickstaa rickstaa commented Sep 3, 2023

In commit f2f82b2, a robot namespace warning was introduced in the FrankaHWSim package. This warning was added to address a specific issue at the time (see #187 (comment)). However, with the recent merge of PR #196, the conditions that necessitated this warning are no longer applicable.

To enhance the user experience and ensure clarity in error messages, I propose the following changes:

  • Remove Redundant Robot Namespace Warning: The warning introduced in f2f82b2 is no longer needed since this warning only would be printed if the URDF is found. The URDF will only be found when the user specifies the correct robot namespace.

  • Change arm_id default value: In the original code, the robot_namespace was used as the default value for the arm_id attribute. This could trigger cryptic hardware transmission warnings if users forget to set the arm_id parameter on the robot_namespace. This can be solved by replacing the default robot_namespace with the model name as the default value for the arm_id attribute.

  • Introduce a warning mechanism that notifies users when they fail to load the arm_id parameter within the model parameter namespace. This will help users identify and resolve namespace-related issues more effectively.

Please let me know if you have any questions about my pull request.

@rickstaa rickstaa force-pushed the remove_robot_namespace_warning branch from 8224ad9 to 1d62e7a Compare September 3, 2023 20:15
@rickstaa rickstaa changed the title remove robot namespace warning fix(franka_gazebo): remove robot namespace warning Sep 3, 2023
@rickstaa rickstaa changed the title fix(franka_gazebo): remove robot namespace warning refactor(franka_gazebo): remove robot namespace warning Sep 3, 2023
@rickstaa rickstaa changed the title refactor(franka_gazebo): remove robot namespace warning refactor(franka_gazebo): remove FrankaHWSim robot namespace warning Sep 3, 2023
@rickstaa rickstaa force-pushed the remove_robot_namespace_warning branch 2 times, most recently from ef6b24f to 0e7cc2e Compare September 4, 2023 08:03
This commit removes the robot namespace warning found in the FrankaHWSim
since it is no longer needed now that frankaemika#196 has been merged. It also
replaced the 'arm_id' default with the model name.
@rickstaa rickstaa force-pushed the remove_robot_namespace_warning branch from 0e7cc2e to 24321ee Compare March 23, 2024 20:48
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.

None yet

1 participant