Skip to content

fix PS getDiffMsg - #939

Merged
rhaschke merged 1 commit into
moveit:kinetic-develfrom
v4hn:pr-kinetic-fix-diff-msg
Jun 5, 2018
Merged

rhaschke merged 1 commit into
moveit:kinetic-develfrom
v4hn:pr-kinetic-fix-diff-msg

Conversation

@v4hn

@v4hn v4hn commented Jun 5, 2018

Copy link
Copy Markdown
Contributor

The robot state should be marked as diff, otherwise
PlanningScene::isEmpty(RobotState&) will not acknowledge
it as empty.

@rhaschke

The robot state should be marked as diff, otherwise
PlanningScene::isEmpty(RobotState&) will not acknowledge
it as empty.

@rhaschke rhaschke left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well spotted, but I think is_diff should be set to true in any case.

else
{
scene_msg.robot_state = moveit_msgs::RobotState();
scene_msg.robot_state.is_diff = true;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you want to set is_diff only in else branch? I think, it should be set always.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. To the best of my knowledge the whole framework expects that in case kstate_ is defined, it defines a full robot state including all attached objects. kstates of underlying planning scenes are ignored.
This is a rather longstanding shortcoming in MoveIt.

I agree though that it is confusing in this case, because we ask for a diff...

@rhaschke
rhaschke merged commit 62ebe86 into moveit:kinetic-devel Jun 5, 2018
rhaschke pushed a commit that referenced this pull request Jun 5, 2018
The robot state should be marked as diff, 
otherwise PlanningScene::isEmpty(RobotState&) will not acknowledge it as empty.
rhaschke pushed a commit that referenced this pull request Jul 4, 2018
Reset moveit_msgs::RobotState.is_diff to false whenever actually filling a RobotState msg.
This fixes a regression introduced in #939.
rhaschke pushed a commit to ubi-agni/moveit that referenced this pull request Jul 4, 2018
Reset moveit_msgs::RobotState.is_diff to false whenever actually filling a RobotState msg.
This fixes a regression introduced in moveit#939.
dg-shadow pushed a commit to shadow-robot/moveit that referenced this pull request Jul 30, 2018
The robot state should be marked as diff, 
otherwise PlanningScene::isEmpty(RobotState&) will not acknowledge it as empty.
dg-shadow pushed a commit to shadow-robot/moveit that referenced this pull request Jul 30, 2018
Reset moveit_msgs::RobotState.is_diff to false whenever actually filling a RobotState msg.
This fixes a regression introduced in moveit#939.
mayman99 pushed a commit to mayman99/moveit that referenced this pull request Aug 25, 2018
Reset moveit_msgs::RobotState.is_diff to false whenever actually filling a RobotState msg.
This fixes a regression introduced in moveit#939.
JafarAbdi pushed a commit to JafarAbdi/moveit that referenced this pull request Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants