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

no messages received in c++ subscriber #34

Closed
OTL opened this issue Dec 31, 2017 · 3 comments
Closed

no messages received in c++ subscriber #34

OTL opened this issue Dec 31, 2017 · 3 comments
Labels

Comments

@OTL
Copy link
Contributor

OTL commented Dec 31, 2017

Now it is possible to publish from C++, (#27) but c++ listener does not work.

I'm talking about below case.

  • Publisher: examples/publisher.rs
  • Subscriber: roscpp_tutorials/listener
roscore
rosrun roscpp_tutorials listener
cd rosrust
./target/debug/publisher

rostopic echo /chatter works fine, because it is python(?).

@adnanademovic
Copy link
Owner

I'll just document what my debug process was.

Once I tapped into roscpp's debug log, it said this:

Node: /listener
Time: 14:45:14.590936769 (2017-12-31)
Severity: Debug
Published Topics: /rosout

XML-RPC call [requestTopic] didn't return an array

Location:
/tmp/binarydeb/ros-kinetic-roscpp-1.12.12/src/libros/xmlrpc_manager.cpp:XMLRPCManager::validateXmlrpcResponse:215

----------------------------------------------------------------------------------------------------

Using Wireshark I realized that for the XML-RPC Slave API, even though it's documented as returning 3 parameters, roscpp actually wants 1 array parameter with 3 fields. I'll do that fix throughout the Slave API, since I'm sure that it wants that kind of response for every method.

@adnanademovic
Copy link
Owner

I tested roscpp_tutorial/rospy_tutorial listener/talker/add_two_ints_service/add_two_ints_client, and it worked. Fix should be in 0.6.2 in a few minutes

@OTL
Copy link
Contributor Author

OTL commented Jan 1, 2018

great quick fix!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants