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

ros2 node service can't communicate with non services ros2 node #333

Open
i-am-logger opened this issue Nov 26, 2023 · 2 comments
Open

ros2 node service can't communicate with non services ros2 node #333

i-am-logger opened this issue Nov 26, 2023 · 2 comments

Comments

@i-am-logger
Copy link

Hi,

I have the talker runs as a service and publish messages via the code:

{ pkgs, ... }:
{
    services.ros2 = {
    enable = true;
    distro = "iron";
    domainId = 0;
  
  nodes = {
    talker = {
      package = "demo_nodes_cpp";
      node = "talker";
    };
  };  
}

problem is when i run nix develop .#iron.demo_nodes_cpp and run the listener

ros2 run demo_nodes_cpp listener

the listener does not receive any messages...

the listener will start receiving message when i either run the talker with ros2 run or if i run the listener as a service like i do with the talker above...very strange behavior

@lopsided98
Copy link
Owner

This happens because the services are running as the ros user. I think it has something to do with shared memory fallback not working correctly, but it has been a while since I looked into it.

@i-am-logger
Copy link
Author

could it be related to this?

ros2/rclcpp#2335 ?
the new version of iron has this fix.

if not, any pointers on how to fix it?

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

No branches or pull requests

2 participants