When the manager executes any of the ros2_launchers, launcher_ros2_api.py and launcher_drones_ros2, it encounters the following error:
File "/RoboticsAcademy/src/manager/manager/launcher/launcher_drones_ros2.py", line 8, in <module>
class LauncherDronesRos2(ILauncher):
File "/usr/local/lib/python3.10/dist-packages/pydantic/_internal/_model_construction.py", line 104, in __new__
private_attributes = inspect_namespace(
File "/usr/local/lib/python3.10/dist-packages/pydantic/_internal/_model_construction.py", line 370, in inspect_namespace
raise PydanticUserError(
pydantic.errors.PydanticUserError: A non-annotated attribute was detected: `running = False`. All model fields require a type annotation; if `running` is not meant to be a field, you may be able to resolve this error by annotating it as a `ClassVar` or updating `model_config['ignored_types']`.
This is asocciated with the running variable not having a type, and can be easily solved adding it.
When the manager executes any of the ros2_launchers,
launcher_ros2_api.py
andlauncher_drones_ros2
, it encounters the following error:This is asocciated with the running variable not having a type, and can be easily solved adding it.