0
$\begingroup$

Rosanswers logo

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.


Originally posted by nckswt on ROS Answers with karma: 539 on 2017-03-08

Post score: 0


Original comments

Comment by ahendrix on 2017-03-08:
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.

Comment by nckswt on 2017-03-08:
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.

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

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


Originally posted by ahendrix with karma: 47576 on 2017-03-08

This answer was ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.