Closed movefasta closed 1 year ago
it was fixed in https://github.com/ros-planning/moveit2/pull/1817
Well, issue was fixed, but fix was not included to releases yet. What should i do? Overlay nix-ros-ovelay with master branch of moveit-core?
Overriding the version won't fix the problem, since it won't change the dependencies. Your best bet is probably to override the package to add tf2-kdl
to propagatedBuildInputs
while you wait for them to make a new release.
Thanks for advice. I tried
moveit-core-patched = ros.humble.moveit-core.overrideAttrs (old: {
propagatedBuildInputs = old.propagatedBuildInputs ++ [ ros.humble.tf2-kdl ];
});
moveit-core
was built successfully, but when i tried build moveit-ros-planning
('moveit-core''s dependent) it starts to build moveit-core again and drops with same error. I thought, that moveit-ros-planning
is using standard overlays's version and tried to override moveit-core
from buildPropagatedInputs
of moveit-ros-planning
:
propagatedBuildInputs = (pkgs.lib.lists.remove "moveit-core" old.propagatedBuildInputs) ++ [ moveit-core-patched ];
});
This is not helps... so why moveit-ros-planning
is trying build moveit-core
again?
You can apply an overlay to the ROS package set with something like humble.overrideScope (final: prev: { moveit-core = prev.moveit-core.overrideAttrs ... })
), which will replace all usages of moveit-core with the fixed version.
Thanks. That's works! Final overriding is here
humble-overrided = ros.humble.overrideScope (final: prev: {
moveit-core = prev.moveit-core.overrideAttrs (old: { propagatedBuildInputs = old.propagatedBuildInputs ++ [ prev.tf2-kdl ];});
moveit-kinematics = prev.moveit-kinematics.overrideAttrs (old: { propagatedBuildInputs = old.propagatedBuildInputs ++ [ final.moveit-ros-planning ];});
});
Hello. I tried to build moveit-core on Humble and got an issue with cmake, that cannot found package
To debug this i'm run nix shell with
inputsFrom = [ ros-humble.moveit-core ];
attribute and found that tf2-kdl is not presented in propagatedBuildInputs. Meanwhile another moveit-core dependencies (like tf2-eigen, that cmake successfully found) are defined there:According to humble/moveit-core/default.nix#L18,
tf2-kdl
is incheckInputs
and missing inpropagatedBuildInputs
.