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

Add noetic fixes #52

Merged
merged 2 commits into from
Sep 18, 2023
Merged

Conversation

AdrianZw
Copy link
Contributor

@AdrianZw AdrianZw commented Sep 6, 2021

In ROS-Noetic, the Sawyer Simulation and the pick-and-place-example, was not properly working.
Three major contributions in this pull request.

  1. The head_interface.cpp use a deprecated OpenCV flag, which was updated.
  2. The KDL FK and IK solver where not properly initialized. Most likely due to a not properly implemented move constructor in KDL::Chain leading e.g. ChainFkSolverPos_recursive to return a dimension mismatch error (-4). Hence, as a workaround, std::unique_ptr<KDL::Chain> is used in the Kinematics struct rather than the KDL::Chain attribute.
  3. In the pick-and-place example, ik_pick_and_place_demo.py, the IK service failed to find solutions. The root cause was the linear interpolation of the quaternions. Therefore, the Slerp interpolation is used for quaternions which seems to resolve the issue.
  4. Some minor fixes, required for Noetic (linking of yaml) and catching exceptions as e in Python 3.

Finally, I would like to point out that these fixes should also be tested in ROS-Melodic and ROS-Kinetic.

Changes:
- Update OpenCV flag in head_interface.cpp
- Properly initiate KDL solvers
- Interpolate quaternions with slerp in the example
yepw added a commit to yepw/sawyer_simulator that referenced this pull request Mar 8, 2022
odaibasha added a commit to odaibasha/sawyer_simulator that referenced this pull request May 15, 2022
tunglm2203 added a commit to tunglm2203/sawyer_simulator that referenced this pull request Jun 23, 2023
@AdrianZw AdrianZw changed the base branch from master to noetic_devel September 14, 2023 13:53
@ErickKramer ErickKramer self-requested a review September 18, 2023 07:42
@ErickKramer ErickKramer merged commit 4eb463c into RethinkRobotics:noetic_devel Sep 18, 2023
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.

2 participants