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

Print a warning from TOTG if the robot model mixes revolute/prismatic joints #1799

Merged
merged 3 commits into from
Dec 13, 2022

Conversation

AndyZe
Copy link
Member

@AndyZe AndyZe commented Dec 9, 2022

Description

I believe TOTG can't handle mixed units well because the path_tolerance_ parameter is just a scalar value. So there's no good way to measure angular error mixed with linear error. Best just to fail and print a nice warning for the user.

@codecov
Copy link

codecov bot commented Dec 9, 2022

Codecov Report

Base: 50.25% // Head: 50.29% // Increases project coverage by +0.05% 🎉

Coverage data is based on head (cc2bcf7) compared to base (2e13217).
Patch coverage: 83.34% of modified lines in pull request are covered.

❗ Current head cc2bcf7 differs from pull request most recent head 7bf0513. Consider uploading reports for the commit 7bf0513 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1799      +/-   ##
==========================================
+ Coverage   50.25%   50.29%   +0.05%     
==========================================
  Files         374      374              
  Lines       31275    31287      +12     
==========================================
+ Hits        15713    15734      +21     
+ Misses      15562    15553       -9     
Impacted Files Coverage Δ
...ry_processing/time_optimal_trajectory_generation.h 100.00% <ø> (ø)
...cessing/src/time_optimal_trajectory_generation.cpp 88.22% <83.34%> (-0.09%) ⬇️
moveit_core/robot_state/src/robot_state.cpp 47.95% <0.00%> (+0.08%) ⬆️
moveit_ros/moveit_servo/src/pose_tracking.cpp 77.58% <0.00%> (+0.47%) ⬆️
moveit_ros/moveit_servo/src/servo_calcs.cpp 67.43% <0.00%> (+1.46%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@nbbrooks
Copy link
Contributor

nbbrooks commented Dec 9, 2022

Can we add a unit test for this?

@AndyZe
Copy link
Member Author

AndyZe commented Dec 9, 2022

I was looking into that but the JointType is protected, so it will take more time than I have right now.

https://github.com/ros-planning/moveit2/blob/ddd50ce124a4f2c6ca67ad9c5738d4f16e718168/moveit_core/robot_model/include/moveit/robot_model/joint_model.h#L473

@henningkayser
Copy link
Member

I agree that the path tolerance doesn't really make sense with mixed units. But do we have a good alternative for mixed joints?

@AndyZe AndyZe force-pushed the andyz/totg_mixed_units branch 2 times, most recently from efed3c9 to d907917 Compare December 9, 2022 21:33
@AndyZe
Copy link
Member Author

AndyZe commented Dec 9, 2022

That's a good point, I can't really think of an alternative. I could change this to just print a warning...

@AndyZe AndyZe changed the title Return a failure from TOTG if the robot model mixes revolute/prismatic joints Print a warning from TOTG if the robot model mixes revolute/prismatic joints Dec 12, 2022
Copy link
Member

@henningkayser henningkayser left a comment

Choose a reason for hiding this comment

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

thanks!

@tylerjw tylerjw merged commit e60bced into moveit:main Dec 13, 2022
mwangmiso added a commit to MisoRobotics/moveit2 that referenced this pull request Feb 3, 2023
@AndyZe AndyZe deleted the andyz/totg_mixed_units branch March 30, 2023 20:12
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

4 participants