-
Notifications
You must be signed in to change notification settings - Fork 86
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
ros service - no module named yaml
#367
Comments
I cannot easily reproduce your problem with the files you provided (few things are missing there), but it appears that
As a quick workaround, you can add To fix this problem for everybody, I suggest to first test whether adding |
tried to add |
Hmm, right. I verified that
But it fails with:
Do you know why? |
|
I have no practical experience with NixOS ROS modules, but from looking at the code, it seems you should modify your { pkgs, ... }:
{
services.ros2 = {
enable = true;
distro = "iron";
domainId = 0;
inherit pkgs;
systemPackages = pkgs: with pkgs; [
sky360.sky360-ros-iron-heartbeat
];
nodes = {
heartbeat = {
package = pkgs.sky360.sky360-ros-iron-heartbeat.pname;
node = "heartbeat";
args = [ ];
rosArgs = [ ];
params = { };
};
};
};
} |
i tried that: the I also tried systemPackages = pkgs: with pkgs; [
sky360.sky360-ros-iron-heartbeat
]; here the package can't be found when i
something is going on weird in how the pkgs overlay works in ros2 it seems some more info i tried to look with with this overlay: sky360-ros-packages-overlay = (final: prev: {
sky360-ros-iron-heartbeat = prev.callPackage ./ros/iron/heartbeat {};
});
sky360-packages-overlay = (self: super: {
rosPackages = super.rosPackages // {
iron = super.rosPackages.iron.overrideScope sky360-ros-packages-overlay;
};
}); i cant' find the package in when i use the below overlay outside of rosPackages namespace, the package is found with sky360-packages-overlay = (final: prev: {
sky360 = {
sky360-ros-iron-heartbeat = prev.callPackage ./ros/iron/heartbeat { };
};
}); |
I'd temporarily modify |
Yeah, this seems tricky, but I may have some clue what's going on. Can you verify that the |
i'll take a deeper look , thank you! have some errands this weekend but will get to it as soon as i can... |
I modified the talker from the demo cpp to a heartbeat service and i get the following error:
my fle:
ros2.nix
heartbeat.nix
The text was updated successfully, but these errors were encountered: