Skip to content

Admittance robot description param #22

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

Open
wants to merge 37 commits into
base: master
Choose a base branch
from

Conversation

destogl
Copy link
Member

@destogl destogl commented Aug 1, 2024

Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:

  1. Limited scope. Your PR should do one thing or one set of things. Avoid adding “random fixes” to PRs. Put those on separate PRs.
  2. Give your PR a descriptive title. Add a short summary, if required.
  3. Make sure the pipeline is green.
  4. Don’t be afraid to request reviews from maintainers.
  5. New code = new tests. If you are adding new functionality, always make sure to add some tests exercising the code and serving as live documentation of your original intention.

To send us a pull request, please:

  • Fork the repository.
  • Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
  • Ensure local tests pass. (colcon test and pre-commit run (requires you to install pre-commit by pip3 install pre-commit)
  • Commit to your fork using clear commit messages.
  • Send a pull request, answering any default questions in the pull request interface.
  • Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.

@Nibanovic Nibanovic force-pushed the admittance-robot-description-param branch from 0b25655 to fce1e28 Compare August 1, 2024 12:11
@Nibanovic
Copy link

Refactored AdmittanceControl::update() to account for either joint_state or goal_pose references.

Main changes:

  • overloaded update() function
  • separated out the common part into get_admittance_state_from_transforms, so the function is shorter
  • separated get_all_transforms() into two: get_current_state_transforms() and get_reference_state_transforms(), where the latter is overloaded accordingly, depending on input reference

Note:

Please comment on this

Comment on lines +431 to +441
/* some flag that determines whether we call the update() with goal_pose or with joint reference.
How can we know here whether the reference was updated from subscribers or from itnerfaces?

if(updated_from_subscribers)
admittance_->update(joint_state_, ft_values_, *goal_pose_msg_, period, reference_admittance_);
else
admittance_->update(joint_state_, ft_values_, reference_, period, reference_admittance_);

*/

admittance_->update(joint_state_, ft_values_, *goal_pose_msg_, period, reference_admittance_);

Choose a reason for hiding this comment

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

@Nibanovic via parmeter maybe?

Copy link

This PR is stale because it has been open for 45 days with no activity. Please tag a maintainer for help on completing this PR, or close it if you think it has become obsolete.

@github-actions github-actions bot added the stale label Apr 15, 2025
Copy link

mergify bot commented Apr 15, 2025

This pull request is in conflict. Could you fix it @destogl?

@github-actions github-actions bot removed the stale label Apr 16, 2025
Copy link

github-actions bot commented Jun 2, 2025

This PR is stale because it has been open for 45 days with no activity. Please tag a maintainer for help on completing this PR, or close it if you think it has become obsolete.

@github-actions github-actions bot added the stale label Jun 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.