ros_params

Functions to load parameters to the ROS parameter server.

ros_params.ros_load_yaml_from_pkg(pkg_name, file_name, ns='/') bool[source]

Fetch a YAML file from a package and load it into the ROS Parameter Server.

Parameters
  • pkg_name (str) – name of package.

  • file_name (str) – name of file.

  • ns (str) – namespace to load parameters into.

Returns

True if file was loaded, false otherwise.

Return type

bool

ros_params.ros_load_yaml_from_path(file_path, ns='/') bool[source]

Fetch a YAML file from a path and load it into the ROS Parameter Server.

Parameters
  • file_path (str) – path to file.

  • ns (str) – namespace to load parameters into.

Returns

True if file was loaded, false otherwise.

Return type

bool