Skip to content

Commit 0033141

Browse files
v4hnrhaschke
authored andcommitted
merge: update states only once per waypoint
1 parent 8834ce1 commit 0033141

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/merge.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,11 @@ merge(const std::vector<robot_trajectory::RobotTrajectoryConstPtr>& sub_trajecto
155155
const robot_state::RobotState& sub_state = sub->getWayPoint(index);
156156
sub_state.copyJointGroupPositions(sub->getGroup(), values);
157157
merged_state->setJointGroupPositions(sub->getGroup(), values);
158-
merged_state->update();
159158
}
160159
if (finished)
161160
break;
162161

162+
merged_state->update();
163163
// add waypoint without timing
164164
merged_traj->addSuffixWayPoint(merged_state, 0.0);
165165
// create new RobotState for next waypoint

0 commit comments

Comments
 (0)