-
Notifications
You must be signed in to change notification settings - Fork 65
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
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
c97b1ea
added intensity to laser plugin
marbosjo c5b07ba
added unit test to laser intensity method
marbosjo cd4e88c
uncommented check of hitting another sensor
marbosjo d1fc68e
now passes clang-format-3.8
marbosjo a0d7694
Update laser.h
josephduchesne a2c2049
Update laser.h
josephduchesne File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
image: map_1.png | ||
resolution: 0.1 | ||
origin: [0, 0, 0] | ||
negate: 0 | ||
occupied_thresh: 0.65 | ||
free_thresh: 0.196 | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
image: map_2.png | ||
resolution: 0.1 | ||
origin: [0, 0, 0] | ||
negate: 0 | ||
occupied_thresh: 0.65 | ||
free_thresh: 0.196 | ||
|
Binary file added
BIN
+311 Bytes
flatland_plugins/test/laser_tests/intensity_test/map_reflectance.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions
7
flatland_plugins/test/laser_tests/intensity_test/map_reflectance.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
image: map_reflectance.png | ||
resolution: 0.1 | ||
origin: [0, 0, 0] | ||
negate: 0 | ||
occupied_thresh: 0.65 | ||
free_thresh: 0.196 | ||
|
40 changes: 40 additions & 0 deletions
40
flatland_plugins/test/laser_tests/intensity_test/robot.model.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Turtlebot | ||
|
||
bodies: # List of named bodies | ||
- name: base_link | ||
pose: [0, 0, 0] | ||
type: dynamic | ||
color: [1, 1, 0, 1] | ||
footprints: | ||
- type: circle | ||
density: 1 | ||
center: [0, 0] | ||
radius: 0.1 | ||
|
||
plugins: | ||
- type: Laser | ||
name: laser_front | ||
body: base_link | ||
range: 5 | ||
angle: {min: -1.5707963267948966, max: 1.5707963267948966, increment: 1.5707963267948966} | ||
|
||
- type: Laser | ||
name: laser_center | ||
topic: /scan_center | ||
frame: center_laser | ||
body: base_link | ||
origin: [0, 0, 0] | ||
range: 5 | ||
update_rate: 5000 | ||
angle: {min: 0, max: 6.283185307179586, increment: 1.5707963267948966} | ||
layers: ["layer_1", "reflectance"] | ||
|
||
- type: Laser | ||
name: laser_back | ||
topic: scan_back | ||
body: base_link | ||
origin: [-1, -1, 1.5707963267948966] | ||
range: 4 | ||
update_rate: 1 | ||
angle: {min: 0, max: 6.283185307179586, increment: 1.5707963267948966} | ||
layers: ["layer_2", "reflectance"] |
16 changes: 16 additions & 0 deletions
16
flatland_plugins/test/laser_tests/intensity_test/world.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
properties: {} | ||
layers: | ||
- name: "layer_1" | ||
map: "map_1.yaml" | ||
color: [0, 1, 0, 1] | ||
- name: "layer_2" | ||
map: "map_2.yaml" | ||
color: [0, 1, 0, 1] | ||
- name: "reflectance" | ||
map: "map_reflectance.yaml" | ||
color: [0, 1, 0, 1] | ||
models: | ||
- name: robot1 | ||
pose: [5, 5, 0] | ||
model: robot.model.yaml | ||
namespace: "r" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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