Ask Your Question
0

Parameter support in rosserial?

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

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

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()
{
  nh.initNode();
  nh.advertise(pub);

  while(!nh.connected()) {
    nh.spinOnce();
  }

  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 delete

1 answer

Sort by ยป oldest newest most voted
1

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

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 publish link more

Your Answer

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

Add Answer

[hide preview]

Question Tools

Follow
1 follower

Stats

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

Seen: 316 times

Last updated: Apr 26 '12