Skip to content
Snippets Groups Projects
Commit 13116a14 authored by Johannes Mey's avatar Johannes Mey
Browse files

ensure section trajectory starts at actual position

parent ea39e714
Branches
No related tags found
No related merge requests found
...@@ -121,6 +121,7 @@ void TimedPlanner::doMotion() { ...@@ -121,6 +121,7 @@ void TimedPlanner::doMotion() {
ROS_WARN_STREAM("terminating current trajectory"); ROS_WARN_STREAM("terminating current trajectory");
return; return;
} }
group->getCurrentState()->copyJointGroupPositions("panda_arm", trajectory.joint_trajectory.points[0].positions);
ROS_INFO_STREAM( ROS_INFO_STREAM(
"Moving to the next waypoint with speed factor " << motionSpeedFactor << " in mode " << waypoint.mode); "Moving to the next waypoint with speed factor " << motionSpeedFactor << " in mode " << waypoint.mode);
TrajectoryUtil::applyMotionSpeedFactor(trajectory, motionSpeedFactor); TrajectoryUtil::applyMotionSpeedFactor(trajectory, motionSpeedFactor);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment