Ask Your Question

Parameter support in rosserial?

asked 2012-02-14 02:55:22 -0600

updated 2012-02-14 03:05:38 -0600

I'm developing a rosserial node for reading some sensor values, and I was hoping to pull in a few parameters. There seems to be support in the code, and there's an old documentation page here (which isn't actually linked-to from the main documentation). This is my code:

void setup()

  while(!nh.connected()) {

  nh.getParam("devices", device_counts, 3);
  nh.getParam("rate", &rate);

I consistently get Tried to publish before configured, topic id 6, which is the parameter-fetch magic topic. I'm using Electric on an Oneiric system, with the rosserial debs. (I'm aware that I haven't got default values in here; I've removed those blocks, for simplicity of presentation.)

Is parameter server support incomplete in rosserial?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2012-04-26 21:57:43 -0600

piyushk gravatar image

I tested out using the parameter server through rosserial_arduino, and it seems to work fine. There were a couple of bugs (see ticket), but only if the parameter request failed.

I suspect that this error may have gotten resolved sometime over the past couple of months. I did use the rosserial source (for the Arduino 1.0 support) and ROS Fuerte.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2012-02-14 02:55:22 -0600

Seen: 760 times

Last updated: Apr 26 '12