Code Monkey home page Code Monkey logo

Comments (1)

carlosmccosta avatar carlosmccosta commented on June 28, 2024

Good morning,

You can select regions of interest using the crop_box filter.

The RoIs can be configured to include points inside or outside the crop_box (configured with the invert_selection parameter).

You can have several crop_box filters for refining the regions that you want to include / exclude points.

But keep in mind that the logical operation is AND, not OR.

Each crop_box filter will select points inside / outside.

As such, removing points from several RoIs is possible, but selecting points that are inside several non overlapping crop_boxes is currently not supported (it will result in an empty point cloud).

This filter can be applied in different coordinate systems depending on the parent namespace:

  • ambient_pointcloud and ambient_pointcloud_feature_registration -> original sensor frame
  • ambient_pointcloud_map_frame and ambient_pointcloud_map_frame_feature_registration -> map frame
  • ambient_pointcloud_custom_frame -> other custom TF frame specified in the custom_frame_id parameter

You can also crop the occupancy map with crop_box, by placing the filter inside reference_pointcloud.

More info in the filters section in drl_configs.yaml.

Example for applying a single RoI in the map frame:

filters:
    ambient_pointcloud_map_frame:
        crop_box:                             # Allows prefix and postfix of letters / numbers to ensure processing order
            box_min_x: -10.0
            box_min_y: -10.0
            box_min_z: -10.0
            box_max_x: 10.0
            box_max_y: 10.0
            box_max_z: 10.0
            box_translation_x: 0.0
            box_translation_y: 0.0
            box_translation_z: 0.0
            box_rotation_roll: 0.0
            box_rotation_pitch: 0.0
            box_rotation_yaw: 0.0
            invert_selection: false           # If false -> selects points outside the box
            filtered_cloud_publish_topic: ''

Have a nice day :)

from dynamic_robot_localization.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.