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

Make topics valid #33

Merged
merged 4 commits into from
Aug 4, 2020
Merged

Make topics valid #33

merged 4 commits into from
Aug 4, 2020

Conversation

chapulina
Copy link
Contributor

Requires gazebosim/gz-transport#153
Addresses gazebosim/gz-sim#239

  • Make sure all sensors have a default topic
  • When invalid topics are passed in, convert them to valid topics if possible
  • If not possible to convert into valid topic, fail gracefully

Signed-off-by: Louise Poubel <[email protected]>
src/Camera_TEST.cc Outdated Show resolved Hide resolved
Copy link
Contributor

@iche033 iche033 left a comment

Choose a reason for hiding this comment

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

There are a few code check errors:

[test/integration/gpu_lidar_sensor_plugin.cc:793]: (style) Variable 'parent' is assigned a value that is never used.
./src/AirPressureSensor.cc:107:  Lines should be <= 80 characters long  [whitespace/line_length] [2]
Done processing ./src/AirPressureSensor.cc
./test/integration/logical_camera_plugin.cc:262:  Lines should be <= 80 characters long  [whitespace/line_length] [2]
./test/integration/logical_camera_plugin.cc:279:  Lines should be <= 80 characters long  [whitespace/line_length] [2]
Done processing ./test/integration/logical_camera_plugin.cc
Total errors found: 3

Signed-off-by: Louise Poubel <[email protected]>
@iche033
Copy link
Contributor

iche033 commented Jul 29, 2020

looks good to me. We'll need to wait for a new ign-transport7 release for CI to turn green

Signed-off-by: Louise Poubel <[email protected]>
@codecov
Copy link

codecov bot commented Jul 31, 2020

Codecov Report

Merging #33 into ign-sensors2 will increase coverage by 18.36%.
The diff coverage is 84.09%.

Impacted file tree graph

@@                Coverage Diff                @@
##           ign-sensors2      #33       +/-   ##
=================================================
+ Coverage         61.88%   80.25%   +18.36%     
=================================================
  Files                13       21        +8     
  Lines               942     2046     +1104     
=================================================
+ Hits                583     1642     +1059     
- Misses              359      404       +45     
Impacted Files Coverage Δ
src/DepthCameraSensor.cc 74.27% <50.00%> (ø)
src/GpuLidarSensor.cc 88.31% <66.66%> (ø)
src/AltimeterSensor.cc 88.23% <75.00%> (+2.18%) ⬆️
src/ImuSensor.cc 90.19% <75.00%> (+3.78%) ⬆️
src/AirPressureSensor.cc 85.91% <80.00%> (+2.81%) ⬆️
src/LogicalCameraSensor.cc 89.85% <80.00%> (+2.89%) ⬆️
src/MagnetometerSensor.cc 88.37% <80.00%> (+2.32%) ⬆️
src/CameraSensor.cc 76.35% <100.00%> (ø)
src/Lidar.cc 74.72% <100.00%> (ø)
src/Sensor.cc 93.18% <100.00%> (+13.96%) ⬆️
... and 18 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3c3bb77...e7a5f2f. Read the comment docs.

@chapulina
Copy link
Contributor Author

@chapulina
Copy link
Contributor Author

@osrf-jenkins run tests please

@chapulina chapulina merged commit a2b4904 into ign-sensors2 Aug 4, 2020
@chapulina chapulina deleted the chapulina/2/valid_topics branch August 4, 2020 21:24
iche033 added a commit that referenced this pull request Sep 1, 2020
* mv hgignore

Signed-off-by: claireyywang <[email protected]>

* add gitignore

Signed-off-by: claireyywang <[email protected]>

* [ign-sensors2] Update BitBucket links (#10)

* [ign-sensors2] Update BitBucket links

Signed-off-by: Louise Poubel <[email protected]>

* [ign-sensors2] Update BitBucket links

Signed-off-by: Louise Poubel <[email protected]>

* [ign-sensors2] Workflow updates (#20)

Signed-off-by: Louise Poubel <[email protected]>

* Make topics valid (#33)

Signed-off-by: Louise Poubel <[email protected]>

* add noise to depth camera

Signed-off-by: Ian Chen <[email protected]>

* 2.9.0 release prep

Signed-off-by: Nate Koenig <[email protected]>

* Fix version numbers in config.hh (#42)

Signed-off-by: Carlos Agüero <[email protected]>

* ci fixes

Signed-off-by: Ian Chen <[email protected]>

Co-authored-by: claireyywang <[email protected]>
Co-authored-by: chapulina <[email protected]>
Co-authored-by: Louise Poubel <[email protected]>
Co-authored-by: Nate Koenig <[email protected]>
Co-authored-by: Nate Koenig <[email protected]>
Co-authored-by: Carlos Agüero <[email protected]>
@chapulina chapulina mentioned this pull request Dec 24, 2021
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📜 blueprint Ignition Blueprint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants