clearpathrobotics / clearpath_config

Clearpath Configuration YAML Parser
https://docs.clearpathrobotics.com/
BSD 3-Clause "New" or "Revised" License
9 stars 9 forks source link

'HostsListConfig' Assertion Error #61

Closed luis-camero closed 2 months ago

luis-camero commented 8 months ago

The 0.2.6 release reworked the networking section under the system configuration in order to introduce discovery server support.

Therefore, if using an older version of the configuration YAML, you will likely see the following error:

AssertionError: Hosts value of {'self': 'cpr-a200-0000', 'platform': {'cpr-a200-0000': '192.168.131.1'}, 'onboard': {}, 'remote': {}} is invalid, it must be of type 'List[dict]' or 'HostListConfig'

To resolve it, remove the entire hosts section.

immanueln98 commented 5 months ago

Hi there, does this include the localhost stuff as well?

luis-camero commented 5 months ago

The localhost variable is currently not utilized but there are new release coming that will make use of it. Refer to the latest [Clearpath documentation] for how to add hosts after the 0.2.6 release. If you are having an issue like the one above, please provide the error output.

immanueln98 commented 5 months ago

I was able to mitigate the issue by removing all the host stuff from system.py, however, when restarting the robot.service, I receive no error but no topics are being published from any of the sensors or the controller.

luis-camero commented 5 months ago

In that case, the issue is likely not in Clearpath Config. Try restarting the robot and see if the issue persists. If it does, please contact support@clearpathrobotics.com. We will be able to better support you through these issues there.

immanueln98 commented 5 months ago

Thanks for your time Luis, i did indeed send a support request.

tonybaltovski commented 2 months ago

Closing as this has been fixed for a while.