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

Helper function to get a valid topic name #153

Merged
merged 2 commits into from
Jul 30, 2020

Conversation

chapulina
Copy link
Contributor

@chapulina chapulina commented Jul 28, 2020

Addresses gazebosim/gz-sim#239
Used by gazebosim/gz-sensors#33

Add a helper function to generate a valid topic name by converting spaces to _ and stripping invalid character combinations.

@chapulina chapulina requested a review from caguero as a code owner July 28, 2020 01:18
@github-actions github-actions bot added the 📜 blueprint Ignition Blueprint label Jul 28, 2020
@codecov
Copy link

codecov bot commented Jul 28, 2020

Codecov Report

Merging #153 into ign-transport7 will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@                Coverage Diff                 @@
##           ign-transport7     #153      +/-   ##
==================================================
+ Coverage           89.74%   89.75%   +0.01%     
==================================================
  Files                  49       49              
  Lines                4786     4793       +7     
==================================================
+ Hits                 4295     4302       +7     
  Misses                491      491              
Impacted Files Coverage Δ
src/TopicUtils.cc 100.00% <100.00%> (ø)

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 2eafb9d...43678c1. Read the comment docs.

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.

looks good to me. Just one minor comment.

Side note, just realized that ign transport topic names are a lot less strict than ROS names. Here's their validate function

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

@caguero caguero left a comment

Choose a reason for hiding this comment

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

CI doesn't fully cooperate but all tests passed on my machine. Looks good!

@chapulina chapulina merged commit adda419 into ign-transport7 Jul 30, 2020
@chapulina chapulina deleted the chapulina/7/valid_topic branch July 30, 2020 00:12
nkoenig added a commit that referenced this pull request Aug 28, 2020
* Remove warnings using ZMQ 4.3.1 or greater.
* Do not use ZMQ_CPP11
* Win debugging.
* backport improved compiler support for std::filesystem
* Close branch backport_compiler_filesystem
* Restore original Playback::Start and add overload with new parameter to fix ABI
* bump to 7.2.2 and update changelog

* Close branch fix_abi_7

* Write to disk from a background thread in log recorder

* Update Changelog

* Move `dataWriterState = true` to Recorder::Implementation::DataWriterThread() thread.

* Revert moving dataWriterState

* Failing test with incorrect time stamps

* Correctly record message reception time stamp

* Reorder functions

* Specify buffer size in MB rather than number of elements in the data queue

* Flush any remaining data to log file when stopping the Recorder

* Codecheck. The rvalue ref is used to ensure that std::vector is always moved

* Version update

* Added tag ignition-transport7_7.3.0~pre1 for changeset 173fae6c362d

* recorder.cc: include <optional>

* Add console message to indicate buffer being flushed

* Add <numeric>

* Close branch async_recorder

* Prepare for 7.3.0

* Added tag ignition-transport7_7.3.0 for changeset 367d4f1bfcf7

* Configurable buffer sizes.

* Fix typo.

* Changelog.

* Clarify high water mark policy.

* Tweak documentation and error messages.

* Close branch issue_116_transport7

* fix line lengths

* Close branch codecheck7

* Update default values for the high water marks

* Update buffer default values

* Changelog.md edited online with Bitbucket

* Close branch default_hwm

* Adding connection message.

* ConnectionMsg implementation.

* Test

* No control socket.

* Preserve ABI.

* Discard registrations when needed.

* Tweaks.

* Changelog

* Fix issue #114.

* Close branch discovery_extended_p2

* 7.4.0

* Move changelog entry

* Close branch ign-transport7-4

* Added tag ignition-transport7_7.4.0 for changeset 083e7bf41080

* Protobuf warnings

* Close branch proto_deprecations

* Close branch issue_111

* Windows warnings

* revert commit to release branch

* Fix version for send_falgs command

* Close branch ign-transport7_fix_send_flags

* Backport pull request #441

* updates

* Added another check

* Close branch issue_118

* mv hgignore

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

* add gitignore

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

* [ign-transport7] Update BitBucket links (#123)

* [ign-transport7] Update BitBucket links

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

* changelog pull-requests

* Apply suggestions from code review

* Update tutorials/07_relay.md

Co-authored-by: Marya Belanger <[email protected]>

* [ign-transport7] Workflow updates (#132)

* [ign-transport7] Workflow updates

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

* Helper function to get a valid topic name (#153)

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

* Remove Windows warnings (#151)

Signed-off-by: Carlos Aguero <[email protected]>

* Remove warnings on Homebrew (#150)

Signed-off-by: Carlos Aguero <[email protected]>
Co-authored-by: Louise Poubel <[email protected]>

* Bump to 7.5.0 (#156)

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

* Modernize actions CI (#158)

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

* remove ci-bionic

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

* add focal

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

* msgs5

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

* Suppress focal-specific warnings (#159)

* Suppress focal-specific warnings

Signed-off-by: Michael Carroll <[email protected]>

* Warn when lsb_release isn't present

Signed-off-by: Michael Carroll <[email protected]>

* Adding header guard.

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

* Include correct header file for version check

Signed-off-by: Michael Carroll <[email protected]>

* Added more debug output

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

* Fix focal test and codecheck

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

* Change endtime expectation

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

Co-authored-by: Carlos Agüero <[email protected]>
Co-authored-by: Nate Koenig <[email protected]>

Co-authored-by: Carlos Aguero <[email protected]>
Co-authored-by: Steve Peters <[email protected]>
Co-authored-by: Steve Peters <[email protected]>
Co-authored-by: Carlos Agüero <[email protected]>
Co-authored-by: Addisu Z. Taddese <[email protected]>
Co-authored-by: Nate Koenig <[email protected]>
Co-authored-by: Carlos Aguero <[email protected]>
Co-authored-by: Jose Luis Rivero <[email protected]>
Co-authored-by: claireyywang <[email protected]>
Co-authored-by: Marya Belanger <[email protected]>
Co-authored-by: Michael Carroll <[email protected]>
Co-authored-by: Nate Koenig <[email protected]>
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.

3 participants