While executing ros2_control_setup-setup-hardware-interface-package add the following message was printed:
FINISHED: Your package is set and the tests should be finished without any errors. (linter errors possible!)
But the previous executed build which was started by the script failed due to
Licence.
No License:
--- stderr: hardware
Error parsing '/workspaces/ros_hardware_interface_training/src/hardware/package.xml':
Traceback (most recent call last):
File "/opt/ros/humble/share/ament_cmake_core/cmake/core/package_xml_2_cmake.py", line 150, in <module>
main()
File "/opt/ros/humble/share/ament_cmake_core/cmake/core/package_xml_2_cmake.py", line 53, in main
raise e
File "/opt/ros/humble/share/ament_cmake_core/cmake/core/package_xml_2_cmake.py", line 49, in main
package = parse_package_string(
File "/usr/lib/python3/dist-packages/catkin_pkg/package.py", line 788, in parse_package_string
pkg.validate(warnings=warnings)
File "/usr/lib/python3/dist-packages/catkin_pkg/package.py", line 330, in validate
raise InvalidPackage('\n'.join(errors), self.filename)
catkin_pkg.package.InvalidPackage: Error(s) in package '/workspaces/ros_hardware_interface_training/src/hardware/package.xml':
The license tag must neither be empty nor only contain whitespaces
CMake Error at /opt/ros/humble/share/ament_cmake_core/cmake/core/ament_package_xml.cmake:95 (message):
execute_process(/usr/bin/python3.10
/opt/ros/humble/share/ament_cmake_core/cmake/core/package_xml_2_cmake.py
/workspaces/ros_hardware_interface_training/src/hardware/package.xml
/workspaces/ros_hardware_interface_training/src/hardware/build/hardware/ament_cmake_core/package.cmake)
returned error code 1
Call Stack (most recent call first):
/opt/ros/humble/share/ament_cmake_core/cmake/core/ament_package_xml.cmake:49 (_ament_package_xml)
/opt/ros/humble/share/ament_lint_auto/cmake/ament_lint_auto_find_test_dependencies.cmake:31 (ament_package_xml)
CMakeLists.txt:59 (ament_lint_auto_find_test_dependencies)
---
Failed <<< hardware [2.66s, exited with code 1]
While executing ros2_control_setup-setup-hardware-interface-package add the following message was printed:
But the previous executed build which was started by the script failed due to Licence.