-
Notifications
You must be signed in to change notification settings - Fork 947
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
fix PS getDiffMsg #939
fix PS getDiffMsg #939
Conversation
The robot state should be marked as diff, otherwise PlanningScene::isEmpty(RobotState&) will not acknowledge it as empty.
There was a problem hiding this comment.
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.
scene_msg.robot_state = moveit_msgs::RobotState(); | ||
scene_msg.robot_state.is_diff = true; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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...
The robot state should be marked as diff, otherwise PlanningScene::isEmpty(RobotState&) will not acknowledge it as empty.
Reset moveit_msgs::RobotState.is_diff to false whenever actually filling a RobotState msg. This fixes a regression introduced in #939.
Reset moveit_msgs::RobotState.is_diff to false whenever actually filling a RobotState msg. This fixes a regression introduced in moveit#939.
The robot state should be marked as diff, otherwise PlanningScene::isEmpty(RobotState&) will not acknowledge it as empty.
Reset moveit_msgs::RobotState.is_diff to false whenever actually filling a RobotState msg. This fixes a regression introduced in moveit#939.
Reset moveit_msgs::RobotState.is_diff to false whenever actually filling a RobotState msg. This fixes a regression introduced in moveit#939.
Co-authored-by: AndyZe <zelenak@picknik.ai>
The robot state should be marked as diff, otherwise
PlanningScene::isEmpty(RobotState&) will not acknowledge
it as empty.
@rhaschke