Ask Your Question
0

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

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 imageahendrix ( 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 imagenckswt ( 2017-03-08 14:51:28 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

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

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

Your Answer

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

Add Answer

Question Tools

2 followers

Stats

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

Seen: 345 times

Last updated: Mar 08 '17