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

[Feature] Added intensities to laser scan plugin #23

Merged
merged 6 commits into from
Oct 11, 2017

Conversation

marbosjo
Copy link
Contributor

Now laser filters returns intensities if:

  • layer called "reflectance" is available.
  • if "reflectance" layer is available, ray traces that collides with an element of this layer, the intensity is then 255. Otherwise is 0.

Code has been checked by clang and passes all tests.

Now laser filters returns intensities if:

    a layer called "reflectance" is available.
    if "reflectance" layer is available, ray traces that collides
with an element of this layer, intensity is then 255. Otherwise is 0.
@@ -79,6 +79,9 @@ class Laser : public ModelPlugin, public b2RayCastCallback {
std::string frame_id_; ///< laser frame id name
bool broadcast_tf_; ///< whether to broadcast laser origin w.r.t body
uint16_t layers_bits_; ///< for setting the layers where laser will function
uint16_t reflectance_layers_bits_; ///< for setting reflectance layers. if
///laser hits those layers, intensity will
///be high
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these two lines are the ones causing the travis-ci to fail. It wants them to not be intented. Maybe move to a block quote before the definition?

Check with

git ls-files | grep -E ".ch?$" | grep -v "thirdparty/" | xargs clang-format-3.8 --style=file -i && git diff --exit-code

@josephduchesne josephduchesne merged commit 31d3b3e into avidbots:master Oct 11, 2017
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

Successfully merging this pull request may close these issues.

2 participants