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

Can rosserial set parameters?

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

nckswt gravatar image

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

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

Comments

1

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 -0500 )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 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

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

ahendrix gravatar image

There isn't an enumeration in the TopicInfo message for setting parameters: https://github.com/ros-drivers/rosser... , 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

2 followers

Stats

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

Seen: 829 times

Last updated: Mar 08 '17