Coder Social home page Coder Social logo

Comments (4)

paulbovbel avatar paulbovbel commented on August 18, 2024

range_max is double max by default (https://github.com/ros-perception/pointcloud_to_laserscan/blob/lunar-devel/src/pointcloud_to_laserscan_nodelet.cpp#L70). Where do you see it translated into inf?

from pointcloud_to_laserscan.

hughcorley avatar hughcorley commented on August 18, 2024

Sorry maybe I wasn't clear. I don't mean to say range_max is ever inf. What I mean to say is that setting use_inf to false does not work unless you also explicitly set range_max to something. Does that make sense?

from pointcloud_to_laserscan.

paulbovbel avatar paulbovbel commented on August 18, 2024

I wasn't clear either :)

range_max drives a few behaviours:

  • it's the default value of any ray when !use_inf
  • any trace larger than range_max is ignored

So if !use_inf, and you're seeing inf reported in the laserscan, then it must be driven by range_max. Can you provide your launch file?

from pointcloud_to_laserscan.

hughcorley avatar hughcorley commented on August 18, 2024

Not to worry :)

Right, so I set !use_inf and if I do not explicitly set range_max (i.e. I let it use its default value) then I see inf in the data. In other words, the following launch code results in data which is upper bounded by some finite value

    <node pkg="pointcloud_to_laserscan" type="pointcloud_to_laserscan_node" name="pointcloud_to_laserscan">
      <remap from="cloud_in" to="velodyne_points"/>
      <param name="use_inf" value="false"/>
      <param name="range_max" value="200"/>
    </node>

while this does not

    <node pkg="pointcloud_to_laserscan" type="pointcloud_to_laserscan_node" name="pointcloud_to_laserscan">
      <remap from="cloud_in" to="velodyne_points"/>
      <param name="use_inf" value="false"/>
    </node>

That make sense?

Thank you for the prompt replies! Hope you stay well during this time.

from pointcloud_to_laserscan.

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.