git-afsantos / haros

H(igh) A(ssurance) ROS - Static analysis of ROS application code.
MIT License
191 stars 37 forks source link

ROS2 Support #32

Closed droter closed 5 years ago

droter commented 5 years ago

I was running HAROS against the latest release and there are a few errors on the packages: https://raw.githubusercontent.com/ros2/rosdistro/ros2/crystal/distribution.yaml

https://github.com/ros2/rmw_implementation.git File "/usr/local/lib/python2.7/dist-packages/haros/cmake_parser.py", line 530, in _process_link_libraries assert len(args) >= 2 AssertionError

https://github.com/ros2/orocos_kinematics_dynamics.git AttributeError: 'list' object has no attribute 'replace'

Some of the ROS2 meta packages don't contain a CMakeList.txt so they all fail. https://github.com/ros2/ros2cli.git IOError: [Errno 2] No such file or directory: '/home/matt/haros/ros/test_dir/ros2cli/CMakeLists.txt

Will ROS2 tests be different?

Thanks,

Matt

git-afsantos commented 5 years ago

HAROS was not made with ROS2 in mind. If there are any file structure changes, such as missing CMake files, it will not work.

I will look into the first two errors, though, to see if there is some quick fix for them.

git-afsantos commented 5 years ago

https://github.com/ros2/rmw_implementation.git File "/usr/local/lib/python2.7/dist-packages/haros/cmake_parser.py", line 530, in _process_link_libraries assert len(args) >= 2 AssertionError

I have just released a fix for this issue. I could not reproduce the other one, so I would need more information.

If you can, run with debug enabled (haros --debug ...) and paste the log.txt found in ~/.haros.

droter commented 5 years ago

Hi Andre,

Here are the results for this package: https://github.com/ros2/orocos_kinematics_dynamics.git

Terminal output:

[HAROS] Reading project and indexing source code...
Traceback (most recent call last):
  File "/usr/local/bin/haros", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/haros/haros.py", line 725, in main
    if launcher.launch(argv = argv):
  File "/usr/local/lib/python2.7/dist-packages/haros/haros.py", line 150, in launch
    return args.command(args, settings)
  File "/usr/local/lib/python2.7/dist-packages/haros/haros.py", line 184, in command_analyse
    return analyse.run()
  File "/usr/local/lib/python2.7/dist-packages/haros/haros.py", line 497, in run
    configs, env = self._extract_metamodel(node_cache)
  File "/usr/local/lib/python2.7/dist-packages/haros/haros.py", line 518, in _extract_metamodel
    extractor.index_source(settings = self.settings)
  File "/usr/local/lib/python2.7/dist-packages/haros/extractor.py", line 103, in index_source
    self._find_nodes(settings)
  File "/usr/local/lib/python2.7/dist-packages/haros/extractor.py", line 229, in _find_nodes
    extractor.find_nodes(pkg)
  File "/usr/local/lib/python2.7/dist-packages/haros/extractor.py", line 689, in find_nodes
    parser.parse(os.path.join(self.package.path, "CMakeLists.txt"))
  File "/usr/local/lib/python2.7/dist-packages/haros/cmake_parser.py", line 406, in parse
    self._analyse_command(command, args)
  File "/usr/local/lib/python2.7/dist-packages/haros/cmake_parser.py", line 435, in _analyse_command
    args = [self._argument(arg) for arg in args]
  File "/usr/local/lib/python2.7/dist-packages/haros/cmake_parser.py", line 778, in _argument
    return arg.replace('"', "")
AttributeError: 'list' object has no attribute 'replace'
debug log.txt output ``` INFO:root:Executing selected command. DEBUG:haros.data:HarosDatabase.load_definitions(/usr/local/lib/python2.7/dist-packages/haros/definitions.yaml) DEBUG:haros.data:HarosDatabase.register rule max_coupling_objects_5 DEBUG:haros.data:HarosDatabase.register rule max_static_path_80 DEBUG:haros.data:HarosDatabase.register rule max_comment_ratio_30 DEBUG:haros.data:HarosDatabase.register rule no_global_names DEBUG:haros.data:HarosDatabase.register rule mi_below_20 DEBUG:haros.data:HarosDatabase.register rule max_control_nesting_5 DEBUG:haros.data:HarosDatabase.register rule max_control_nesting_4 DEBUG:haros.data:HarosDatabase.register rule max_static_path_250 DEBUG:haros.data:HarosDatabase.register rule max_function_length_40 DEBUG:haros.data:HarosDatabase.register rule max_cyclomatic_complexity_10 DEBUG:haros.data:HarosDatabase.register rule mi_below_65 DEBUG:haros.data:HarosDatabase.register rule max_eloc_70 DEBUG:haros.data:HarosDatabase.register rule max_cyclomatic_complexity_15 DEBUG:haros.data:HarosDatabase.register rule max_weighted_methods_100 DEBUG:haros.data:HarosDatabase.register rule max_eloc_50 DEBUG:haros.data:HarosDatabase.register rule max_function_calls_10 DEBUG:haros.data:HarosDatabase.register rule max_comment_ratio_40 DEBUG:haros.data:HarosDatabase.register rule halstead_bugs_above_2 DEBUG:haros.data:HarosDatabase.register rule max_immediate_children_10 DEBUG:haros.data:HarosDatabase.register rule min_comment_ratio_20 DEBUG:haros.data:HarosDatabase.register rule max_weighted_methods_50 DEBUG:haros.data:HarosDatabase.register rule max_methods_available_20 DEBUG:haros.data:HarosDatabase.register rule max_function_calls_7 DEBUG:haros.data:HarosDatabase.register rule max_file_length_400 DEBUG:haros.data:HarosDatabase.register rule halstead_volume_above_8000 DEBUG:haros.data:HarosDatabase.register rule max_function_parameters_6 DEBUG:haros.data:HarosDatabase.register rule max_static_path_200 DEBUG:haros.data:HarosDatabase.register rule max_deepest_inheritance_5 DEBUG:haros.data:HarosDatabase.register metric cyclomatic_complexity DEBUG:haros.data:HarosDatabase.register metric nested_control DEBUG:haros.data:HarosDatabase.register metric methods_available DEBUG:haros.data:HarosDatabase.register metric comment_ratio DEBUG:haros.data:HarosDatabase.register metric halstead_bugs DEBUG:haros.data:HarosDatabase.register metric static_path_count DEBUG:haros.data:HarosDatabase.register metric eloc DEBUG:haros.data:HarosDatabase.register metric depth_in_tree DEBUG:haros.data:HarosDatabase.register metric function_parameters DEBUG:haros.data:HarosDatabase.register metric lloc DEBUG:haros.data:HarosDatabase.register metric maintainability_index DEBUG:haros.data:HarosDatabase.register metric coupling DEBUG:haros.data:HarosDatabase.register metric halstead_volume DEBUG:haros.data:HarosDatabase.register metric unique_function_calls DEBUG:haros.data:HarosDatabase.register metric comments DEBUG:haros.data:HarosDatabase.register metric halstead_time DEBUG:haros.data:HarosDatabase.register metric function_calls DEBUG:haros.data:HarosDatabase.register metric ploc DEBUG:haros.data:HarosDatabase.register metric sloc DEBUG:haros.data:HarosDatabase.register metric weighted_methods DEBUG:haros.data:HarosDatabase.register metric number_of_children DEBUG:haros.plugin_manager:load_plugins(/home/matt/.haros/plugins, None, []) DEBUG:haros.plugin_manager:Checking for plugins at /home/matt/.haros/plugins/README.md DEBUG:haros.plugin_manager:Checking for plugins at /home/matt/.haros/plugins/mi_calculator DEBUG:haros.plugin_manager:Plugin.load DEBUG:haros.plugin_manager:Plugin manifest at /home/matt/.haros/plugins/mi_calculator/plugin.yaml DEBUG:haros.plugin_manager:Loaded mi_calculator [0.1] INFO:haros.plugin_manager:Loading plugin script. DEBUG:haros.plugin_manager:Plugin script at /home/matt/.haros/plugins/mi_calculator DEBUG:haros.plugin_manager:Checking for plugins at /home/matt/.haros/plugins/cpplint_plugin DEBUG:haros.plugin_manager:Plugin.load DEBUG:haros.plugin_manager:Plugin manifest at /home/matt/.haros/plugins/cpplint_plugin/plugin.yaml DEBUG:haros.plugin_manager:Loaded cpplint_plugin [0.1] INFO:haros.plugin_manager:Loading plugin script. DEBUG:haros.plugin_manager:Plugin script at /home/matt/.haros/plugins/cpplint_plugin DEBUG:haros.plugin_manager:Checking for plugins at /home/matt/.haros/plugins/cppcheck_plugin DEBUG:haros.plugin_manager:Plugin.load DEBUG:haros.plugin_manager:Plugin manifest at /home/matt/.haros/plugins/cppcheck_plugin/plugin.yaml DEBUG:haros.plugin_manager:Loaded cppcheck_plugin [0.1] INFO:haros.plugin_manager:Loading plugin script. DEBUG:haros.plugin_manager:Plugin script at /home/matt/.haros/plugins/cppcheck_plugin DEBUG:haros.plugin_manager:Checking for plugins at /home/matt/.haros/plugins/pylint_plugin DEBUG:haros.plugin_manager:Plugin.load DEBUG:haros.plugin_manager:Plugin manifest at /home/matt/.haros/plugins/pylint_plugin/plugin.yaml DEBUG:haros.plugin_manager:Loaded pylint_plugin [0.1] INFO:haros.plugin_manager:Loading plugin script. DEBUG:haros.plugin_manager:Plugin script at /home/matt/.haros/plugins/pylint_plugin DEBUG:haros.plugin_manager:Checking for plugins at /home/matt/.haros/plugins/lizard_plugin DEBUG:haros.plugin_manager:Plugin.load DEBUG:haros.plugin_manager:Plugin manifest at /home/matt/.haros/plugins/lizard_plugin/plugin.yaml DEBUG:haros.plugin_manager:Loaded lizard_plugin [0.1] INFO:haros.plugin_manager:Loading plugin script. DEBUG:haros.plugin_manager:Plugin script at /home/matt/.haros/plugins/lizard_plugin DEBUG:haros.plugin_manager:Checking for plugins at /home/matt/.haros/plugins/ccd_plugin DEBUG:haros.plugin_manager:Plugin.load DEBUG:haros.plugin_manager:Plugin manifest at /home/matt/.haros/plugins/ccd_plugin/plugin.yaml DEBUG:haros.plugin_manager:Loaded ccd_plugin [0.1] INFO:haros.plugin_manager:Loading plugin script. DEBUG:haros.plugin_manager:Plugin script at /home/matt/.haros/plugins/ccd_plugin DEBUG:haros.plugin_manager:Checking for plugins at /home/matt/.haros/plugins/radon_plugin DEBUG:haros.plugin_manager:Plugin.load DEBUG:haros.plugin_manager:Plugin manifest at /home/matt/.haros/plugins/radon_plugin/plugin.yaml DEBUG:haros.plugin_manager:Loaded radon_plugin [0.1] INFO:haros.plugin_manager:Loading plugin script. DEBUG:haros.plugin_manager:Plugin script at /home/matt/.haros/plugins/radon_plugin DEBUG:haros.plugin_manager:Checking for plugins at /home/matt/.haros/plugins/cccc_plugin DEBUG:haros.plugin_manager:Plugin.load DEBUG:haros.plugin_manager:Plugin manifest at /home/matt/.haros/plugins/cccc_plugin/plugin.yaml DEBUG:haros.plugin_manager:Loaded cccc_plugin [0.1] INFO:haros.plugin_manager:Loading plugin script. DEBUG:haros.plugin_manager:Plugin script at /home/matt/.haros/plugins/cccc_plugin DEBUG:haros.plugin_manager:Checking for plugins at /home/matt/.haros/plugins/__init__.py DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:closing_brace_line DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:line_endings DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:whitespace_assign DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:format_string_var DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:max_line_length_80 DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:todo_format DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:disallow_in_private DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:redundant_empty_statement DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:const_string_ref DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:whitespace_before_paren_if DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:check_eq DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:string_constants DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:comments_must_end DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:do_while_line DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:variable_length_array DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:else_if_else_line DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:whitespace_after_semicolon DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:header_guard_close DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:default_lambda_captures DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:whitespace_before_comment_text DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:single_if_else DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:two_space_indent DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:one_command_per_line DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:invalid_forward_declaration DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:include_order DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:redundant_override_decl DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:unnamed_params DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:namespace_end_comment DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:c_types DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:whitespace_open_brace DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:invalid_escape DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:make_pair_template DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:whitespace_end_line DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:redundant_virtual_decl DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:header_guard_format DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:complex_comment DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:namespace_indent DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:string_format DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:c_string_print DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:whitespace_binary_op DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:whitespace_before_brackets DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:logging_levels DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:empty_statement DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:if_line DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:no_copyright DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:opening_curly_brace DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:else_braces DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:whitespace_after_comma DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:whitespace_inside_paren DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:opening_brace_line DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:blank_code_line DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:explicit_constructors DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:whitespace_colon DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:whitespace_before_paren DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:unapproved_functions DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:snprintf_args DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:include_twice DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:if_else_indentation DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:dangerous_addresses DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:close_brace_alignment DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:include_own_header DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:indent_access_mod DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:newline_terminator DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:text_after_endif DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:unary_and DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:rvalue_ref DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:alternative_tokens DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:deprecated_operators DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:non_ascii DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:whitespace_before_semicolon DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:dir_in_header DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:else_line DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:whitespace_after_paren DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:whitespace_before_comments DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:c_headers DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:using_directives DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:deprecated_casting DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:disallow_macro DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:storage_before_type DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:include_what_you_use DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:whitespace_close_brace DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:thread_safe_functions DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:non_explicit_constructors DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:header_guard DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:invalid_increment DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:whitespace_unary_op DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:max_line_length_120 DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:blank_before_section DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:unapproved_headers DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:include_cpp DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:non_const_ref DEBUG:haros.data:HarosDatabase.register rule cpplint_plugin:unnamed_namespace DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:variableScope DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:redundantAssignment DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:harosTriplePointer DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:harosOverrideUnaryAnd DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:harosConstUniquePtr DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:unreadVariable DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:harosInlineAssembly DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:harosRegisterKeyword DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:harosBooleanVector DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:harosThrowSpecification DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:harosBooleanCase DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:harosCaseWithoutBreak DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:uninitMemberVar DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:harosUsingErrno DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:harosAssignIncrement DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:harosDoublePointer DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:harosAssignAssignment DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:harosRvalueStdArray DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:unusedFunction DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:harosSixParams DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:harosUnion DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:harosEnumWithoutBase DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:harosFloatEquality DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:harosDeprecatedSTL DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:harosDefaultArguments DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:harosIntegerTypes DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:harosOverrideBinaryAnd DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:harosOverrideComma DEBUG:haros.data:HarosDatabase.register rule cppcheck_plugin:harosOverrideBinaryOr DEBUG:haros.data:HarosDatabase.register rule pylint_plugin:convention DEBUG:haros.data:HarosDatabase.register rule pylint_plugin:fatal DEBUG:haros.data:HarosDatabase.register rule pylint_plugin:warning DEBUG:haros.data:HarosDatabase.register rule pylint_plugin:refactor DEBUG:haros.data:HarosDatabase.register rule pylint_plugin:error DEBUG:haros.data:HarosDatabase.register metric cccc_plugin:fan_out DEBUG:haros.data:HarosDatabase.register metric cccc_plugin:depth_of_inheritance_tree DEBUG:haros.data:HarosDatabase.register metric cccc_plugin:fan_in DEBUG:root:Project file /home/matt/.haros/index.yaml DEBUG:haros.extractor:ProjectExtractor(/home/matt/.haros/index.yaml, /home/matt/.haros/repositories, None) DEBUG:haros.extractor:ProjectExtractor.index_source() INFO:haros.extractor:Looking up user provided repositories. DEBUG:haros.extractor:RepositoryExtractor.download(/home/matt/.haros/repositories) INFO:haros.extractor:Looking for packages locally. DEBUG:haros.extractor:PkgParser.parse(/home/matt/lawn_tractor_ws/src/haros/ros/test_dir/orocos_kinematics_dynamics/orocos_kdl/package.xml, project:default) INFO:haros.extractor:Found package package:orocos_kdl at /home/matt/lawn_tractor_ws/src/haros/ros/test_dir/orocos_kinematics_dynamics/orocos_kdl DEBUG:haros.extractor:PkgParser.parse(/home/matt/lawn_tractor_ws/src/haros/ros/test_dir/orocos_kinematics_dynamics/python_orocos_kdl/package.xml, project:default) INFO:haros.extractor:Found package package:python_orocos_kdl at /home/matt/lawn_tractor_ws/src/haros/ros/test_dir/orocos_kinematics_dynamics/python_orocos_kdl DEBUG:haros.extractor:PackageExtractor.populate(package:orocos_kdl) INFO:haros.extractor:Indexing source files for package orocos_kdl DEBUG:haros.extractor:Found file KDLConfig.cmake.in at DEBUG:haros.extractor:Found file CMakeLists.txt at DEBUG:haros.extractor:Found file package.xml at DEBUG:haros.extractor:Found file README at DEBUG:haros.extractor:Found file COPYING at DEBUG:haros.extractor:Found file manifest.xml at DEBUG:haros.extractor:Found file INSTALL at DEBUG:haros.extractor:Found file KDLConfigVersion.cmake.in at DEBUG:haros.extractor:Found file cmake_uninstall.cmake.in at DEBUG:haros.extractor:Found file kinfamtest.hpp at tests DEBUG:haros.extractor:Found file test-runner.cpp at tests DEBUG:haros.extractor:Found file jacobiantest.cpp at tests DEBUG:haros.extractor:Found file jacobiandottest.hpp at tests DEBUG:haros.extractor:Found file CMakeLists.txt at tests DEBUG:haros.extractor:Found file iotest.cpp at tests DEBUG:haros.extractor:Found file serialchaintest.cpp at tests DEBUG:haros.extractor:Found file kinfamtest.cpp at tests DEBUG:haros.extractor:Found file jacobiantests.hpp at tests DEBUG:haros.extractor:Found file inertiatest.cpp at tests DEBUG:haros.extractor:Found file zxxzxztest.cpp at tests DEBUG:haros.extractor:Found file framestest.cpp at tests DEBUG:haros.extractor:Found file inertiatest.hpp at tests DEBUG:haros.extractor:Found file velocityprofiletest.hpp at tests DEBUG:haros.extractor:Found file jacobiandottest.cpp at tests DEBUG:haros.extractor:Found file jacobiantests.cpp at tests DEBUG:haros.extractor:Found file framestest.hpp at tests DEBUG:haros.extractor:Found file rframestest.cpp at tests DEBUG:haros.extractor:Found file jacobiandoubletests.cpp at tests DEBUG:haros.extractor:Found file jacobiandoubletests.hpp at tests DEBUG:haros.extractor:Found file jacobianframetests.hpp at tests DEBUG:haros.extractor:Found file jacobianframetests.cpp at tests DEBUG:haros.extractor:Found file jacobiantest.hpp at tests DEBUG:haros.extractor:Found file toolkittest.cpp at tests DEBUG:haros.extractor:Found file solvertest.hpp at tests DEBUG:haros.extractor:Found file solvertest.cpp at tests DEBUG:haros.extractor:Found file velocityprofiletest.cpp at tests DEBUG:haros.extractor:Found file rallnumbertest.cpp at tests DEBUG:haros.extractor:Found file FindPkgConfig.cmake at config DEBUG:haros.extractor:Found file DependentOption.cmake at config DEBUG:haros.extractor:Found file CheckSTLContainers.cmake at config DEBUG:haros.extractor:Found file FindEigen3.cmake at config DEBUG:haros.extractor:Found file jntarrayvel.cpp at src DEBUG:haros.extractor:Found file treeiksolverpos_online.cpp at src DEBUG:haros.extractor:Found file solveri.hpp at src DEBUG:haros.extractor:Found file path.hpp at src DEBUG:haros.extractor:Found file frameacc.cpp at src DEBUG:haros.extractor:Found file framevel.hpp at src DEBUG:haros.extractor:Found file chainiksolvervel_wdls.hpp at src DEBUG:haros.extractor:Found file treeiksolvervel_wdls.cpp at src DEBUG:haros.extractor:Found file README.txt at src DEBUG:haros.extractor:Found file articulatedbodyinertia.cpp at src DEBUG:haros.extractor:Found file kinfam_io.hpp at src DEBUG:haros.extractor:Found file chainiksolvervel_pinv.cpp at src DEBUG:haros.extractor:Found file chainiksolvervel_pinv_givens.hpp at src DEBUG:haros.extractor:Found file kdl.pc.in at src DEBUG:haros.extractor:Found file chainiksolvervel_pinv_givens.cpp at src DEBUG:haros.extractor:Found file CMakeLists.txt at src DEBUG:haros.extractor:Found file chainidsolver_vereshchagin.hpp at src DEBUG:haros.extractor:Found file velocityprofile_traphalf.cpp at src DEBUG:haros.extractor:Found file chainiksolvervel_wdls.cpp at src DEBUG:haros.extractor:Found file jntarrayacc.cpp at src DEBUG:haros.extractor:Found file chainfksolverpos_recursive.hpp at src DEBUG:haros.extractor:Found file chainjnttojacsolver.cpp at src DEBUG:haros.extractor:Found file trajectory.hpp at src DEBUG:haros.extractor:Found file chainjnttojacsolver.hpp at src DEBUG:haros.extractor:Found file rotational_interpolation.hpp at src DEBUG:haros.extractor:Found file velocityprofile_rect.hpp at src DEBUG:haros.extractor:Found file rotational_interpolation.cpp at src DEBUG:haros.extractor:Found file chain.cpp at src DEBUG:haros.extractor:Found file path_cyclic_closed.hpp at src DEBUG:haros.extractor:Found file segment.cpp at src DEBUG:haros.extractor:Found file chainidsolver_vereshchagin.cpp at src DEBUG:haros.extractor:Found file treefksolver.hpp at src DEBUG:haros.extractor:Found file frameacc.inl at src DEBUG:haros.extractor:Found file chaindynparam.cpp at src DEBUG:haros.extractor:Found file path_composite.cpp at src DEBUG:haros.extractor:Found file path_composite.hpp at src DEBUG:haros.extractor:Found file path_line.hpp at src DEBUG:haros.extractor:Found file tree.cpp at src DEBUG:haros.extractor:Found file chainiksolverpos_lma.cpp at src DEBUG:haros.extractor:Found file kinfam.hpp at src DEBUG:haros.extractor:Found file trajectory_stationary.hpp at src DEBUG:haros.extractor:Found file chainiksolver.hpp at src DEBUG:haros.extractor:Found file treefksolverpos_recursive.hpp at src DEBUG:haros.extractor:Found file chainiksolverpos_nr.cpp at src DEBUG:haros.extractor:Found file jacobian.cpp at src DEBUG:haros.extractor:Found file frames.cpp at src DEBUG:haros.extractor:Found file treejnttojacsolver.cpp at src DEBUG:haros.extractor:Found file velocityprofile_dirac.hpp at src DEBUG:haros.extractor:Found file framevel_io.hpp at src DEBUG:haros.extractor:Found file treeiksolverpos_nr_jl.hpp at src DEBUG:haros.extractor:Found file velocityprofile_trap.hpp at src DEBUG:haros.extractor:Found file velocityprofile_traphalf.hpp at src DEBUG:haros.extractor:Found file treeiksolverpos_nr_jl.cpp at src DEBUG:haros.extractor:Found file jntarray.cpp at src DEBUG:haros.extractor:Found file jntarray.hpp at src DEBUG:haros.extractor:Found file frameacc.hpp at src DEBUG:haros.extractor:Found file velocityprofile.cpp at src DEBUG:haros.extractor:Found file framevel.cpp at src DEBUG:haros.extractor:Found file chainiksolverpos_nr.hpp at src DEBUG:haros.extractor:Found file path_line.cpp at src DEBUG:haros.extractor:Found file jntarrayacc.hpp at src DEBUG:haros.extractor:Found file jntspaceinertiamatrix.hpp at src DEBUG:haros.extractor:Found file trajectory_composite.hpp at src DEBUG:haros.extractor:Found file path_circle.hpp at src DEBUG:haros.extractor:Found file rotational_interpolation_sa.cpp at src DEBUG:haros.extractor:Found file articulatedbodyinertia.hpp at src DEBUG:haros.extractor:Found file path_roundedcomposite.hpp at src DEBUG:haros.extractor:Found file rotationalinertia.hpp at src DEBUG:haros.extractor:Found file TODO.txt at src DEBUG:haros.extractor:Found file frames.hpp at src DEBUG:haros.extractor:Found file chainiksolverpos_nr_jl.hpp at src DEBUG:haros.extractor:Found file joint.cpp at src DEBUG:haros.extractor:Found file rigidbodyinertia.hpp at src DEBUG:haros.extractor:Found file chainfksolvervel_recursive.cpp at src DEBUG:haros.extractor:Found file treefksolverpos_recursive.cpp at src DEBUG:haros.extractor:Found file velocityprofile_spline.hpp at src DEBUG:haros.extractor:Found file path_point.hpp at src DEBUG:haros.extractor:Found file treejnttojacsolver.hpp at src DEBUG:haros.extractor:Found file chainiksolvervel_pinv_nso.hpp at src DEBUG:haros.extractor:Found file segment.hpp at src DEBUG:haros.extractor:Found file velocityprofile_spline.cpp at src DEBUG:haros.extractor:Found file chain.hpp at src DEBUG:haros.extractor:Found file chainidsolver.hpp at src DEBUG:haros.extractor:Found file path_roundedcomposite.cpp at src DEBUG:haros.extractor:Found file jntarrayvel.hpp at src DEBUG:haros.extractor:Found file trajectory_stationary.cpp at src DEBUG:haros.extractor:Found file chainiksolverpos_lma.hpp at src DEBUG:haros.extractor:Found file trajectory_segment.hpp at src DEBUG:haros.extractor:Found file joint.hpp at src DEBUG:haros.extractor:Found file chainiksolvervel_pinv_nso.cpp at src DEBUG:haros.extractor:Found file path_cyclic_closed.cpp at src DEBUG:haros.extractor:Found file path.cpp at src DEBUG:haros.extractor:Found file velocityprofile_dirac.cpp at src DEBUG:haros.extractor:Found file chainiksolvervel_pinv.hpp at src DEBUG:haros.extractor:Found file rotational_interpolation_sa.hpp at src DEBUG:haros.extractor:Found file jacobian.hpp at src DEBUG:haros.extractor:Found file treeiksolverpos_online.hpp at src DEBUG:haros.extractor:Found file frames_io.cpp at src DEBUG:haros.extractor:Found file chainfksolver.hpp at src DEBUG:haros.extractor:Found file velocityprofile.hpp at src DEBUG:haros.extractor:Found file trajectory_segment.cpp at src DEBUG:haros.extractor:Found file chainfksolverpos_recursive.cpp at src DEBUG:haros.extractor:Found file treeiksolvervel_wdls.hpp at src DEBUG:haros.extractor:Found file frames_io.hpp at src DEBUG:haros.extractor:Found file trajectory.cpp at src DEBUG:haros.extractor:Found file frames.inl at src DEBUG:haros.extractor:Found file stiffness.hpp at src DEBUG:haros.extractor:Found file trajectory_composite.cpp at src DEBUG:haros.extractor:Found file config.h.in at src DEBUG:haros.extractor:Found file velocityprofile_rect.cpp at src DEBUG:haros.extractor:Found file treeiksolver.hpp at src DEBUG:haros.extractor:Found file path_circle.cpp at src DEBUG:haros.extractor:Found file chainjnttojacdotsolver.cpp at src DEBUG:haros.extractor:Found file rotationalinertia.cpp at src DEBUG:haros.extractor:Found file tree.hpp at src DEBUG:haros.extractor:Found file frameacc_io.hpp at src DEBUG:haros.extractor:Found file path_point.cpp at src DEBUG:haros.extractor:Found file chaindynparam.hpp at src DEBUG:haros.extractor:Found file kdl.hpp at src DEBUG:haros.extractor:Found file motion.hpp at src DEBUG:haros.extractor:Found file rigidbodyinertia.cpp at src DEBUG:haros.extractor:Found file chainfksolvervel_recursive.hpp at src DEBUG:haros.extractor:Found file jntspaceinertiamatrix.cpp at src DEBUG:haros.extractor:Found file kinfam_io.cpp at src DEBUG:haros.extractor:Found file chainjnttojacdotsolver.hpp at src DEBUG:haros.extractor:Found file framevel.inl at src DEBUG:haros.extractor:Found file chainidsolver_recursive_newton_euler.hpp at src DEBUG:haros.extractor:Found file chainidsolver_recursive_newton_euler.cpp at src DEBUG:haros.extractor:Found file chainiksolverpos_nr_jl.cpp at src DEBUG:haros.extractor:Found file velocityprofile_trap.cpp at src DEBUG:haros.extractor:Found file error_stack.cxx at src/utilities DEBUG:haros.extractor:Found file kdl-config.h at src/utilities DEBUG:haros.extractor:Found file svd_HH.hpp at src/utilities DEBUG:haros.extractor:Found file svd_HH.cpp at src/utilities DEBUG:haros.extractor:Found file traits.h at src/utilities DEBUG:haros.extractor:Found file rall1d_io.h at src/utilities DEBUG:haros.extractor:Found file error_stack.h at src/utilities DEBUG:haros.extractor:Found file header.txt at src/utilities DEBUG:haros.extractor:Found file utility.h at src/utilities DEBUG:haros.extractor:Found file utility_io.cxx at src/utilities DEBUG:haros.extractor:Found file svd_eigen_Macie.hpp at src/utilities DEBUG:haros.extractor:Found file svd_eigen_HH.hpp at src/utilities DEBUG:haros.extractor:Found file rall2d_io.h at src/utilities DEBUG:haros.extractor:Found file rall1d.h at src/utilities DEBUG:haros.extractor:Found file svd_eigen_HH.cpp at src/utilities DEBUG:haros.extractor:Found file error.h at src/utilities DEBUG:haros.extractor:Found file rallNd.h at src/utilities DEBUG:haros.extractor:Found file utility.cxx at src/utilities DEBUG:haros.extractor:Found file utility_io.h at src/utilities DEBUG:haros.extractor:Found file rall2d.h at src/utilities DEBUG:haros.extractor:Found file CMakeLists.txt at examples DEBUG:haros.extractor:Found file geometry.cpp at examples DEBUG:haros.extractor:Found file plotframe.m at examples DEBUG:haros.extractor:Found file README at examples DEBUG:haros.extractor:Found file chainiksolverpos_lma_demo.cpp at examples DEBUG:haros.extractor:Found file visualize_trajectory.m at examples DEBUG:haros.extractor:Found file trajectory_example.cpp at examples DEBUG:haros.extractor:Found file CMakeLists.txt at models DEBUG:haros.extractor:Found file kukaLWRtestDHnew.cpp at models DEBUG:haros.extractor:Found file models.hpp at models DEBUG:haros.extractor:Found file puma560test.cpp at models DEBUG:haros.extractor:Found file kukaLWRtestHCG.cpp at models DEBUG:haros.extractor:Found file kukaLWR_DHnew.cpp at models DEBUG:haros.extractor:Found file puma560.cpp at models DEBUG:haros.extractor:Found file copyright at debian DEBUG:haros.extractor:Found file control at debian DEBUG:haros.extractor:Found file kdl.doc-base.EX at debian DEBUG:haros.extractor:Found file python-orocos-kdl.install at debian DEBUG:haros.extractor:Found file manpage.1.ex at debian DEBUG:haros.extractor:Found file compat at debian DEBUG:haros.extractor:Found file docs at debian DEBUG:haros.extractor:Found file liborocos-kdl-dev.install at debian DEBUG:haros.extractor:Found file README at debian DEBUG:haros.extractor:Found file changelog at debian DEBUG:haros.extractor:Found file README.Debian at debian DEBUG:haros.extractor:Found file rules at debian DEBUG:haros.extractor:Found file liborocos-kdl.install at debian DEBUG:haros.extractor:Found file substvars at debian DEBUG:haros.extractor:PackageExtractor.populate(package:python_orocos_kdl) INFO:haros.extractor:Indexing source files for package python_orocos_kdl DEBUG:haros.extractor:Found file mainpage.dox at DEBUG:haros.extractor:Found file CMakeLists.txt at DEBUG:haros.extractor:Found file package.xml at DEBUG:haros.extractor:Found file manifest.xml at DEBUG:haros.extractor:Found file AMENT_IGNORE at DEBUG:haros.extractor:Found file rosdoc.yaml at DEBUG:haros.extractor:Found file PyKDLtest.py at tests DEBUG:haros.extractor:Found file kinfamtest.py at tests DEBUG:haros.extractor:Found file framestest.py at tests DEBUG:haros.extractor:Found file frameveltest.py at tests DEBUG:haros.extractor:Found file dynamics.sip at PyKDL DEBUG:haros.extractor:Found file std_string.sip at PyKDL DEBUG:haros.extractor:Found file framevel.sip at PyKDL DEBUG:haros.extractor:Found file frames.sip at PyKDL DEBUG:haros.extractor:Found file kinfam.sip at PyKDL DEBUG:haros.extractor:Found file PyKDL.sip at PyKDL DEBUG:haros.extractor:Importing cached Nodes. DEBUG:haros.extractor:NodeExtractor.find_nodes(package:orocos_kdl) ```
git-afsantos commented 5 years ago

I was able to fix the initial error, but now another error comes up in one of the secondary CMake files.

I cannot quick fix this one; the parser has to change significantly. Since the current implementation is outdated and other users also had issues with it, I will prioritise changing the CMake parser more in future tasks.