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

multiple clientservice in rosserial?

asked 2012-07-20 20:57:00 -0600

punching gravatar image

I need multiple service clients on an arduino running rosserial.

In setup() I have: nh.serviceClient(client1); nh.serviceClient(client2);

Only the first is connecting. If I swap the order then client2 is the only one called. No error messages in either serial_node.py or by the Arduino.

Anyone get multiple service clients to work?

edit retag flag offensive close merge delete

Comments

Didn't realize I needed to have the ServiceServer running. Without it running it got hung on the first serviceClient and wouldn't continue to the second one.

punching gravatar image punching  ( 2012-07-22 10:12:05 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-08-10 14:10:16 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Didn't realize I needed to have the ServiceServer running. Without it running it got hung on the first serviceClient and wouldn't continue to the second one. punching (Jul 22 '12)

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-07-20 20:57:00 -0600

Seen: 235 times

Last updated: Aug 10 '12