Skip to content

make PlanningSceneInterface add/remove CollisionObjects synchronously #38

Closed

Description

@v4hn

I would very much like to adjust PlanningSceneInterface::{add/remove}CollisionObjects
to use the new ApplyPlanningScene service such that it performs synchronous updates to the planning scene.
This is what most users expect and it is not even documented in the tutorials that this is not the case.

At the moment these methods wrap simple publish calls whereas the other methods in this class query the move_group via services.

Thus, the current behavior is (1) inconsistent, (2) not documented, and (3) makes people add arbitrary long sleep calls after the function call.

However, ApplyPlanningScene is a MoveGroupCapability that has to be added manually in each projects move_group.launch and the PlanningSceneInterface has been around quite long.
Thus, simply changing the implementation would break many use-cases.
As a downward-compatible workaround I propose to check whether the service exists and either (1) call the detected service or (2) print an appropriate warning telling the user to enable ApplyPlanningScene in their move_group and afterward continue with the current publish.
With ROS-m,n, or o we could eventually remove the publish then.

Activity

  1. added
    simple improvements
    on Aug 11, 2016
  2. rhaschke commented on Aug 20, 2016

    @rhaschke
    Contributor

    +1

  3. andreaskoepf commented on Aug 20, 2016

    @andreaskoepf
    Contributor

    +1, we at Xamla had trouble with the asynchronous (unreliable) nature of this too. @v4hn, @rhaschke Does someone of you want to work on this during WMD? Otherwise I could review the code and the proposed solution over the weekend to fix this on Tuesday.

  4. v4hn commented on Aug 20, 2016

    @v4hn
    ContributorAuthor

    On Sat, Aug 20, 2016 at 03:36:22AM -0700, Andreas Köpf wrote:

    +1, we at Xamla had trouble with the asynchronous (unreliable) nature of this too.
    @v4hn, @rhaschke Does someone of you want to work on this during WMD?
    Otherwise I could review the code and the proposed solution over the weekend to fix this on Tuesday.

    I will be with you on WMD, so we can discuss things there and I can try to advise you.

    As for all simple enhancement tickets, just add a note saying you will work on it.

  5. v4hn commented on Aug 22, 2016

    @v4hn
    ContributorAuthor

    @andreaskoepf do you claim this issue for tomorrow?

  6. andreaskoepf commented on Aug 23, 2016

    @andreaskoepf
    Contributor

    @v4hn Yes, let's discuss this later. Would be happy to work on this.

  7. added
    assigned
    on Aug 23, 2016
  8. v4hn commented on Jan 31, 2017

    @v4hn
    ContributorAuthor

    This has been merged upstream in the meanwhile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    assignedenhancementsimple improvements

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions