Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Recovering sick_ldmrs_node #250

Open
tobiasduerschmid opened this issue Jun 14, 2022 · 0 comments
Open

Error Recovering sick_ldmrs_node #250

tobiasduerschmid opened this issue Jun 14, 2022 · 0 comments

Comments

@tobiasduerschmid
Copy link
Collaborator

tobiasduerschmid commented Jun 14, 2022

When running pipenv run rosdiscover recover ./experiments/recovery/subjects/autoware/experiment.yml sick_ldmrs_driver sick_ldmrs_node, the error output is:

2022-06-14 10:56:20.568 | ERROR    | roswire.common.source:_resolve_to_real_file:519 - Error finding real file matching ./src/driver/src/WIN32 in /home/autoware/Autoware/ros/src/sensing/drivers/lidar/packages/sick/ldmrs/sick_ldmrs_driver/src/driver/src
2022-06-14 10:56:20.568 | ERROR    | roswire.common.source:_resolve_to_real_file:522 - {'CMAKE_SOURCE_DIR': '', 'PROJECT_SOURCE_DIR': 'src', 'CMAKE_CURRENT_SOURCE_DIR': './src/driver/src', 'PROJECT_VERSION': '__dummy_property_value__', 'CATKIN_GLOBAL_INCLUDE_DESTINATION': '/include', 'PYTHON_EXT_SUFFIX': '""', 'CATKIN_DEVEL_PREFIX': '/home/autoware/Autoware/ros/devel/sick_ldmrs_driver', 'CMAKE_BINARY_DIR': '/home/autoware/Autoware/ros/build', 'CMAKE_CURRENT_BINARY_DIR': '/home/autoware/Autoware/ros/build/sick_ldmrs_driver/sick_ldmrs_driver/LIBSICK_LDMRS', 'PROJECT_NAME': 'LIBSICK_LDMRS', 'cmakelists': '/home/autoware/Autoware/ros/src/sensing/drivers/lidar/packages/sick/ldmrs/sick_ldmrs_driver/./src/driver/src/CMakeLists.txt', 'cmakelists_line': 127, 'cwd': './src/driver/src', 'SICK_LDMRS_MAJOR_VERSION': '0', 'SICK_LDMRS_MINOR_VERSION': '1', 'SICK_LDMRS_PATCH_VERSION': '0', 'SICK_LDMRS_VERSION': '0.1.0', 'INSTALL_LIB_DIR': '/lib', 'INSTALL_BIN_DIR': '/bin', 'INSTALL_INCLUDE_DIR': '/include', 'DEF_INSTALL_CMAKE_DIR': 'lib/cmake/SickLDMRS', 'INSTALL_CMAKE_DIR': '/lib/cmake/SickLDMRS', 'p': 'CMAKE', 'var': 'INSTALL_CMAKE_DIR', 'LDMRS_Example_HEADERS': 'BasicDatatypes.hpp;application/LdmrsApp.hpp;application/LdmrsFieldApp.hpp;application/LdmrsSectorChangeApp.hpp;application/LdmrsNtpTimeApp.hpp;application/LdmrsScanpointCoordinateApp.hpp;application/BasicApplication.hpp;devices/BasicDevice.hpp;devices/LD_MRS.hpp;devices/LuxBase.hpp;sopas/LdmrsSopasLayer.hpp;sopas/SopasBase.hpp;sopas/colaa.hpp;sopas/colab.hpp;datatypes/Measurement.hpp;datatypes/SensorStateInfo.hpp;datatypes/Fields.hpp;datatypes/FieldParameter.hpp;datatypes/FieldDescription.hpp;datatypes/EvalCase.hpp;datatypes/EvalCases.hpp;datatypes/EvalCaseResult.hpp;datatypes/EvalCaseResults.hpp;datatypes/Trigger.hpp;datatypes/Point2D.hpp;datatypes/Point3D.hpp;datatypes/Position3D.hpp;datatypes/PositionWGS84.hpp;datatypes/Polygon2D.hpp;datatypes/Polygon3D.hpp;datatypes/Circle2D.hpp;datatypes/Ellipse2D.hpp;datatypes/Box2D.hpp;datatypes/Line2D.hpp;datatypes/Msg.hpp;datatypes/Scan.hpp;datatypes/ScanPoint.hpp;datatypes/ScannerInfo.hpp;datatypes/Object.hpp;interfaces/tcp.hpp;interfaces/file.hpp;tools/errorhandler.hpp;tools/SickThread.hpp;tools/toolbox.hpp;tools/MathToolbox.hpp;tools/Mutex.hpp;tools/Timer.hpp;tools/Time.hpp;tools/WatchdogTimer.hpp;tools/BasicDataBuffer.hpp;manager.hpp', 'LDMRS_Example_SOURCES': 'application/LdmrsApp.cpp;application/LdmrsFieldApp.cpp;application/LdmrsSectorChangeApp.cpp;application/LdmrsNtpTimeApp.cpp;application/LdmrsScanpointCoordinateApp.cpp;application/BasicApplication.cpp;devices/BasicDevice.cpp;devices/LD_MRS.cpp;devices/LuxBase.cpp;sopas/LdmrsSopasLayer.cpp;sopas/SopasBase.cpp;sopas/colaa.cpp;sopas/colab.cpp;datatypes/Measurement.cpp;datatypes/SensorStateInfo.cpp;datatypes/Fields.cpp;datatypes/FieldParameter.cpp;datatypes/FieldDescription.cpp;datatypes/EvalCase.cpp;datatypes/EvalCases.cpp;datatypes/EvalCaseResult.cpp;datatypes/EvalCaseResults.cpp;datatypes/Polygon2D.cpp;datatypes/Polygon3D.cpp;datatypes/Trigger.cpp;datatypes/Point2D.cpp;datatypes/Point3D.cpp;datatypes/Position3D.cpp;datatypes/PositionWGS84.cpp;datatypes/Circle2D.cpp;datatypes/Ellipse2D.cpp;datatypes/Box2D.cpp;datatypes/Line2D.cpp;datatypes/Msg.cpp;datatypes/Scan.cpp;datatypes/ScanPoint.cpp;datatypes/ScannerInfo.cpp;datatypes/Object.cpp;interfaces/tcp.cpp;interfaces/file.cpp;tools/errorhandler.cpp;tools/SickThread.cpp;tools/Mutex.cpp;tools/toolbox.cpp;tools/MathToolbox.cpp;tools/BasicDataBuffer.cpp;tools/Timer.cpp;tools/Time.cpp;tools/WatchdogTimer.cpp;manager.cpp;main.cpp'}
2022-06-14 10:56:20.568 | ERROR    | roswire.common.source:_process_cmake_contents:369 - Error processing add_executable(['LDMRS_Example', 'WIN32', 'application/LdmrsApp.cpp', 'application/LdmrsFieldApp.cpp', 'application/LdmrsSectorChangeApp.cpp', 'application/LdmrsNtpTimeApp.cpp', 'application/LdmrsScanpointCoordinateApp.cpp', 'application/BasicApplication.cpp', 'devices/BasicDevice.cpp', 'devices/LD_MRS.cpp', 'devices/LuxBase.cpp', 'sopas/LdmrsSopasLayer.cpp', 'sopas/SopasBase.cpp', 'sopas/colaa.cpp', 'sopas/colab.cpp', 'datatypes/Measurement.cpp', 'datatypes/SensorStateInfo.cpp', 'datatypes/Fields.cpp', 'datatypes/FieldParameter.cpp', 'datatypes/FieldDescription.cpp', 'datatypes/EvalCase.cpp', 'datatypes/EvalCases.cpp', 'datatypes/EvalCaseResult.cpp', 'datatypes/EvalCaseResults.cpp', 'datatypes/Polygon2D.cpp', 'datatypes/Polygon3D.cpp', 'datatypes/Trigger.cpp', 'datatypes/Point2D.cpp', 'datatypes/Point3D.cpp', 'datatypes/Position3D.cpp', 'datatypes/PositionWGS84.cpp', 'datatypes/Circle2D.cpp', 'datatypes/Ellipse2D.cpp', 'datatypes/Box2D.cpp', 'datatypes/Line2D.cpp', 'datatypes/Msg.cpp', 'datatypes/Scan.cpp', 'datatypes/ScanPoint.cpp', 'datatypes/ScannerInfo.cpp', 'datatypes/Object.cpp', 'interfaces/tcp.cpp', 'interfaces/file.cpp', 'tools/errorhandler.cpp', 'tools/SickThread.cpp', 'tools/Mutex.cpp', 'tools/toolbox.cpp', 'tools/MathToolbox.cpp', 'tools/BasicDataBuffer.cpp', 'tools/Timer.cpp', 'tools/Time.cpp', 'tools/WatchdogTimer.cpp', 'manager.cpp', 'main.cpp', 'BasicDatatypes.hpp', 'application/LdmrsApp.hpp', 'application/LdmrsFieldApp.hpp', 'application/LdmrsSectorChangeApp.hpp', 'application/LdmrsNtpTimeApp.hpp', 'application/LdmrsScanpointCoordinateApp.hpp', 'application/BasicApplication.hpp', 'devices/BasicDevice.hpp', 'devices/LD_MRS.hpp', 'devices/LuxBase.hpp', 'sopas/LdmrsSopasLayer.hpp', 'sopas/SopasBase.hpp', 'sopas/colaa.hpp', 'sopas/colab.hpp', 'datatypes/Measurement.hpp', 'datatypes/SensorStateInfo.hpp', 'datatypes/Fields.hpp', 'datatypes/FieldParameter.hpp', 'datatypes/FieldDescription.hpp', 'datatypes/EvalCase.hpp', 'datatypes/EvalCases.hpp', 'datatypes/EvalCaseResult.hpp', 'datatypes/EvalCaseResults.hpp', 'datatypes/Trigger.hpp', 'datatypes/Point2D.hpp', 'datatypes/Point3D.hpp', 'datatypes/Position3D.hpp', 'datatypes/PositionWGS84.hpp', 'datatypes/Polygon2D.hpp', 'datatypes/Polygon3D.hpp', 'datatypes/Circle2D.hpp', 'datatypes/Ellipse2D.hpp', 'datatypes/Box2D.hpp', 'datatypes/Line2D.hpp', 'datatypes/Msg.hpp', 'datatypes/Scan.hpp', 'datatypes/ScanPoint.hpp', 'datatypes/ScannerInfo.hpp', 'datatypes/Object.hpp', 'interfaces/tcp.hpp', 'interfaces/file.hpp', 'tools/errorhandler.hpp', 'tools/SickThread.hpp', 'tools/toolbox.hpp', 'tools/MathToolbox.hpp', 'tools/Mutex.hpp', 'tools/Timer.hpp', 'tools/Time.hpp', 'tools/WatchdogTimer.hpp', 'tools/BasicDataBuffer.hpp', 'manager.hpp']) in /home/autoware/Autoware/ros/src/sensing/drivers/lidar/packages/sick/ldmrs/sick_ldmrs_driver/./src/driver/src/CMakeLists.txt
2022-06-14 10:56:20.568 | ERROR    | roswire.common.source:_process_cmake_contents:369 - Error processing add_subdirectory(['src']) in /home/autoware/Autoware/ros/src/sensing/drivers/lidar/packages/sick/ldmrs/sick_ldmrs_driver/./src/driver/CMakeLists.txt
2022-06-14 10:56:20.568 | ERROR    | roswire.common.source:_process_cmake_contents:369 - Error processing add_subdirectory(['src/driver']) in /home/autoware/Autoware/ros/src/sensing/drivers/lidar/packages/sick/ldmrs/sick_ldmrs_driver/CMakeLists.txt
Traceback (most recent call last):
  File "/home/tdurschm/.local/share/virtualenvs/rosdiscover-evaluation-bTHRrKeV/bin/rosdiscover", line 33, in <module>
    sys.exit(load_entry_point('rosdiscover', 'console_scripts', 'rosdiscover')())
  File "/usr0/home/tdurschm/rosdiscover-evaluation/deps/rosdiscover/src/rosdiscover/cli.py", line 358, in main
    parsed_args.func(parsed_args)
  File "/usr0/home/tdurschm/rosdiscover-evaluation/deps/rosdiscover/src/rosdiscover/cli.py", line 49, in recover
    model = tool.recover_using_cmakelists(args.package, args.node)
  File "/usr0/home/tdurschm/rosdiscover-evaluation/deps/rosdiscover/src/rosdiscover/recover/tool.py", line 274, in recover_using_cmakelists
    source_info = self._info_via_cmake(package, node_name)
  File "/usr0/home/tdurschm/rosdiscover-evaluation/deps/rosdiscover/src/rosdiscover/recover/tool.py", line 247, in _info_via_cmake
    cmake_info = ros1.package_node_sources(package)
  File "/usr0/home/tdurschm/rosdiscover-evaluation/deps/roswire/src/roswire/ros1/ros1.py", line 455, in package_node_sources
    return self.__package_source_extractor.get_cmake_info(
  File "/usr0/home/tdurschm/rosdiscover-evaluation/deps/roswire/src/roswire/ros1/source.py", line 37, in get_cmake_info
    return self._info_from_cmakelists(cmakelists_path, package)
  File "/usr0/home/tdurschm/rosdiscover-evaluation/deps/roswire/src/roswire/common/source.py", line 218, in _info_from_cmakelists
    info = self._process_cmake_contents(contents, package, env)
  File "/usr0/home/tdurschm/rosdiscover-evaluation/deps/roswire/src/roswire/common/source.py", line 363, in _process_cmake_contents
    executables = self.__process_add_subdirectory(
  File "/usr0/home/tdurschm/rosdiscover-evaluation/deps/roswire/src/roswire/common/source.py", line 462, in __process_add_subdirectory
    included_package_info = self._process_cmake_contents(
  File "/usr0/home/tdurschm/rosdiscover-evaluation/deps/roswire/src/roswire/common/source.py", line 363, in _process_cmake_contents
    executables = self.__process_add_subdirectory(
  File "/usr0/home/tdurschm/rosdiscover-evaluation/deps/roswire/src/roswire/common/source.py", line 462, in __process_add_subdirectory
    included_package_info = self._process_cmake_contents(
  File "/usr0/home/tdurschm/rosdiscover-evaluation/deps/roswire/src/roswire/common/source.py", line 330, in _process_cmake_contents
    self.__process_add_executable(
  File "/usr0/home/tdurschm/rosdiscover-evaluation/deps/roswire/src/roswire/common/source.py", line 484, in __process_add_executable
    real_src = self._resolve_to_real_file(source, package, cmake_env)
  File "/usr0/home/tdurschm/rosdiscover-evaluation/deps/roswire/src/roswire/common/source.py", line 515, in _resolve_to_real_file
    raise ValueError(f"Only one file should match '{real_filename}'. "
ValueError: Only one file should match './src/driver/src/WIN32'. Currently 0 files do: []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant