Skip to content

Commit

Permalink
rm unnessary time offset in pilz
Browse files Browse the repository at this point in the history
  • Loading branch information
wuisky committed Dec 17, 2024
1 parent f91a650 commit 27cdc4f
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ std::vector<robot_trajectory::RobotTrajectoryPtr> PlanComponentsBuilder::build()
void PlanComponentsBuilder::appendWithStrictTimeIncrease(robot_trajectory::RobotTrajectory& result,
const robot_trajectory::RobotTrajectory& source)
{
if (!source.getWayPointCount())
{
return;
}

if (result.empty())
{
result.append(source, 0.0);
Expand All @@ -62,7 +67,14 @@ void PlanComponentsBuilder::appendWithStrictTimeIncrease(robot_trajectory::Robot
if (!pilz_industrial_motion_planner::isRobotStateEqual(result.getLastWayPoint(), source.getFirstWayPoint(),
result.getGroupName(), ROBOT_STATE_EQUALITY_EPSILON))
{
result.append(source, source.getWayPointDurationFromStart(0));
if (source.getWayPointDurationFromPrevious(0) == 0)
{
result.append(source, source.getWayPointDurationFromStart(0));
}
else
{
result.append(source, 0.0);
}
return;
}

Expand Down

0 comments on commit 27cdc4f

Please sign in to comment.