Module: validator

An object - Representing a validator in ROS.
Source:

Methods

(static) validateFullTopicName(topic) → {boolean}

Validate a given topic or service name, and throw an error if invalid.
Parameters:
Name Type Description
topic string The name of topic/service. and it must be fully-qualified and already expanded.
Source:
Returns:
- True if it is valid.
Type
boolean

(static) validateNamespace(namespace) → {boolean}

Validate a given namespace, and throw an error if invalid.
Parameters:
Name Type Description
namespace string The namespace to be validated
Source:
Returns:
- True if it is valid.
Type
boolean

(static) validateNodeName(name) → {boolean}

Validate a given node name, and throw an error if invalid.
Parameters:
Name Type Description
name string The name of node.
Source:
Returns:
- True if it is valid.
Type
boolean

(static) validateTopicName(topic) → {boolean}

Validate a given topic or service name, and throw an error if invalid.
Parameters:
Name Type Description
topic string The name of topic/service and does not have to be fully-qualified and is not expanded.
Source:
Returns:
- True if it is valid.
Type
boolean