Skip to content

Commit

Permalink
Updates to generators and examples to utilize cartesian pose getParen…
Browse files Browse the repository at this point in the history
…tTransform method
  • Loading branch information
marip8 committed Sep 17, 2019
1 parent 0fa39a2 commit a3c9b7b
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ inline std::vector<Waypoint::Ptr> interpolate(const Waypoint& start, const Waypo
for (auto& eigen_pose : eigen_poses)
{
CartesianWaypoint::Ptr new_waypoint =
std::make_shared<tesseract_motion_planners::CartesianWaypoint>(eigen_pose);
std::make_shared<tesseract_motion_planners::CartesianWaypoint>(eigen_pose, start.getParentLinkName());
new_waypoint->setCoefficients(start.getCoefficients());
new_waypoint->setIsCritical(start.isCritical());
result.push_back(new_waypoint);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AxialApproachGenerator : public ProcessStepGenerator

tesseract_motion_planners::CartesianWaypoint::Ptr new_waypoint =
std::make_shared<tesseract_motion_planners::CartesianWaypoint>(
config.world_offset_direction * cur_waypoint->getTransform() * config.local_offset_direction * scaled);
config.world_offset_direction * cur_waypoint->getTransform() * config.local_offset_direction * scaled, cur_waypoint->getParentLinkName());
new_waypoint->setCoefficients(cur_waypoint->getCoefficients());
new_waypoint->setIsCritical(cur_waypoint->isCritical());
approach.push_back(new_waypoint);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AxialDepartureGenerator : public ProcessStepGenerator

tesseract_motion_planners::CartesianWaypoint::Ptr new_waypoint =
std::make_shared<tesseract_motion_planners::CartesianWaypoint>(
config.world_offset_direction * cur_waypoint->getTransform() * config.local_offset_direction * scaled);
config.world_offset_direction * cur_waypoint->getTransform() * config.local_offset_direction * scaled, cur_waypoint->getParentLinkName());
new_waypoint->setCoefficients(cur_waypoint->getCoefficients());
new_waypoint->setIsCritical(cur_waypoint->isCritical());
departure.push_back(new_waypoint);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class PassthroughProcessGenerator : public ProcessStepGenerator
std::static_pointer_cast<tesseract_motion_planners::CartesianWaypoint>(waypoint);
tesseract_motion_planners::CartesianWaypoint::Ptr new_waypoint =
std::make_shared<tesseract_motion_planners::CartesianWaypoint>(
config.world_offset_direction * cur_waypoint->getTransform() * config.local_offset_direction);
config.world_offset_direction * cur_waypoint->getTransform() * config.local_offset_direction, cur_waypoint->getParentLinkName());
new_waypoint->setCoefficients(cur_waypoint->getCoefficients());
new_waypoint->setIsCritical(cur_waypoint->isCritical());
new_waypoints.push_back(new_waypoint);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"wxyz" : [0.0, 0.0, 1.0, 0.0],
"link" : "tool0",
"pos_coeffs" : [10, 10, 10],
"rot_coeffs" : [10, 10, 10]
"rot_coeffs" : [10, 10, 10],
"target" : "world"
}
},
{
Expand All @@ -50,7 +51,8 @@
"wxyz" : [0.0, 0.0, 1.0, 0.0],
"link" : "tool0",
"pos_coeffs" : [10, 10, 10],
"rot_coeffs" : [10, 10, 10]
"rot_coeffs" : [10, 10, 10],
"target" : "world"
}
},
{
Expand All @@ -63,7 +65,8 @@
"wxyz" : [0.0, 0.0, 1.0, 0.0],
"link" : "tool0",
"pos_coeffs" : [10, 10, 10],
"rot_coeffs" : [10, 10, 10]
"rot_coeffs" : [10, 10, 10],
"target" : "world"
}
},
{
Expand All @@ -76,7 +79,8 @@
"wxyz" : [0.0, 0.0, 1.0, 0.0],
"link" : "tool0",
"pos_coeffs" : [10, 10, 10],
"rot_coeffs" : [10, 10, 10]
"rot_coeffs" : [10, 10, 10],
"target" : "world"
}
},
{
Expand All @@ -89,7 +93,8 @@
"wxyz" : [0.0, 0.0, 1.0, 0.0],
"link" : "tool0",
"pos_coeffs" : [10, 10, 10],
"rot_coeffs" : [10, 10, 10]
"rot_coeffs" : [10, 10, 10],
"target" : "world"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
"wxyz" : [0.0, 0.0, 1.0, 0.0],
"link" : "tool0",
"pos_coeffs" : [10, 10, 10],
"rot_coeffs" : [10, 10, 10]
"rot_coeffs" : [10, 10, 10],
"target" : "world"
}
},
{
Expand All @@ -65,7 +66,8 @@
"wxyz" : [0.0, 0.0, 1.0, 0.0],
"link" : "tool0",
"pos_coeffs" : [0, 0, 0],
"rot_coeffs" : [10, 10, 0]
"rot_coeffs" : [10, 10, 0],
"target" : "world"
}
},
{
Expand All @@ -78,7 +80,8 @@
"wxyz" : [0.0, 0.0, 1.0, 0.0],
"link" : "tool0",
"pos_coeffs" : [0, 0, 0],
"rot_coeffs" : [10, 10, 0]
"rot_coeffs" : [10, 10, 0],
"target" : "world"
}
},
{
Expand All @@ -91,7 +94,8 @@
"wxyz" : [0.0, 0.0, 1.0, 0.0],
"link" : "tool0",
"pos_coeffs" : [0, 0, 0],
"rot_coeffs" : [10, 10, 0]
"rot_coeffs" : [10, 10, 0],
"target" : "world"
}
},
{
Expand All @@ -104,7 +108,8 @@
"wxyz" : [0.0, 0.0, 1.0, 0.0],
"link" : "tool0",
"pos_coeffs" : [10, 10, 10],
"rot_coeffs" : [10, 10, 0]
"rot_coeffs" : [10, 10, 0],
"target" : "world"
}
}
],
Expand Down

0 comments on commit a3c9b7b

Please sign in to comment.