ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
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 merge delete

1 Answer

Sort by ยป oldest newest most voted
2

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

Question Tools

1 follower

Stats

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

Seen: 1,518 times

Last updated: Apr 26 '12