Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Your question is somewhat confusing. A service always IS part of a node, so you'll have to write a node. Any ROS program is a node. As such you can also use the normal ROS parameter APIs for getting parameters to be used by services.

ROS parameters used by nodes are also commonly set on the parameter server. That is the standard use case. Private parameters are by convention those in a node's namespace, although they are globally accessible.

The two other options you have besides that: 1. Pass command line parameters, 2. pass the parameters as part of the service call.