Skip to content

Make topics valid#33

Merged
chapulina merged 4 commits intoign-sensors2from
chapulina/2/valid_topics
Aug 4, 2020
Merged

Make topics valid#33
chapulina merged 4 commits intoign-sensors2from
chapulina/2/valid_topics

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 <louise@openrobotics.org>
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 <louise@openrobotics.org>
@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 <louise@openrobotics.org>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
@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 <clairewang@openrobotics.org>

* add gitignore

Signed-off-by: claireyywang <clairewang@openrobotics.org>

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

* [ign-sensors2] Update BitBucket links

Signed-off-by: Louise Poubel <louise@openrobotics.org>

* [ign-sensors2] Update BitBucket links

Signed-off-by: Louise Poubel <louise@openrobotics.org>

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

Signed-off-by: Louise Poubel <louise@openrobotics.org>

* Make topics valid (#33)

Signed-off-by: Louise Poubel <louise@openrobotics.org>

* add noise to depth camera

Signed-off-by: Ian Chen <ichen@osrfoundation.org>

* 2.9.0 release prep

Signed-off-by: Nate Koenig <nate@openrobotics.org>

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

Signed-off-by: Carlos Agüero <caguero@openrobotics.org>

* ci fixes

Signed-off-by: Ian Chen <ichen@osrfoundation.org>

Co-authored-by: claireyywang <clairewang@openrobotics.org>
Co-authored-by: chapulina <lupoubel@hotmail.com>
Co-authored-by: Louise Poubel <louise@openrobotics.org>
Co-authored-by: Nate Koenig <nkoenig@users.noreply.github.com>
Co-authored-by: Nate Koenig <nate@openrobotics.org>
Co-authored-by: Carlos Agüero <caguero@osrfoundation.org>
@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