You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SyncParametersClient prevents future publishers and services from being created #308
I've got a really strange situation where anything (in this case publishers and service servers) created after using the SyncParametersClient does not show up on the network. The workflow is as follows:
create node
create parameter service
create publisher on taco
create SyncParametersClient and use it
create publisher on map
The observed behavior is that the parameter service's topics and taco shows up in the rostopic_list's output, but map does not. If I comment out the creation of and usage of the SyncParametersClient, then map shows up.
I'm going to try and make a test to expose this issue.
To clarify, the publishers and service servers can be created successfully (no exception and objects are valid afterwards) and you can call .publish() on the publishers, but they will never show up in rostopic_list (which uses get_topic_names_and_types) and a subscriber of those topics (C++ or Python) will not receive any data (even if both are using default QoS settings). The topics do show up in rostopic_list once you create the subscription.
My guess is that it puts the node in some funky state because of how the sync client spins to get the service client response, but honestly I find it completely bizarre.
@wjwwood Do you think this is still an open issue?
I'll assign you to this ticket and add it to the bouncy milestone. I guess, it'd be great if we could verify that this behavior is still the same with the current ros2 master. If so, we can tackle it for the next release.
Feel free to re-assign the ticket.
Activity
wjwwood commentedon Mar 1, 2017
To clarify, the publishers and service servers can be created successfully (no exception and objects are valid afterwards) and you can call
.publish()on the publishers, but they will never show up inrostopic_list(which usesget_topic_names_and_types) and a subscriber of those topics (C++ or Python) will not receive any data (even if both are using default QoS settings). The topics do show up inrostopic_listonce you create the subscription.My guess is that it puts the node in some funky state because of how the sync client spins to get the service client response, but honestly I find it completely bizarre.
Karsten1987 commentedon Feb 26, 2018
@wjwwood Do you think this is still an open issue?
I'll assign you to this ticket and add it to the bouncy milestone. I guess, it'd be great if we could verify that this behavior is still the same with the current ros2 master. If so, we can tackle it for the next release.
Feel free to re-assign the ticket.
wjwwood commentedon Mar 20, 2018
I was unable to reproduce this with this code using master and fastrtps:
rosbag2_py reader and writer (ros2#308)