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

Revision history [back]

click to hide/show revision 1
initial version

Client client("mode_client", true);

If I'm not mistaken, the first argument to the ctor would be the namespace the client uses to communicate with the server (docs).

You set that to mode_server for the server, but to mode_client for the client.

That would make them unable to find each other, causing the client to wait for the server to come up.

Client client("mode_client", true);

If I'm not mistaken, the first argument to the ctor would be the namespace the client uses to communicate with the server (docs).

You set that to mode_server for the server, but to mode_client for the client.

That would make them unable to find each other, causing the client to wait for the server to come up.

The example server and client you mention use fibonacci for both the server and the client. That's probably why that version of the code does "work".

ModeActionServer server("mode_server");

and

Client client("mode_client", true);

true);

If I'm not mistaken, the first argument to the ctor would be the namespace the client uses to communicate with the server (docs).

You set that to mode_server for the server, but to mode_client for the client.

That would make them unable to find each other, causing the client to wait for the server to come up.

The example server and client you mention use fibonacci for both the server and the client. That's probably why that version of the code does "work".