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

Adding a missing dependency declaration on joint_limits_interface #2487

Merged
merged 2 commits into from Jan 27, 2021

Conversation

ct2034
Copy link
Contributor

@ct2034 ct2034 commented Jan 14, 2021

Adding a missing dependency declaration on joint_limits_interface

@ct2034 ct2034 changed the title Fix/missing dep joint limits interface Adding a missing dependency declaration on joint_limits_interface Jan 14, 2021
@gavanderhoorn
Copy link
Contributor

The code seems to be using it, but why does a planner have a direct dependency on something from ros_control which is typically only used by hardware_interface implementations?

@codecov
Copy link

codecov bot commented Jan 14, 2021

Codecov Report

Merging #2487 (19dd302) into master (a9c8f93) will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2487      +/-   ##
==========================================
+ Coverage   60.24%   60.24%   +0.01%     
==========================================
  Files         351      351              
  Lines       26477    26477              
==========================================
+ Hits        15948    15949       +1     
+ Misses      10529    10528       -1     
Impacted Files Coverage Δ
...nning_scene_monitor/src/planning_scene_monitor.cpp 68.32% <0.00%> (+0.16%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a9c8f93...19dd302. Read the comment docs.

@ct2034 ct2034 marked this pull request as ready for review January 14, 2021 20:34
@jschleicher jschleicher linked an issue Jan 15, 2021 that may be closed by this pull request
@martiniil
Copy link
Contributor

The code seems to be using it, but why does a planner have a direct dependency on something from ros_control which is typically only used by hardware_interface implementations?

It allows us to represent joint limits and populate them from the parameter server.

@jschleicher
Copy link
Contributor

@gavanderhoorn What would you suggest? We need the limits for time parametrization of the trajectory. Is there a URDF::JointLimits class or something more appropriate here?

@gavanderhoorn
Copy link
Contributor

We have RobotModel::getVariableBounds(..) fi, which you already appear to be using (here fi).

My comment is not an "official review". I just happened to notice that we're adding a direct dependency on ros_control to a (core) planner of MoveIt, while MoveIt itself also loads joint limits. Using parallel functionality from another package seemed strange to me, hence the question.

@ct2034
Copy link
Contributor Author

ct2034 commented Jan 20, 2021

Thanks for the feedback @gavanderhoorn . Would you still agree to merge it like this? I agree that a solution with RobotModel::getVariableBounds(..) would be neater but I would prefer to fix that separately and put it onto our backlog.

Copy link
Contributor

@simonschmeisser simonschmeisser left a comment

Choose a reason for hiding this comment

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

I agree with @gavanderhoorn that this dependency should be killed asap but it should also not be a hidden surprise

@AndyZe
Copy link
Member

AndyZe commented Jan 27, 2021

^ i agree with that logic

@AndyZe
Copy link
Member

AndyZe commented Jan 27, 2021

An issue should probably be created to remove the dependency.

Copy link
Contributor

@rhaschke rhaschke left a comment

Choose a reason for hiding this comment

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

Approving and merging. @jschleicher: Could you please work on a PR to replace this interface and use the existing RobotModel interface instead?

@rhaschke rhaschke merged commit 74b3e30 into moveit:master Jan 27, 2021
@jschleicher
Copy link
Contributor

Thanks for merging. Yes, I've put it on our backlog.

@jschleicher jschleicher deleted the fix/missing_dep_joint_limits_interface branch January 28, 2021 08:42
@tylerjw tylerjw mentioned this pull request Apr 9, 2021
tylerjw pushed a commit to tylerjw/moveit that referenced this pull request Apr 29, 2021
@tylerjw tylerjw mentioned this pull request Apr 29, 2021
jschleicher pushed a commit to PilzDE/moveit that referenced this pull request May 3, 2021
jschleicher added a commit to PilzDE/moveit that referenced this pull request May 3, 2021
jschleicher pushed a commit to PilzDE/moveit that referenced this pull request May 3, 2021
tylerjw pushed a commit to tylerjw/moveit that referenced this pull request May 3, 2021
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.

Missing dependency in Pilz planner
7 participants