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

Document/clarify that multiple yarp::os::Node objects are allowed for process #17

Open
1 task
traversaro opened this issue Sep 27, 2017 · 5 comments
Open
1 task

Comments

@traversaro
Copy link
Member

traversaro commented Sep 27, 2017

The yarp::os::Node class is a YARP class useful to interact with the ROS 1 Master and publish/subscribe ROS 1 topics without the need to link any ROS client library such as roscpp.

In the ROS 1 computation graph, the Node identifies a single process. However, using the yarp::os::Node is possible to create multiple Nodes for each process. It is not clear (for some of us) if this is allowed or it can create problems with ROS 1 Master.

  • Document the class and its methods with Doxygen

cc @drdanz @randaz81 @aerydna and in particular @barbalberto that worked a lot on ROS/YARP integration

@traversaro
Copy link
Member Author

An example of use of multiple nodes in the same process that is causing a crash is attached.

testPublisher3.zip

@damn1
Copy link

damn1 commented Jul 11, 2018

I've tested this snippet of code with YARP 2.3.72, then ported it to YARP 3.0.0 and retested. Both cases I'm not able to reproduce this problem in a debugging context. Do you remember what kind of crash should it cause?
Here is a gist with the same test that can build with YARP 3.0.0:
https://gist.github.com/damn1/6355b4c952bcba4451230e2c2ef52017

Maybe this issue could be unified with #8 depending on the crash it was causing?

@traversaro
Copy link
Member Author

traversaro commented Jul 11, 2018

I do not remember correctly the details on how I run those tests, but based on the date of the issue there are some aspects that perhaps you did not replicated on your setup:

  • The yarpserver was running on a machine different from the one on which I was running the test (possibly I was communicating with it over WiFi)
  • roscore was running, and the yarpserver was launched with the --ros option (and perhaps also the yarpserver and the roscore were communicating over WiFi.

@traversaro
Copy link
Member Author

I remember I also used rqt_graph and I obtained strange results, wondering if the multuple node for a single process was creating problems with the ROS 1 roscore.

@traversaro
Copy link
Member Author

@damn1 This issue could be related: #16 .

@randaz81 randaz81 transferred this issue from robotology/yarp Sep 7, 2023
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