Implementation of the rosparam as well as a library for modifying the state of the ROS Parameter Server using YAML files.
From __init__.py:
| Exception | |
rosparam base exception type |
| Exception | |
Exception for communication-based (i/o) errors. |
| Function | construct |
python-yaml utility for converting deg(num) into float value |
| Function | construct |
python-yaml utility for converting rad(num) into float value |
| Function | construct |
Overrides pyaml's constructor for binary data. Wraps binary data in xmlrpclib.Binary container instead of straight string representation. |
| Function | delete |
Delete a parameter from the Parameter Server |
| Function | dump |
Download a parameter tree from the Parameter Server and store in a yaml file |
| Function | get |
Download a parameter from Parameter Server |
| Function | get |
Undocumented |
| Function | list |
Get list of parameters in ns |
| Function | load |
Load the YAML document from the specified file |
| Function | load |
Load the YAML document as a string |
| Function | print |
Print contents of param dictionary to screen |
| Function | represent |
Undocumented |
| Function | represent |
Adds a pyyaml serializer to handle xmlrpclib.Binary objects |
| Function | set |
Set param on the ROS parameter server using a YAML value. |
| Function | set |
Set param on the Parameter Server. Unlike L{set_param()}, this takes in a Python value to set instead of YAML. |
| Function | upload |
Upload params to the Parameter Server :param values: key/value dictionary, where keys are parameter names and values are parameter values, dict :param ns: namespace to load parameters into, str |
| Function | yamlmain |
Command-line main routine. Loads in one or more input files |
| Constant | NAME |
Undocumented |
| Constant | NS |
Undocumented |
| Variable | pattern |
Undocumented |
| Function | _fullusage |
Prints rosparam usage |
| Function | _get |
No summary |
| Function | _pretty |
Pretty print get value :param value: value to print :param indent: indent level, used for recursive calls, str |
| Function | _rosparam |
rosparam delete param |
| Function | _rosparam |
rosparam get param rosparam dump file.yaml [namespace] |
| Function | _rosparam |
Download a parameter tree and print to screen :param param: parameter name to retrieve from Parameter |
| Function | _rosparam |
rosparam load file.yaml [namespace] rosparam set param value |
| Function | _rosparam |
rosparam load file.yaml [namespace] rosparam set param value |
| Function | _set |
Undocumented |
Overrides pyaml's constructor for binary data. Wraps binary data in xmlrpclib.Binary container instead of straight string representation.
Load the YAML document from the specified file
| Parameters | |
| filename | name of filename, str |
| default | namespace to load filename into, str |
| verbose | Undocumented |
| Returns | |
| list of parameter dictionary and corresponding namespaces for each YAML document in the file | |
| Raises | |
Unknown exception | RosParamException: if unable to load contents of filename |
Load the YAML document as a string
| Parameters | |
| str | YAML text, str |
| filename | name of filename, only used for debugging, str |
| default | namespace to load filename into, str |
| verbose | Undocumented |
| Returns | |
| list of parameter dictionary and corresponding namespaces for each YAML document in the file, [(dict, str)...] | |
Download a parameter from Parameter Server
| Parameters | |
| param | parameter name to retrieve from parameter server. If param is a parameter namespace, entire parameter subtree will be downloaded, str |
Pretty print get value :param value: value to print :param indent: indent level, used for recursive calls, str
Download a parameter tree and print to screen :param param: parameter name to retrieve from Parameter
Server. If param is a parameter namespace, entire parameter subtree will be downloaded, str
Download a parameter tree from the Parameter Server and store in a yaml file
| Parameters | |
| filename | name of file to save YAML representation, str |
| param | name of parameter/namespace to dump, str |
| verbose | print verbose output for debugging, bool |
Delete a parameter from the Parameter Server
| Parameters | |
| param | parameter name, str |
| verbose | print verbose output for debugging, bool |
Set param on the Parameter Server. Unlike L{set_param()}, this takes in a Python value to set instead of YAML.
| Parameters | |
| param | parameter name, str |
| value | Undocumented |
| verbose | Undocumented |
| value | value to upload, XmlRpcLegalValue |
Set param on the ROS parameter server using a YAML value.
| Parameters | |
| param | parameter name, str |
| value | yaml-encoded value, str |
| verbose | Undocumented |
Upload params to the Parameter Server :param values: key/value dictionary, where keys are parameter names and values are parameter values, dict :param ns: namespace to load parameters into, str
- Process command line for rosparam get/dump, e.g.::
- rosparam get param rosparam dump file.yaml [namespace]
| Parameters | |
| cmd | command ('get' or 'dump'), str |
| argv | command-line args, str |
- Process command line for rosparam set/load, e.g.::
- rosparam load file.yaml [namespace] rosparam set param value
| Parameters | |
| cmd | command name, str |
| argv | command-line args, str |
- Process command line for rosparam set/load, e.g.::
- rosparam load file.yaml [namespace] rosparam set param value
| Parameters | |
| argv | command-line args, str |
- Process command line for rosparam delete, e.g.::
- rosparam delete param
| Parameters | |
| argv | command-line args, str |
| cmd | command name, str |