ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Multiple Publishers, single subscriber - pubUpdate call fails.

asked 2012-04-09 07:59:25 -0500

stevefturner gravatar image

Here's my scenario: I have a rosjava master running on 192.168.1.2.

I create a publisher running on 192.168.1.3 with ROS_IP=192.168.1.3. (Using rostopic)

I create a subscriber on 192.168.1.2 with ROS_IP=192.168.1.2, the subscriber connects successfully and starts receiving messages. (Using roscpp).

I create a subscriber on 192.168.1.3 with ROS_IP=192.168.1.3, the subscriber connects successfully and starts receiving messages. (Using rostopic).

I create another publisher on the same topic on 192.168.1.3 using rostopic. The subscriber on 192.168.1.3 replies successfully to the rosjava master's publisherUpdate XMLRPC call in SlaveClient.java. However, the roscpp node running on 192.168.1.2 returns a failure code to the master's call to publisherUpdate causing the second rostopic publisher to fail registration with the master.

Any ideas on what might be causing this?

edit retag flag offensive close merge delete

Comments

Looking at topic_manager.cpp:pubUpdateCallback, I see the request come in, but it will only ever return a successful XMLRPC response if pubUpdate returns true. pubUpdate always returns false in this case. Bug -- or am I missing something here?

stevefturner gravatar image stevefturner  ( 2012-04-09 11:35:08 -0500 )edit

Have you made any more progress on debugging this issue?

damonkohler gravatar image damonkohler  ( 2012-04-23 02:36:31 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-06-25 09:42:22 -0500

stevefturner gravatar image

Damon, I ended up modifying the pubUpdate calls in topic_manager.cpp:583 to return sub->pubUpdate(pubs); so that it returns true and thus constructs the response properly.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-04-09 07:59:25 -0500

Seen: 400 times

Last updated: Apr 09 '12