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

Scan_to_cloud_filter_chain not working in ros foxy #110

Open
AliaChe opened this issue Mar 16, 2021 · 1 comment
Open

Scan_to_cloud_filter_chain not working in ros foxy #110

AliaChe opened this issue Mar 16, 2021 · 1 comment

Comments

@AliaChe
Copy link

AliaChe commented Mar 16, 2021

Hi again,

I managed to test all filters in the scan_to_scan_filter_chain. However, the scan_to_cloud_filter_chain is not working. I'm using the same config as described in the wikihttp://wiki.ros.org/laser_filters:

$ cat params.yaml:

scan_to_cloud_filter_chain:
  ros__parameters:
    scan_filter_chain:
      filter1:
      name: scan_range
      type: laser_filters/LaserScanRangeFilter
      params:
        use_message_range_limits: false   # if not specified defaults to false
        lower_threshold: 0.5              # if not specified defaults to 0.0
        upper_threshold: 10.0              # if not specified defaults to 100000.0
        lower_replacement_value: -.inf    # if not specified defaults to NaN
        upper_replacement_value: .inf     # if not specified defaults to NaN
      tf_message_filter_target_frame: world
    cloud_filter_chain: 
      filter1:
        type: laser_filters/PointCloudFootprintFilter
        name: footprint_filter
        params:
          inscribed_radius: 0.325
    target_frame: world
    high_fidelity: true

However, I got an error when the params.yaml got parsed :

[scan_to_cloud_filter_chain-13] [ERROR] [1615891443.085968415] [rcl]: Failed to parse global arguments
[scan_to_cloud_filter_chain-13] terminate called after throwing an instance of 'rclcpp::exceptions::RCLInvalidROSArgsError'
[scan_to_cloud_filter_chain-13]   what():  failed to initialize rcl: Couldn't parse params file: '--params-file /home/blackdrones/blackdrones_ws/install/blackdrones_control/share/blackdrones_control/config/params.yaml'. Error: No value at line 9, at /tmp/binarydeb/ros-foxy-rcl-yaml-param-parser-1.1.10/src/parse.c:204, at /tmp/binarydeb/ros-foxy-rcl-1.1.10/src/rcl/arguments.c:388

Does anyone get this to work? Any ideas?

Thank you!

@NikolasE
Copy link
Contributor

NikolasE commented Jan 4, 2022

Is it possible that it's only the missing indentation after "filter1:"?

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

2 participants