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

Negative values allowed in QoS overrides file #431

Closed
dabonnie opened this issue Jun 4, 2020 · 3 comments · Fixed by #483
Closed

Negative values allowed in QoS overrides file #431

dabonnie opened this issue Jun 4, 2020 · 3 comments · Fixed by #483
Assignees
Labels
bug Something isn't working

Comments

@dabonnie
Copy link
Contributor

dabonnie commented Jun 4, 2020

Description

When defining an overrides file negative values are allowed for the following fields:

  • depth
  • deadline
  • lifespan
  • liveliness_lease_duration

when using ros2 bag record or ros2 bag play

Expected Behavior

The CLI throws an error / exception stating that negative values are not allowed for these fields.

Actual Behavior

The CLI accepts the values and attempts to record / play.

To Reproduce

** Steps to reproduce the behavior, e.g.

  1. Define an overrides file with negative values, e.g.,
/test:
  history: keep_last
  depth: -1
  1. Run ros2 bag record -a --qos-profile-overrides-path negative_depth.yaml

System (please complete the following information)

  • OS: OSX 10.14, Ubuntu Focal
  • ROS 2 Distro: Foxy pre release binaries
@dabonnie dabonnie added the bug Something isn't working label Jun 4, 2020
@emersonknapp emersonknapp changed the title Negative values allowed in overrides file Negative values allowed in QoS overrides file Jul 31, 2020
@emersonknapp
Copy link
Collaborator

First person to touch this to double check that it's still happening.

@emersonknapp
Copy link
Collaborator

AWS team picking this up for planned completion by next WG meeting

@jikawa-az
Copy link
Contributor

First person to touch this to double check that it's still happening.

Receive the following error when inputting negative values:

2020-07-31 23:52:07.012 [RTPS_QOS_CHECK Error] INCORRECT TOPIC QOS (rt/talker): depth must be > 0 -> Function checkQos zsh: segmentation fault ros2 bag record -a -o my_bag2 --qos-profile-overrides-path

Afterwards Python crashes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants