ros2doctor.api.package module

class ros2doctor.api.package.PackageCheck

Bases: DoctorCheck

Check local package versions against release versions on rosdistro.

category()
Returns:

string linking checks and reports.

check()

Check packages within the directory where command is called.

class ros2doctor.api.package.PackageReport

Bases: DoctorReport

Report local package versions and release versions on rosdistro.

category()
Returns:

string linking checks and reports.

report()

Report packages within the directory where command is called.

ros2doctor.api.package.compare_versions(result: Result, local_packages: dict, distro_packages: dict)

Return warning messages for PackageCheck, and info for PackageReport.

Param:

dictionary of local package name and version

Param:

dictionary of rosdistro package name and version

Param:

boolean value determines which output to populate, msgs or report

Returns:

list of warning messages

ros2doctor.api.package.get_distro_package_versions() dict

Return repos info using rosdistro API.

Returns:

dictionary of rosdistro package name and version

ros2doctor.api.package.get_local_package_versions() dict

Return local package name and versions.

Returns:

dictionary of local package name and version