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

Can rosserial set parameters?

asked 2017-03-08 11:25:33 -0600

nckswt gravatar image

updated 2017-03-08 14:20:23 -0600

The rosserial parameter documentation shows getting parameters from the parameter server, but not setting parameters. Is there a way to set parameters from rosserial?

I'm guessing not, since the NodeHandle class only has parameter getters, not setters, but I'm wondering if anything's in the works or why this hasn't been a priority yet.

edit retag flag offensive close merge delete



Parameters are usually set during startup/launch, and aren't normally used to communicate information from hardware to other nodes, so that's probably why there hasn't been an effort to set parameters from rosserial.

ahendrix gravatar image ahendrix  ( 2017-03-08 14:28:57 -0600 )edit

I was looking for a good way to provide several 32-byte constant values from my microcontroller into my ROS environment (unique IDs for all my devices, read on boot). rosserial doesn't seem to have a latching mechanism, so I supposed my best option is to use service calls through rosserial.

nckswt gravatar image nckswt  ( 2017-03-08 14:51:28 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-03-08 14:52:23 -0600

ahendrix gravatar image

There isn't an enumeration in the TopicInfo message for setting parameters: , and this is the message type that defines the wire protocol for seting up topics and services and retrieving parameters, so the definitive answer is no; rosserial cannot set parameters.

edit flag offensive delete link more

Question Tools



Asked: 2017-03-08 11:25:33 -0600

Seen: 822 times

Last updated: Mar 08 '17