Skip to content

Commit

Permalink
Update planning request input to leverage AnyPoly
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Armstrong committed Nov 7, 2023
1 parent 663c18c commit 60dbe9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tesseract_msgs/msg/PlanningRequest.msg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ tesseract_msgs/EnvironmentCommand[] commands # Additional Commands to be applied

string name # The name of the taskflow to use
string executor # The executor to leverage, if empty default one is used.
string instructions # This should an xml string of the command language instructions
string input # This should an xml string of tesseract_common::AnyPoly
bool dotgraph # Enable if DOT Graph should be generated and returned
bool debug # Enable debug content
bool save_io # Enable saving of input and output for task infos
Expand Down
5 changes: 2 additions & 3 deletions tesseract_planning_server/src/tesseract_planning_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ TESSERACT_COMMON_IGNORE_WARNINGS_POP
#include <tesseract_motion_planners/simple/profile/simple_planner_profile.h>
#include <tesseract_motion_planners/simple/profile/simple_planner_lvs_no_ik_plan_profile.h>

#include <tesseract_command_language/poly/instruction_poly.h>
#include <tesseract_common/any_poly.h>

#include <tesseract_monitoring/environment_monitor.h>
#include <tesseract_rosutils/utils.h>
Expand Down Expand Up @@ -186,8 +186,7 @@ void TesseractPlanningServer::onMotionPlanningCallback(const tesseract_msgs::Get
auto problem = std::make_unique<tesseract_planning::PlanningTaskComposerProblem>(goal->request.name);
try
{
problem->input_instruction =
Serialization::fromArchiveStringXML<tesseract_planning::InstructionPoly>(goal->request.instructions);
problem->input = Serialization::fromArchiveStringXML<tesseract_common::AnyPoly>(goal->request.input);
}
catch (const std::exception& e)
{
Expand Down

0 comments on commit 60dbe9b

Please sign in to comment.