Skip to content

Commit

Permalink
Fix formatJointPosition handle of cartesian seed
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Armstrong committed Dec 25, 2024
1 parent e00ae6f commit ceecb4b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions tesseract_command_language/src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,15 @@ bool formatJointPosition(const std::vector<std::string>& joint_names, WaypointPo
else if (waypoint.isCartesianWaypoint())
{
auto& cwp = waypoint.as<CartesianWaypointPoly>();
if (!cwp.hasSeed())
throw std::runtime_error("Cartesian waypoint does not have a seed.");

jv = &(cwp.getSeed().position);
jn = &(cwp.getSeed().joint_names);
if (cwp.hasSeed())
{
jv = &(cwp.getSeed().position);
jn = &(cwp.getSeed().joint_names);
}
else
{
return false;
}
}
else
{
Expand Down

0 comments on commit ceecb4b

Please sign in to comment.