Skip to content

CurrentStateMonitor does not correctly report attached collision objects, but PlanningSceneMonitor does. #2748

Open

Description

@sea-bass

Description

We had an issue with MoveIt Servo that was fixed in #2747, where collision checking with attached objects was failing since the presence of the object was not correct.

Simply switching the line:

robot_state_ = planning_scene_monitor_->getStateMonitor()->getCurrentState();

to

robot_state_ = planning_scene_monitor_->getPlanningScene()->getCurrentState();

fixes the issue, so I wanted to file a bug tracking this mismatch.

Activity

  1. added
    bug
    on Mar 18, 2024
  2. github-actions commented on May 3, 2024

    @github-actions

    This issue is being labeled as stale because it has been open 45 days with no activity. It will be automatically closed after another 45 days without follow-ups.

  3. mikeferguson commented on Nov 3, 2024

    @mikeferguson
    Contributor

    Is this actually a bug? My understanding here is that:

    • CurrentStateMonitor just monitors the robot itself - the API doc is "Monitors the joint_states topic and tf to maintain the current state of the robot" - neither of those topics would provide information about attached objects.
    • PlanningScene is then the full planning scene, with attached objects and octomap, etc.

    Perhaps we just need to update the API docs to be more clear about the differences between these two classes?

  4. sea-bass commented on Nov 3, 2024

    @sea-bass
    ContributorAuthor

    Good point. I agree that should be sufficient.

  5. mikeferguson commented on Nov 3, 2024

    @mikeferguson
    Contributor

    Probably also a good idea to do a quick search of the codebase and make sure there aren't other cases where the wrong function has been used...

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions