Skip to content

reset moveit_msgs::RobotState.is_diff to false - #968

Merged
rhaschke merged 2 commits into
moveit:kinetic-develfrom
isys-vision:reset_robot-state-msg_is-diff
Jul 4, 2018
Merged

rhaschke merged 2 commits into
moveit:kinetic-develfrom
isys-vision:reset_robot-state-msg_is-diff

Conversation

@simonschmeisser

Copy link
Copy Markdown
Contributor

Currently once robot_state.is_diff has been set to true it will stay so. This breaks detaching attached objects. This is a fix for a regression introduced in #939

Currently once robot_state.is_diff has been set to true it will stay so. This breaks detaching attached objects. This is a fix for a regression introduced in #939
@v4hn

v4hn commented Jul 2, 2018

Copy link
Copy Markdown
Contributor

I approve this patch with reservations (see below).
Thank you for cleaning up after me @simonschmeisser ... 😞

On the other hand this wouldn't even be a problem if robotStateToRobotStateMsg used here and here would clear the is_diff field, but apparently it does not.
Isn't this the real bug you observe here?

@simonschmeisser

Copy link
Copy Markdown
Contributor Author

I think we should actually have both fixes. Recycling the message does not give any relevant performance wins but relying on the default value is also hard to follow.

@v4hn
v4hn requested a review from rhaschke July 3, 2018 10:15

@v4hn v4hn 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.

Thanks for adding the explicit is_diff=false too.

@rhaschke
rhaschke merged commit 54d516a into moveit:kinetic-devel Jul 4, 2018
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.
@simonschmeisser
simonschmeisser deleted the reset_robot-state-msg_is-diff branch July 4, 2018 16:24
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.
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.

3 participants