Skip to content
This repository has been archived by the owner on Feb 3, 2025. It is now read-only.

ContactManager::CreateFilter() and ContactManager::RemoveFilter() are inconsistent #1805

Closed
osrf-migration opened this issue Dec 10, 2015 · 9 comments
Labels
6.0 bug Something isn't working major physics

Comments

@osrf-migration
Copy link

Original report (archived issue) by Elte Hupkes (Bitbucket: ElteHupkes).


When creating a contact filter through ContactManager::CreateFilter(), it performs a string replace to change all "::" to "/". However, ContactManager::RemoveFilter() does not do the same thing. This means that whenever a filter is created where the name has "::" in it, a call to RemoveFilter with the same name does not remove it.

As it so happens the ContactSensor adds such a filter - when such a sensor is removed its contact filter lingers.

@osrf-migration
Copy link
Author

Original comment by Elte Hupkes (Bitbucket: ElteHupkes).


Suggested fix: https://bitbucket.org/ElteHupkes/gazebo/commits/9649107ad71811ea38b96db647b8150defc5e4a9

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


I'm just getting around to working with the contact manager, and I noticed this issue. Thanks for the report and suggested fix!

I've written a failing test to confirm the issue in 6e5496c (branch issue_1805).

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


jenkins build confirming test failure:

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


potential fix in c4774ec

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


new build queued in http://build.osrfoundation.org/job/gazebo-ci-pr_any-xenial-amd64-gpu-none/64

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


fix confirmed

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


fix in pull request #2363

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


  • changed state from "new" to "resolved"

pull request #2363

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • changed state from "resolved" to "closed"

@osrf-migration osrf-migration added major physics bug Something isn't working 6.0 labels Apr 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
6.0 bug Something isn't working major physics
Projects
None yet
Development

No branches or pull requests

1 participant