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

parser_urdf drops effort and velocity limits for continuous joints #683

Closed
scpeters opened this issue Sep 2, 2021 · 2 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@scpeters
Copy link
Member

scpeters commented Sep 2, 2021

Environment

  • OS Version: Ubuntu 20.04
  • Source or binary build? binary 9.6.0 debian

Description

  • Expected behavior: effort and velocity limits specified in a URDF continuous joint should be propagated to the SDFormat file when parsing
  • Actual behavior: all limit values are ignored for URDF continuous joints

Steps to reproduce

  1. Checkout scpeters@75e4226
  2. Run cmake and make
  3. Run INTEGRATION_urdf_joint_parameters test with ctest -R INTEGRATION_urdf_joint_parameters -VV

Output

79: [ RUN      ] SDFParser.JointAxisParameters
79: /Users/scpeters/clone/sdformat/test/integration/urdf_joint_parameters.cc:71: Failure
79: Value of: limit->HasElement("effort")
79:   Actual: false
79: Expected: true
79: /Users/scpeters/clone/sdformat/test/integration/urdf_joint_parameters.cc:72: Failure
79: Value of: limit->HasElement("velocity")
79:   Actual: false
79: Expected: true
79: /Users/scpeters/clone/sdformat/test/integration/urdf_joint_parameters.cc:73: Failure
79: Expected equality of these values:
79:   value
79:     Which is: 0
79:   limit->Get<double>("effort")
79:     Which is: -1
79: /Users/scpeters/clone/sdformat/test/integration/urdf_joint_parameters.cc:74: Failure
79: Expected equality of these values:
79:   value
79:     Which is: 0
79:   limit->Get<double>("velocity")
79:     Which is: -1
79: /Users/scpeters/clone/sdformat/test/integration/urdf_joint_parameters.cc:71: Failure
79: Value of: limit->HasElement("effort")
79:   Actual: false
79: Expected: true
79: /Users/scpeters/clone/sdformat/test/integration/urdf_joint_parameters.cc:72: Failure
79: Value of: limit->HasElement("velocity")
79:   Actual: false
79: Expected: true
79: /Users/scpeters/clone/sdformat/test/integration/urdf_joint_parameters.cc:73: Failure
79: Expected equality of these values:
79:   value
79:     Which is: 1
79:   limit->Get<double>("effort")
79:     Which is: -1
79: /Users/scpeters/clone/sdformat/test/integration/urdf_joint_parameters.cc:74: Failure
79: Expected equality of these values:
79:   value
79:     Which is: 1
79:   limit->Get<double>("velocity")
79:     Which is: -1
79: [  FAILED  ] SDFParser.JointAxisParameters (68 ms)
@scpeters scpeters added the bug Something isn't working label Sep 2, 2021
@scpeters scpeters self-assigned this Sep 2, 2021
scpeters added a commit to scpeters/sdformat that referenced this issue Sep 2, 2021
Fixes gazebosim#683.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
@scpeters
Copy link
Member Author

scpeters commented Sep 2, 2021

fix in #684

scpeters added a commit that referenced this issue Sep 4, 2021
* Test URDF continuous joint effort/velocity limits
* Fix parsing of URDF continuous joint effort/velocity limits

Fixes #683.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
@scpeters
Copy link
Member Author

scpeters commented Sep 8, 2021

fixed by #684

@scpeters scpeters closed this as completed Sep 8, 2021
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

No branches or pull requests

1 participant